发布asp.net mvc的项目时,编译意见 [英] Compiling views when publishing asp.net mvc project
问题描述
时,可以发布web项目时,编译asp.net mvc的观点到一个assemply?
Is is possible to compile asp.net mvc views into one assemply when publishing web project?
推荐答案
有 ASP.NET合并工具(Aspnet_merge.exe)和Web部署项目( 更新: Aspnet_merge.exe
安装了Windows SDK组件,当您安装Visual Studio 2008 - 看%程序Files%\\微软的SDK \\ WINDOWS \\ v6.0A \\ bin文件夹的)。这些链接可能是有趣的你:
There is ASP.NET Merge tool (Aspnet_merge.exe) and Web Deployment Projects ( UPDATED: Aspnet_merge.exe
came with Windows SDK components when you installing Visual Studio 2008 - look at "%Program Files%\Microsoft SDKs\Windows\v6.0A\bin" folder ). These links may be interesting to you:
- 如何:使用的MSBuild自动运行ASP.NET的编译器和工具合并
- 管理ASP.NET precompiled输出进行部署命令
使用aspnet_merge.exe
- How Do I: Use MSBuild to Automate the ASP.NET Compiler and Merge Utilities
- Managing ASP.NET Precompiled Output for Deployment Using the aspnet_merge.exe Command
更新:
在ASP.NET MVC项目中有< MvcBuildViews>真/假< / MvcBuildViews>
属性使在AfterBuild目标编制意见。不过,这并不在一个程序集编译您的项目。您应该使用ASP.NET合并工具或Web部署项目。
In ASP.NET MVC projects there is <MvcBuildViews>true/false</MvcBuildViews>
property which enables compiling Views in AfterBuild target. But it does not compile your project in one assembly. You should use ASP.NET Merge tool or Web Deployment Projects.
这篇关于发布asp.net mvc的项目时,编译意见的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!