[英]How do I view the metaproj files generated by Visual Studio when building an ASP.NET website?
I have a fairly large solution with a mix of assemblies and ASP.NET websites (the ones without a csproj file). 我有一个相当大的解决方案,混合使用程序集和ASP.NET网站(没有csproj文件的那些)。 I'm trying to customize the build from the command line, and so I need to understand what exactly MSBuild is doing.
我正在尝试从命令行自定义构建,因此我需要了解MSBuild究竟在做什么。
When MSBuild builds .sln file, I see that it creates metaproj files (which I assume are MSBuild files). 当MSBuild构建.sln文件时,我看到它创建了metaproj文件(我假设它是MSBuild文件)。 However, they never seem to appear on the file system.
但是,它们似乎永远不会出现在文件系统上。 I assume that MSBuild keeps them hidden in some way.
我假设MSBuild以某种方式隐藏它们。 Is there a way that I can view these files?
有没有办法可以查看这些文件?
使用以下环境变量:
set MSBuildEmitSolution=1
Some "under the hood" basics for Web Site projects that gets lost the way MS organizes their docs... 网站项目的一些“幕后”基础知识迷失了MS组织文档的方式......
When MSBuild is executed on a .sln file it generates a .metaproj file based off of the "Project" section in the .sln file. 当在.sln文件上执行MSBuild时,它会根据.sln文件中的“Project”部分生成一个.metaproj文件。 It then executes aspnet_compiler.exe against the metaproj file.
然后它对metaproj文件执行aspnet_compiler.exe。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.