发布asp.net mvc的项目时,编译意见 [英] Compiling views when publishing asp.net mvc project

查看:239
本文介绍了发布asp.net mvc的项目时,编译意见的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

时,可以发布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:

  • 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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆