Visual Studio项目文件中的__MvcPagesVersion__是什么?

时间:2015-01-04 11:41:36

标签: asp.net .net visual-studio mono monodevelop

我在VS 2013中创建了一个MVC / Web API项目。当我尝试使用Monodevelop打开该解决方案时,它失败并出现错误&#34;版本字符串中必须有2,3或4个组件。&#34 ;。这是因为.csproj文件中的引用,例如<Reference Include="System.Net.Http.Formatting, Version=__MvcPagesVersion__, ..."> ... </Reference>

如何修复这些引用,以便可以使用Monodevelop进行编译?从这些引用中删除Version字符串是否安全?

1 个答案:

答案 0 :(得分:1)

刚才遇到类似的问题。 __MvcPagesVersion__必须是Visual Studio在* .csproj文件中使用的占位符。我梳理了无法在Xamarin Studio中加载的csproj文件,并将所有对__MvcPagesVersion__的引用替换为“5.2.0.0”而没有引号。然后我重新加载了项目,现在一切似乎都在为我工作。