【问题标题】:Missing References: .net core Visual Studio 2017 - SSIS Integration缺少参考:.net core Visual Studio 2017 - SSIS 集成
【发布时间】:2017-08-16 12:53:17
【问题描述】:

一位顾问在 VS15 中修改了我们的项目(asp.net core C#),以添加对 SSIS 包的调用。

我们在 VS17 中编译此代码时遇到错误。

using System.Data.Sql;
using Microsoft.SqlServer.Management.IntegrationServices;
using static Microsoft.SqlServer.Management.IntegrationServices.PackageInfo;

var intSvc = new IntegrationServices(new System.Data.SqlClient.SqlConnection(Database.GetDbConnection().ConnectionString));
....
....

错误

Error CS0234 The type or namespace name 'Sql' does not exist in the namespace 'System.Data' (are you missing an assembly reference?)
Error CS0234 The type or namespace name 'Management' does not exist in the namespace 'Microsoft.SqlServer' (are you missing an assembly reference?)
Error CS0246 The type or namespace name 'IntegrationServices' could not be found (are you missing a using directive or an assembly reference?)
....
....

Visual Studio 2017 是否根本无法支持 SSIS 调用?还是我只需要找到这些库并创建对它们的显式引用?

【问题讨论】:

  • 仅供参考:决定从存储过程中调用 SSIS 包,这样就不需要这些麻烦的依赖项了。

标签: c# visual-studio-2015 ssis asp.net-core visual-studio-2017


【解决方案1】:

根据this link(2017 年 6 月),在 VS 2017 更新 3 (15.3) 之前,似乎在 VS 2017 中不支持 SSIS。

支持 Visual Studio 2017 的集成服务 进度,但在发布日尚不可用。目前我们推荐 如果您需要使用所有 BI 项目类型,请使用 SSDT for VS2015 一起解决方案,但请继续关注this blog 以获取更新 关于这个。

根据this discussion 的消息,昨天(2017 年 8 月 15 日)发布的 VS 2017 更新 3 (15.3) 中将支持 SSIS。它将像单独的.exe 安装程序一样发货。以下是本次讨论的引述:

SSIS 严重依赖 COM,而我们依赖于 VSTA、旧的 SSIS 运行时(以支持多个目标服务器版本),因此我们需要一个 exe 安装程序(如 VS2015 安装程序的 SSDT)来捆绑所有内容。我们的安装程序可以很快在 SSDT 下载页面中找到。发布后我会通知大家。目前我们的目标是本周或下周初,只要一切顺利。

【讨论】:

    【解决方案2】:

    您是否尝试重新添加对这些程序集的引用?右键单击项目中的引用,单击添加引用并重新添加所有缺少的程序集。

    【讨论】:

      猜你喜欢
      • 2018-07-03
      • 2018-08-18
      • 1970-01-01
      • 2012-11-04
      • 2018-03-15
      • 1970-01-01
      • 2018-06-26
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多