如何将 NuGet 与 SSDT 结合使用? [英] How can I use NuGet with SSDT?

查看:61
本文介绍了如何将 NuGet 与 SSDT 结合使用?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在处理一个集成服务项目.我使用的数据源之一要求从 NuGet 安装包.我试图转到工具"NuGet 包管理器但它在 SQL Server Data Tools (SSDT) 中不可用.接下来,我尝试通过从 nuget.org 网站下载来安装 NuGet.我收到以下错误:

I am working on an Integration Services project. One of the data sources I use calls for a package to be installed from NuGet. I tried to go to "Tools > NuGet Package Manager" but it is not available in SQL Server Data Tools (SSDT). Next I tried to install NuGet by downloading it from the nuget.org website. I got the following error:

VSIXInstaller.NoApplicableSKUsException:此扩展无法安装在任何当前安装的产品上.

VSIXInstaller.NoApplicableSKUsException: This extension is not installable on any currently installed products.

如何将 nuget 与 SSDT 结合使用?

How can I use nuget with SSDT?

推荐答案

SSIS 项目类型不支持 Nuget.

The SSIS project type doesn't support Nuget.

可以添加对与脚本任务关联的 csproj 的 nuget 引用,但这可能会在部署时造成进一步的不适.

It is possible to add a nuget reference to the csproj associated with a script task, but this may cause further discomfort at deployment time.

您可以自己从 nuget.org 下载 nuget.exe 并从命令行安装包,但考虑到安装 SSIS 使用的外部 dll 的特殊"要求,找到非 nuget 源可能很容易您需要的组件.

You can download nuget.exe by itself from nuget.org and install packages from the command line, but given the "special" requirements for installing external dlls used by SSIS it might be as easy to find a non-nuget source for the component you need.

这篇关于如何将 NuGet 与 SSDT 结合使用?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆