寻找一个像“_CopyWebApplication”一样工作的目标但对于控制台应用程序
我们已经有了可以很好地创建 Web 应用程序文件夹的构建脚本。我们为每个环境创建多个文件夹,然后根据环境更改这些文件夹中的配置。
我们怎样才能得到与 _CopyWebApplication 相同的结果?
例子:
<MSBuild Projects="$(SourceCodeCheckoutFolder)\source\UI\$(ProjectName)\$(ProjectName).csproj"
Targets="ResolveReferences; ResolveProjectReferences;_CopyWebApplication"
ToolsVersion="3.5"
StopOnFirstFailure="False"
RunEachTargetSeparately="False"
</MSBuild>
We already have build scripts that creates our web application folders very nicely. We create multiple folders for each environment, and then change the configs in those folders according to the environment.
How can we get the same results as what _CopyWebApplication does?
Example:
<MSBuild Projects="$(SourceCodeCheckoutFolder)\source\UI\$(ProjectName)\$(ProjectName).csproj"
Targets="ResolveReferences; ResolveProjectReferences;_CopyWebApplication"
ToolsVersion="3.5"
StopOnFirstFailure="False"
RunEachTargetSeparately="False"
</MSBuild>
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
好像没有这样的事。大多数人只使用 msbuild 中的复制任务
It seems that there is no such a thing. And that most people just use the Copy tasks in msbuild
我发现删除目标具有正确的行为,另一个关于“少即是多”的教训:)
I found that removing the targets has the correct behavoir, another lesson about less is more :)