MSBuild 仅部署 - 无构建
MSBuild deploy only - no build
是否可以执行 /p:DeployOnBuild=true
调用 MSBuild 的 publish/deploy 部分?例如,在一个调用中进行构建,然后在另一个调用中进行发布(文件复制)。
从命令行调用时有一个issue with MSBuild 15 and publish profiles。
关于 Github 的 post 解决了您提出的同样问题,提供了解决方案。
You can find documentation on how to use PublishProfiles from
commandline here - https://github.com/aspnet/websdk#folder-publish
Here is a sample project with a PublishProfile:
https://github.com/vijayrkn/dotnetpublishprofilesample/blob/7dac43543173b4ce908921106cc84d810c6dc623/WebPublishCommandlineSample/Properties/PublishProfiles/SampleFolderProfile.pubxml
MSBuild command to publish to a folder using the above publish
profile:
https://github.com/vijayrkn/dotnetpublishprofilesample/blob/7dac43543173b4ce908921106cc84d810c6dc623/PublishCommandline.txt
I would be happy to take a look at the issue if some one can provide
me a sample project & msbuild command that is not working.
来源:https://github.com/Microsoft/msbuild/issues/1901#issuecomment-377140715
希望它提供了需要的信息
注意:问题已由 Microsoft 修复 - https://github.com/dotnet/cli/pull/8996 as part of 2.1.3xx milestone
是否可以执行 /p:DeployOnBuild=true
调用 MSBuild 的 publish/deploy 部分?例如,在一个调用中进行构建,然后在另一个调用中进行发布(文件复制)。
从命令行调用时有一个issue with MSBuild 15 and publish profiles。
关于 Github 的 post 解决了您提出的同样问题,提供了解决方案。
You can find documentation on how to use PublishProfiles from commandline here - https://github.com/aspnet/websdk#folder-publish
Here is a sample project with a PublishProfile: https://github.com/vijayrkn/dotnetpublishprofilesample/blob/7dac43543173b4ce908921106cc84d810c6dc623/WebPublishCommandlineSample/Properties/PublishProfiles/SampleFolderProfile.pubxml
MSBuild command to publish to a folder using the above publish profile: https://github.com/vijayrkn/dotnetpublishprofilesample/blob/7dac43543173b4ce908921106cc84d810c6dc623/PublishCommandline.txt
I would be happy to take a look at the issue if some one can provide me a sample project & msbuild command that is not working.
来源:https://github.com/Microsoft/msbuild/issues/1901#issuecomment-377140715
希望它提供了需要的信息
注意:问题已由 Microsoft 修复 - https://github.com/dotnet/cli/pull/8996 as part of 2.1.3xx milestone