是否有任何方法可以在仅针对 Release模式进行编译时将 Visual Studio 配置为编译 View 。似乎它全有或全无,对于我的项目,它有很多不同的 View ,它只是陷入我关闭它的地方,但在推送到 QA 时忘记打开它。
最佳答案
您可以将其包装在 <PropertyGroup>
中
示例
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<MvcBuildViews>true</MvcBuildViews>
</PropertyGroup>
关于asp.net-mvc - 任何方式配置来配置visual studio mvc 构建 View Release模式,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/17238480/