简体   繁体   English

Visual Studio 2017 web 部署:等待自定义预构建操作完成

[英]Visual Studio 2017 web deploy: wait for custom pre-build action finish

I want to use a web deploy to publish my ASP.Net Web API project along with Angular app.我想使用 Web 部署来发布我的 ASP.Net Web API 项目和 Angular 应用程序。 Angular app build is running in pre-build action, I'm using CustommCollectFiles to include \\dist folder in publish, but because it's not waiting for finishing it the dist folder content can be outdated. Angular 应用程序构建正在预构建操作中运行,我正在使用 CustommCollectFiles 在发布中包含 \\dist 文件夹,但因为它没有等待完成它,所以 dist 文件夹内容可能已过时。 How to wait until pre-build action finish and only after that copy dist folder?如何等到预构建操作完成并且仅在复制 dist 文件夹之后?

Solution was using msbuild task in publish profile config (*.pubxml)解决方案是在发布配置文件配置 (*.pubxml) 中使用 msbuild 任务

I found solution in this answer我在这个答案中找到了解决方案

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM