Mat
Mat

Reputation: 2072

publish asp net core on TFS build server

In Visual Studio I have the possibility to "publish" an asp net core app (using .net framework 4.6.1).

enter image description here

How can I trigger this publish on a tfs build automatically? Do I need a special build task or is it a parameter in "msbuild" step?

Upvotes: 0

Views: 627

Answers (1)

jessehouwing
jessehouwing

Reputation: 114641

You can accomplish this through the standard MsBuild task. You need to set a bunch of additional arguments:

msbuild mysln.sln /p:DeployOnBuild=true /p:PublishProfile=<profile-name>

Or you can use the dotnet publish from the dotnet task or a commandline task.

Upvotes: 1

Related Questions