2013-02-07 73 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