[CSHARP-3275] (Integration Services Project -> Script Task) build failure due to missing MongoDB.Libmongocrypt.targets Created: 30/Nov/20  Updated: 27/Oct/23  Resolved: 05/Jan/21

Status: Closed
Project: C# Driver
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Bug Priority: Major - P3
Reporter: Alex Bevilacqua Assignee: Dmitry Lukyanov (Inactive)
Resolution: Works as Designed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Attachments: PNG File screenshot-1.png     PNG File screenshot-2.png    
Case:

 Description   

Steps to reproduce:

1) Create a new Integration Services Project in VS2K19 (Community or Enterprise)
2) Drag a Script Task from the *SSIS Toolbox* to the control flow
3) Right Click on the Script Task, select "Edit...", select "Edit Scripts"
Script Task Project
4) Set the project .NET Target Framework to 4.7.2
5) Using NuGet Package Manager, install MongoDB.Driver 2.11.4
6) Open ScriptMain.cs
7) Add "using MongoDB.Driver;" to the #region Namespaces section
8) Build the project

Severity	Code	Description	Project	File	Line	Suppression State
Error		This project references NuGet package(s) that are missing on this computer. Use NuGet Package Restore to download them.  For more information, see http://go.microsoft.com/fwlink/?LinkID=322105. The missing file is ..\packages\MongoDB.Libmongocrypt.1.0.0\build\MongoDB.Libmongocrypt.targets.	ST_0898b6dddafa4f259d5036732f341bb7	C:\Users\Administrator\AppData\Local\Temp\Vsta\SSIS_ST150\VstaV6aa6HrRvUqUazVEIqHdFA\VstaAIAPUu_FTkejmudpgWd6og\ST_0898b6dddafa4f259d5036732f341bb7.csproj	161	



 Comments   
Comment by Dmitry Lukyanov (Inactive) [ 05/Jan/21 ]

Closing it per the answer from SSIS team. Please reopen this if you think that we can consider more work here

Comment by Dmitry Lukyanov (Inactive) [ 05/Jan/21 ]

alex.bevilacqua, this is the answer I've received:

Sorry, consuming NuGet packages in script task/component is not supported due to the limitation of VSTA. We recommend you to manually download the NuGet and add the reference to the dlls in your project.

Generated at Wed Feb 07 21:44:52 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.