【发布时间】: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