Visual Studio "no project supported by NuGet" error

Gronli, Brad 26 Reputation points
2024-01-23T18:58:37.6266667+00:00

I am attempting to create a new SSIS package in Visual Studio and am getting this message when I try to open the NuGet Manager. I am using Visual Studio 2019 Version 16.11.33. This just started happening within the last couple of weeks.

SQL Server Migration Assistant
SQL Server Migration Assistant
A Microsoft tool designed to automate database migration to SQL Server from Access, DB2, MySQL, Oracle, and SAP ASE.
538 questions
0 comments No comments
{count} votes

Accepted answer
  1. Michael Taylor 54,811 Reputation points
    2024-01-23T20:41:16.55+00:00

    You cannot use NuGet with SSIS. NuGet is for downloading packages for .NET applications. It doesn't support SSIS projects. While you can use a C#/VB script in SSIS it runs in a sandbox and won't have access to the assemblies that NuGet might have downloaded.

    In fact, in order to use a third party assembly in SSIS you have to go through a series of steps:

    • Ensure the assembly supports .NET 4 because that is the version of the DTS host the package runs under.
    • The assembly must be strongly named by the publisher of the NuGet package.
    • The assembly must be installed into the GAC on the development machine (for VS) and on the SSIS server (for runtime).
    • You must add a reference to the GAC assembly using Project References inside the SSIS script task that needs it.
    1 person found this answer helpful.
    0 comments No comments

1 additional answer

Sort by: Most helpful
  1. ZoeHui-MSFT 37,671 Reputation points
    2024-01-24T08:15:09.9833333+00:00

    Hi @Gronli, Brad

    Nuget packages are not supported in SSIS script task/component. You need to download the assemblies manually from the GitHub repository.

    Next, you should add these assemblies to the Global cache assembly (GAC):

    ---You can refer to the following article for more guidance:

    Regards,

    Zoe Hui


    If the answer is helpful, please click "Accept Answer" and upvote it.

    1 person found this answer helpful.
    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.