【问题标题】:How to create dll for sql assembly using Visual Studio 2013 express?如何使用 Visual Studio 2013 express 为 sql 程序集创建 dll?
【发布时间】:2014-11-20 06:45:39
【问题描述】:

我正在尝试使用此 official documentation 创建一些 CLR 函数。为了创建dll,我下载了 Visual Studio 2013 Express。

问题是我在构建时遇到这样的错误:

错误 1 ​​类型或命名空间名称“数据”不存在于 命名空间“系统”(您是否缺少程序集引用?)

我正在使用以下模板:

并使用在网络设置网络框架中找到的解决方案作为目标:

但无法再次工作。

另外,我应该为 SQL Server 2012 使用哪个版本的 .NET Framework?

【问题讨论】:

    标签: c# tsql visual-studio-2013 sql-server-2012 clr


    【解决方案1】:

    你的项目类型应该是Class Library 而不是你截图上的Portable

    确保您已在项目中包含对 System.Data 程序集的引用。

    SQL 2012 默认使用 CLR 4.0

    更新

    您应该使用 VS Express 2013 for Windows Desktop不是“For Windows”)来创建 Winforms 应用程序和类库。见What is the difference between Visual Studio Express 2013 for Windows and Visual Studio Express 2013 for Windows Desktop?

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2016-06-02
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2016-08-12
      相关资源
      最近更新 更多