SQL 项目未在 SQLCLR 属性中显示 C#

发布于 2025-01-10 21:00:39 字数 1336 浏览 0 评论 0原文

我正在尝试在 SSDT 中创建 SQL Server 项目,但在属性中我在语言下拉列表中看不到 C#。当我打开以前创建的 SQL 项目时,我可以看到 C# 选项。 创建使用 C# 语言的 SQL 项目需要做什么?

系统上安装的软件版本 -

Microsoft Visual Studio 2013 Shell (Integrated)
Version 12.0.21005.1 REL
Microsoft .NET Framework
Version 4.8.04084

Installed Version: IDE Standard

Common Azure Tools   1.6
Provides common services for use by Azure Mobile Services and Microsoft Azure Tools.

SQL Server Analysis Services   
Microsoft SQL Server Analysis Services Designer 
Version 12.0.5000.0

SQL Server Data Tools   12.0.61021.0
Microsoft SQL Server Data Tools

SQL Server Integration Services   
Microsoft SQL Server Integration Services Designer
Version 12.0.2430.0

SQL Server Reporting Services   
Microsoft SQL Server Reporting Services Designers 
Version 12.0.2430.0

Windows Installer XML Toolset   3.10.2.2516
Windows Installer XML Toolset version 3.10.2.2516

创建 SQL 项目并重现问题的步骤 -

  1. 打开 Visual Studio
  2. 单击文件 ->新->项目->模板 – SQL Server -> SQL Server 数据库项目。
  3. 给出名称并选择解决方案的位置。
  4. 将创建数据库项目。
  5. 转到解决方案资源管理器 ->右键单击解决方案->特性。
  6. 单击 SQLCLR。单击语言下拉菜单。在这里我应该看到 C# 选项,但它丢失了。

我应该怎么做才能获得 C# 语言选项?

输入图片此处描述

I am trying to create a SQL Server Project in SSDT but in the properties I can't see C# in the language dropdown. When I open a previously created SQL Project I can see the C# option.
What do I need to do to create a SQL Project having C# language?

Software Versions installed on the system-

Microsoft Visual Studio 2013 Shell (Integrated)
Version 12.0.21005.1 REL
Microsoft .NET Framework
Version 4.8.04084

Installed Version: IDE Standard

Common Azure Tools   1.6
Provides common services for use by Azure Mobile Services and Microsoft Azure Tools.

SQL Server Analysis Services   
Microsoft SQL Server Analysis Services Designer 
Version 12.0.5000.0

SQL Server Data Tools   12.0.61021.0
Microsoft SQL Server Data Tools

SQL Server Integration Services   
Microsoft SQL Server Integration Services Designer
Version 12.0.2430.0

SQL Server Reporting Services   
Microsoft SQL Server Reporting Services Designers 
Version 12.0.2430.0

Windows Installer XML Toolset   3.10.2.2516
Windows Installer XML Toolset version 3.10.2.2516

Steps to create the SQL Project and reproduce the issue -

  1. Open Visual Studio
  2. Click on File -> New -> Project -> Template – SQL Server -> SQL Server Database Project.
  3. Give the Name and select the location of solution.
  4. Database project will be created.
  5. Go to Solution Explorer -> Right click on Solution -> Properties.
  6. Click on SQLCLR. Click on the Language drop down. Here I should see the C# option but it is missing.

What should I do to get the C# option in language?

enter image description here

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

当梦初醒 2025-01-17 21:00:39

SSDT 是用于开发 SQL Server 项目的 Visual Studio 2013 shell(集成)。它不附带 C#。您需要单独安装 C# 作为“工具”>“的一部分”扩展。

请参阅 pdf 文档

在此处输入图像描述

SSDT is Visual Studio 2013 shell (integrated) for developing SQL Server projects. It does not come with C#. You need to install C# separately as part of Tools > Extensions.

Refer to the pdf documentation

enter image description here

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文