[英]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). 在Visual Studio中,我可以“发布” asp net核心应用程序(使用.net framework 4.6.1)。
How can I trigger this publish on a tfs build automatically? 如何触发此发布自动在tfs构建上? Do I need a special build task or is it a parameter in "msbuild" step? 我需要特殊的构建任务还是“ msbuild”步骤中的参数?
You can accomplish this through the standard MsBuild task. 您可以通过标准的MsBuild任务完成此任务。 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. 或者,您可以使用dotnet任务或命令行任务中的dotnet publish
。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.