2017-08-16 139 views
1

顾问在VS15中修改了我们的项目(asp.net core C#)以添加对SSIS包的调用。缺少参考文献:.net核心Visual Studio 2017 - 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电话?或者我只需要找到这些库并创建对它们的明确引用?

+0

仅供参考:决定从存储过程调用SSIS包,否认需要这些麻烦的依赖关系。 –

回答

2

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

支持Integration Services for Visual Studio 2017的进度为 ,但在发布日尚未推出。现在我们推荐使用SSDT for VS2015的 ,如果您需要在解决方案中一起使用所有BI项目类型 ,但请保持关注this blog更新 。

根据this discussion,将于昨天(15.08.2017)发布的VS 2017更新3(15.3)中提供SSIS支持。它将像独立的.exe安装程序一样运输。下面是本次讨论帖:

SSIS严重依赖COM,我们有VSTA依赖性,老SSIS运行时(以支持多个目标服务器版本),所以我们需要一个exe安装程序(如SSDT为VS2015安装程序)捆绑一切。我们的安装程序可以在SSDT下载页面找到。一旦它被释放,我会让你们知道。目前我们的目标是本周或下周初,只要一切顺利。

-1

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

+0

问题是,默认情况下,错误消息中引用的某些程序集在我们的开发机器上不存在。我不确定这是否是使用VS17的副产品。 –

相关问题