0
votes

I would like to deploy my .NET Core web application via Visual Studio Team Services to hosting with IIS.

I have tried to discover the possibility of deployment the final release but I don't know what type of task I can use.

I usually used the deploy via Visual Studio 2017 and using publish proccess with MSDeploy and setup profile like this:

<publishData>
   <publishProfile 
   publishUrl="publishUrl" 
   msdeploySite="site" 
   destinationAppUrl="destinationAppUrl" 
   profileName="Default Settings" 
   publishMethod="MSDeploy" userName="login" /> 
</publishData>

This site is not running on azure but on shared asp.net hosting.

How can I setup the Visual Studio Team Services - Deploy release if I only know these information?

What type of task is necessary to use?

1

1 Answers

1
votes

Since you can deploy it with publish profile, you can to do it in VSTS build/release too.

  1. NuGet restore (2.*) or Dotnet restore task
  2. Visual Studio Build task (MSBuild Arguments: /p:SkipInvalidConfigurations=true /p:DeployOnBuild=true /p:PublishProfile="[profile name]"

You can use IIS Web App Deployment Using WinRM tasks if you have admin account.

If the host supports FTP, you also can upload the published files through FTP task.