【问题标题】:'ExtensionAttribute' is ambiguous in the namespace 'System.Runtime.CompilerServices'“ExtensionAttribute”在命名空间“System.Runtime.CompilerServices”中不明确
【发布时间】:2014-09-17 09:26:59
【问题描述】:

我在 .net 2.0 中有 vb 项目。我将项目转换为 .net 4.5。 我有这个错误

'ExtensionAttribute' is ambiguous in the namespace 'System.Runtime.CompilerServices'.

我该做什么

【问题讨论】:

标签: .net vb.net compilation


【解决方案1】:

我找到了解决问题的方法,我会发布它:

  1. 关闭 VS。
  2. 重启 IIS
  3. 清除“C:\WINDOWS\Microsoft.NET\Framework\XXX\Temporary ASP.NET Files\”文件夹。
  4. 清除项目的 Bin。
  5. 重建您的应用程序。

【讨论】:

  • 正确答案引用解决方案的来源。只是复制/粘贴已经在其他地方详细记录的解决方案是没有有用的,它让任何有同样问题的人更多网页浏览却没有任何好处。
猜你喜欢
  • 2011-08-26
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2010-10-28
  • 2014-10-15
  • 2012-05-07
  • 1970-01-01
  • 2021-11-28
相关资源
最近更新 更多