0

单击brewjs nuget示例中的保存按钮时出现以下错误:

无法从程序集“mscorlib,版本=4.0.0.0,文化=中性,PublicKeyToken=b77a5c561934e089”加载类型“System.Runtime.CompilerServices.ScriptAssemblyAttribute”

调用以下代码中的SaveChanges时出现错误:

[HttpPost]
public SaveResult SaveChanges(JObject saveBundle) {
   return _contextProvider.SaveChanges(saveBundle);
}

实际上,当我在代码编辑器中查找System.Runtime.CompilerServices并且我的目标是 .NET 4.5时,智能感知中不存在ScriptAssemblyAttribute 。

我错过了什么?

提前致谢。

4

1 回答 1

1

原来 Script# 与它有关。我卸载了它,错误消失了。

于 2012-12-01T06:53:25.107 回答