Msbuild ASPNETCOMPILER-未解析成员的类型

Msbuild ASPNETCOMPILER-未解析成员的类型,msbuild,aspnet-compiler,Msbuild,Aspnet Compiler,我正在尝试使用msbuild.exe构建我的应用程序,但遇到以下错误: MvcBuildViews: C:\Windows\Microsoft.NET\Framework64\v4.0.30319\aspnet_compiler.exe -v temp -p F:\src_Project\trunk\Apps\SalesPortal\SalesPortal ASPNETCOMPILER : error ASPRUNTIME: Type is not resolved for member '

我正在尝试使用msbuild.exe构建我的应用程序,但遇到以下错误:

MvcBuildViews:
  C:\Windows\Microsoft.NET\Framework64\v4.0.30319\aspnet_compiler.exe -v temp -p F:\src_Project\trunk\Apps\SalesPortal\SalesPortal
ASPNETCOMPILER : error ASPRUNTIME: Type is not resolved for member 'Amazon.Runtime.AmazonServiceException,AWSSDK.Core, Version=3.3.0.0, Culture=neutral, PublicKeyToken=885c28607f98e604'.
我可以通过运行以下命令来重新设置问题:

C:\Windows\Microsoft.NET\Framework64\v4.0.30319\aspnet_compiler.exe -v temp -p F:\src_Project\trunk\Apps\MyApp
我删除了bin/和obj/文件夹,清理了解决方案,恢复了nuget软件包,卸载并重新安装了它提到的AWS软件包。我的版本和它提到的不一样(我的版本是3.3.113)。错误仍然存在

这在我的csproj中:

<MvcBuildViews>true</MvcBuildViews>
....
<Target Name="MvcBuildViews" AfterTargets="AfterBuild" Condition="'$(MvcBuildViews)'=='true'">
<AspNetCompiler VirtualPath="temp" PhysicalPath="$(WebProjectOutputDir)" />
true
....
这是什么原因?我是否可以排除MvcBuildViews并使用本地调试和测试来确保视图正常工作