C# Class GoogleCloudExtension.Deployment.AspnetDeployment

This class offers services to perform deployments for ASP.NET 4.x applications to a GCE VM.
Exibir arquivo Open project: GoogleCloudPlatform/google-cloud-visualstudio

Public Methods

Method Description
PublishProjectAsync ( string projectPath, Instance targetInstance, WindowsInstanceCredentials credentials, IProgress progress, Action outputAction ) : Task

Publishes an ASP.NET 4.x project to the given GCE Instance.

Private Methods

Method Description
Cleanup ( string publishSettings, string stagingDirectory ) : void
CreateAppBundleAsync ( string projectPath, string stageDirectory, Action outputAction ) : Task

This method stages the application into the stageDirectory by invoking the WebPublish target present in all Web projects. It publishes to the staging directory by using the FileSystem method.

DeployAppAsync ( string stageDirectory, string publishSettingsPath, Action outputAction ) : Task

This method publishes the app to the VM using the publishSettingsPath to find the publish settings to use to do so.

GetMsbuildPath ( ) : string
GetMsdeployPath ( ) : string

Method Details

PublishProjectAsync() public static method

Publishes an ASP.NET 4.x project to the given GCE Instance.
public static PublishProjectAsync ( string projectPath, Instance targetInstance, WindowsInstanceCredentials credentials, IProgress progress, Action outputAction ) : Task
projectPath string The full path to the project file.
targetInstance Instance The instance to deploy.
credentials GoogleCloudExtension.GCloud.WindowsInstanceCredentials The Windows credentials to use to deploy to the .
progress IProgress The progress indicator.
outputAction Action The action to call with lines of output.
return Task