即使我安装了所有.NET版本,编译时.NET版本也不匹配

时间:2013-11-20 20:14:08

标签: c# .net visual-studio using

我正在使用C#在Visual Studio 2013 RC中编写自定义Grasshopper组件。但是,在编译时,我收到以下错误:

The primary reference "Grasshopper" could not be resolved because it has an indirect dependency on the framework assembly "System.ServiceModel, Version=3.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" which could not be resolved in the currently targeted framework. ".NETFramework,Version=v2.0". To resolve this problem, either remove the reference "Grasshopper" or retarget your application to a framework version which contains "System.ServiceModel, Version=3.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089".   MassAddition2

我怀疑这是因为我的.NET过时了,但是当我使用.NET 4.5更新程序时,它告诉我我有4.5或更高版本的安装程序。找到我的注册表版本,这是我看到的

enter image description here

因为我无法引用这些程序集/库,所以我的代码无法运行或编译。我得到了蓝色下划线using

enter image description here

有谁知道我能做什么?

0 个答案:

没有答案