Error 7 The type 'System.Web.Routing.RouteValueDictionary'
exists in both
'c:\Program Files\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.0\System.Web.dll'
and
'c:\WINNT\assembly\GAC_MSIL\System.Web.Routing\3.5.0.0__31bf3856ad364e35\System.Web.Routing.dll'
c:\Projects\VS\solutionfolder\projectfolder\Views\group\List.aspx 44 ProjectName
如果相关,该项目将使用 T4MVC.tt。还有 Visual Studio 2010 终极版。 我没有将目标 .net 框架升级到 4.0,因为我的主机将在大约 24 小时内不支持它。
我在同一解决方案中有一个 .Tests 项目,它说它的目标是 .net 4.0,但即使卸载了相同的消息,它仍然无法构建。
最佳答案
我将我的配置更改为不包含 MVCBuildViews 设置为 true 的配置,并且它已发布。
关于visual-studio-2010 - Visual Studio 2010 MVC 2(导入 2008 项目) - 发布失败 - System.Web.Routing.RouteValueDictionary 存在于两者中,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/2632006/