Reputation: 2072
In Visual Studio I have the possibility to "publish" an asp net core app (using .net framework 4.6.1).
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
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