简体   繁体   English

在构建ASP.NET网站时,如何查看Visual Studio生成的元项目文件?

[英]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.

相关问题 在使用Visual Studio .NET的Web应用程序项目类型而不是网站时,我在哪里放置类? (ASP.NET) - Where do I put classes when using Web Application project type of Visual Studio .NET instead of Website? (ASP.NET) 在Visual Studio 2013上发布用c#asp.net创建的网站,我需要做什么? - What do I need to do to publish a website made in c# asp.net on Visual Studio 2013? 如何解决在加载ASP.NET MVC项目时挂起的Visual Studio? - How do I troubleshoot Visual Studio which is hanging when loading ASP.NET MVC project? 在ASP.net MVC 5中的Visual Studio中查看文件中的红色波浪形 - Red squiggly in view files in Visual Studio in ASP.net MVC 5 如何在Visual Studio 2022中打开asp.net网站项目? - How to open asp.net website project in Visual studio 2022? 调试asp.net应用程序时在Visual Studio中查看会话 - View sessions in Visual Studio when debugging a asp.net application 运行Asp.Net网站项目时如何在Visual Studio 2010中禁用脚本调试? - How to disable script debugging in Visual Studio 2010 when running Asp.Net website project? 我如何在Visual Studio中测试我的SSL所需的ASP.NET MVC网站? - How can I testrun my SSL-Required ASP.NET MVC Website in Visual Studio? 当我创建 ASP.Net 项目时,Visual Studio 2022 看不到项目中的文件 - Visual Studio 2022 dosen't see files in project when I create ASP.Net Project 如何在Visual Studio 2013中编辑ASP.Net MVC C#项目模板文件? - How can I edit ASP.Net MVC C# project template files in Visual Studio 2013?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM