![](/img/trans.png)
[英]Type or namespace 'MSBuild' does not exist in namespace 'Microsoft.CodeAnalysis' despite being able to navigate to definition
[英]The type or namespace CodeAnalysis does not exist in the namespace 'Microsoft.SqlServer.Dac
尝试在演练中创建示例: http : //msdn.microsoft.com/zh-cn/library/dn632175 (v=vs.103) .aspx我正在使用VS2013。
在“定义LocalizedExportCodeAnalysisRuleAttribute类”部分中,出现以下错误:
类型或名称空间CodeAnalysis在名称空间'Microsoft.SqlServer.Dac中不存在
似乎Microsoft.SqlServer.Dac库是SQL Server SDK的一部分,而不一定是Visual Studio附带的“默认”库。
您可以在此处通过SQL Server数据工具库下载SDK。 安装后,它应该具有您需要的库。 然后,您需要确保在继续之前在项目中添加对库的引用。
代码分析名称空间位于Microsoft.SqlServer.Dac.Extensions下,而不位于Microsoft.SqlServer.Dac下
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.