我有一个南希视图,其中有一个使用语句:
@using System.Xml
@{ //code
}
<!-- rest of page -->
System.Xml在我的项目中被引用。
当我试图运行这个应用程序时,我会得到一个Razor编译错误:
Error compiling template: Views/index.cshtml
Errors:
[CS0234] Line: 1 Column: 18 - The type or namespace name 'Xml' does not exist in the namespace 'System' (are you missing an assembly reference?) (show)
Details:
@using System.Xml
其他名称空间,例如System.Web也以同样的方式失败,即使它们包含在项目中。
想法?
发布于 2014-11-18 18:03:14
https://stackoverflow.com/questions/27000655
复制相似问题