简体   繁体   English

在TFS构建服务器上发布ASP网络核心

[英]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.

相关问题 将声纳结果发布到使用.net核心声纳扫描仪的tfs构建 - publish sonar results to tfs build with .net core sonar scanner 如何使用 powershell 为构建服务器构建、发布 ASP.NET 核心项目? - How to build, publish ASP.NET core project using powershell for build server? 在asp.net核心中的post build事件中运行dotnet发布 - running dotnet publish in post build event in asp.net core Asp net core 在 azure 应用服务上发布 500 服务器错误 - Asp net core publish on azure app services 500 server error Asp.net 核心 3.0 在发布或构建时发布视图文件 (.cshtml) - Asp.net core 3.0 Publish Views files (.cshtml) on Publish or on Build .NET 在构建和发布时将子文件夹核心复制到 output - .NET Core copy subfolders to output on build and publish 为什么 web.config 是在发布时创建的,而不是在 Asp.Net Core API 中构建项目时创建的? - Why is web.config getting created on publish not on build the project in Asp.Net Core API? 完整检查构建asp.net mvc core 2.0应用程序,无需发布 - Complete check for build asp.net mvc core 2.0 application without publish ASP.NET Core 发布和启动设置 - ASP.NET Core publish and launch settings 要发布哪些文件? ASP .Net Core 2.0 - Which files to publish? ASP .Net Core 2.0
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM