如何在不构建网站的情况下使用 MSBuild 解析网站引用?
我有一个包含网站和几个依赖项目的解决方案。我需要使用 MSBuild 构建此解决方案。问题是我只需要构建网站本身来解析引用,然后丢弃构建结果。我查看了解决方案 .metaproj 文件,但它只包含允许我构建网站的目标。我正在使用它,因为它也解决了该引用。这不是一个关键问题,但就我而言,构建该网站本身总共需要两分钟。
当然,我可以手动构建依赖项目,然后复制构建结果...但是每次添加新引用时,都需要修改构建文件。
那么有聪明的方法吗?
I have a solution that contains web-site and couple of dependent projects. I need to build this solution with MSBuild. The issue is that I need to build site itself only to resolve references and then just throw away results of build. I've taken a look on the solution .metaproj file, but it only contains target that allows me to build site. I'm using it, as it also resolves that references. It's not a critical issue, but in my case it takes two minutes of total fife to build that site itself.
Sure I can build dependent projects manually and then just copy build results... But every time new reference is added it will require modifications of build file.
So is there smart way doing this?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
只需构建它即可。考虑与 /m 并行构建它,但除了编写自己的半编译器之外,您应该让构建系统为您完成此操作。
Just build it. Consider building it in parallel with /m, but other than writing your own half-compiler, you should just let the build system do this for you.