2013-02-07 49 views

回答

11

在记事本中打开您的csproj文件并将MvcBuildViews属性更改为true。

<?xml version="1.0" encoding="utf-8"?> 
<Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> 
    <Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" /> 
    <PropertyGroup> 
    <!-- other properties ... --> 
    <MvcBuildViews>true</MvcBuildViews> 
    <!-- the rest of your project file ... --> 
+0

太好了。谢谢 !! – monstro