Driver FixRecommendedSound, Wi-Fi or graphics acting up? Check drivers firstFind missing or outdated drivers fast.Check DriversOctober DealsAmazon USOctober deal check: compare before you payAmazon US: current deals, useful picks and tech finds.Check DealsSlow PC?RecommendedPC slow today? Run a repair scan before it gets worseResolve common Windows issues and optimize system performance.Scan Now×
Skip to content
World desk5 min

How to Bundle NuGet Dependencies for an SSIS Script Task

NuGet restore and SSIS deployment are separate. Check framework support, package assets, project format, transitive dependencies, and the execution environment before relying on a Script Task DLL.
Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Adding a NuGet package to an SSIS Script Task does not, by itself, guarantee that the package’s DLLs will be available when the task runs. You must first confirm that the library targets a framework the Script Task supports, then make its required assemblies available both to the VSTA script project and to the machine and process executing the package. Microsoft’s current Script Task documentation says .NET Core and .NET Standard assembly references are not supported for this use.

What “bundling” means in an SSIS Script Task

There are several separate steps that are easy to confuse:

  • Restore: NuGet resolves the package and its dependencies for the project.
  • Compile: The VSTA script project needs references to compatible assemblies so the code can build.
  • Run: The SSIS execution environment must be able to load the assemblies the script actually uses, including required dependencies.

A successful restore or compile does not prove that the execution environment has every runtime dependency. NuGet selects package assets according to the package contents, target framework, and project’s package-management format; it is not a blanket SSIS deployment mechanism. Microsoft describes external assembly references in the Script Task documentation, but that guidance does not promise that adding a reference embeds every dependency in an SSIS package.

Check framework compatibility before restoring or copying DLLs

The first question is whether the package contains an assembly compatible with the Script Task environment. Microsoft states that “Currently we dont support .NET Core and .NET standard assembly references.” A package’s availability on NuGet does not change that Script Task limitation. Review the package’s target-framework assets and confirm that the asset selected for your script is supported before trying to solve a runtime-loading error.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

If the package offers only .NET Core or .NET Standard assets, adding the DLL to the VSTA project or copying it beside the package does not make that asset supported. If it also offers a compatible .NET Framework asset, check that the project resolves and references that asset rather than assuming NuGet selected the one you need.

Inspect the package’s assets and dependencies

Look at the package contents and its dependency metadata, not just its display name or version. The NuGet .nuspec reference documents dependency declarations and assembly-reference metadata. Check which framework-specific assemblies the package provides and identify the dependencies needed by the selected asset.

  • Separate compile-time assets from runtime assets; a package can provide different files for those roles.
  • Account for transitive dependencies, not only the package you added directly.
  • Check for native or reflection-loaded dependencies, which may not be found through ordinary static reference resolution.
  • Do not assume a package layout or asset-selection behavior applies identically to every project format.

NuGet recommends one assembly per package, with dependencies expressed as package dependencies; this is a NuGet packaging recommendation, not a guarantee of SSIS deployment behavior. See Microsoft’s guidance on selecting assemblies referenced by projects and NuGet package asset layout.

Know whether the VSTA project uses PackageReference or packages.config

The project’s package-management format affects how NuGet selects and exposes assemblies. Do not treat PackageReference and packages.config as interchangeable when diagnosing a missing DLL.

Free tools Windows power users keep installed

One-click scans. No signup required.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
Project format What NuGet does What to verify for SSIS
PackageReference Resolves a transitive dependency graph and selects compile and runtime assets. The resolved graph is recorded in project.assets.json. Confirm the selected compile and runtime assets are appropriate for the Script Task, and separately establish that needed runtime files are available to the SSIS execution process. The restore artifact is not proof of runtime availability.
packages.config Packages commonly contribute assembly references from their lib folders, with reference resolution involved in copying managed dependencies. Check which assemblies were added as references and whether the required dependencies are available when the task runs; do not infer deployment from the package’s presence in the package list.

Microsoft documents the distinctions in its pages for dependency resolution and the packages.config file format. In particular, PackageReference can select compile and runtime assets independently, while packages.config projects commonly use assemblies under lib. Neither description is an SSIS-specific promise to package every required file for execution.

Add compatible external references in the VSTA project

SSIS Script Task code is developed in VSTA. Microsoft documents adding external .NET assembly references to that project; use the project’s reference mechanism and verify that the reference points to a compatible asset. A reference that satisfies compilation is only one part of the deployment question: runtime dependencies still need to be found by the process running the package.

Microsoft also says Script Task scripts in SQL Server 2008 SSIS and later are precompiled. Precompilation should not be read as proof that all third-party dependencies are embedded or will load on another computer.

Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Support on Ko-Fi

Plan for the actual execution machine

Microsoft’s Script Task documentation says VSTA must be installed on the computer where the package runs. That requirement does not establish that third-party assemblies from your NuGet package are installed there. Check the machine and process that actually execute the package, including whether each required managed, native, or dynamically loaded dependency is available to them.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

There is no single deployment location or procedure established for every combination of SQL Server, SSIS deployment model, VSTA version, and execution account. Avoid assuming that copying DLLs to a particular folder, placing them in the Global Assembly Cache, or changing a deployment property is universally correct. Verify the deployment method against the exact environment and supported Microsoft guidance for that version.

Troubleshoot a successful build followed by an assembly-load failure

  1. Identify the exact missing assembly. Use the runtime error to distinguish the package’s direct assembly from a transitive or dynamically loaded dependency.
  2. Check framework assets. Confirm that the selected assembly is compatible with the Script Task environment; NuGet restore success is not a compatibility check.
  3. Review the package graph and layout. Inspect dependency declarations and framework-specific assets, then account for runtime and reflection-loaded dependencies as well as compile references.
  4. Confirm the project format. Determine whether the VSTA project uses PackageReference or packages.config and check the corresponding asset and reference behavior.
  5. Validate the execution environment. Check VSTA installation and whether the SSIS execution process can access the required dependency files.
  6. Verify version-specific deployment guidance. Establish the SQL Server/SSIS version, deployment model, VSTA or Visual Studio version, and package target framework before applying a location-specific fix.

A 2021 Microsoft Q&A question described a user trying to use the same “.NetCore3.0 DLL” in an SSIS Script Task. It is an example of the compatibility problem, not evidence that current Script Task environments support that target: SSIS Script task and DLLs and .NetCore.

Information needed for a version-specific answer

To determine a safe deployment procedure for a particular package, establish the SQL Server/SSIS version, package deployment model, VSTA or Visual Studio version, package target framework, and the exact assembly-load error. Without those details, a universal “copy the DLL here” recipe would overstate what the documented behavior establishes.

Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on Amazon at the time of purchase will apply.

What’s actually slowing this PC down?

Pick the symptom - the matching free tool is one click away.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Leave a Reply

Your email address will not be published. Required fields are marked *

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

More from the Wire

  1. World desk4 min
    How to Spot an AI Voice Scam Before Sending MoneyDon’t rely on how a caller sounds. Pause, call back through a known number, and verify the emergency with another trusted person before sending money.
  2. Mountain View desk4 min
    Google’s SynthID Detector: How to Check AI-Generated Images, Video and AudioGoogle’s SynthID Detector looks for an embedded watermark in supported images, video and audio. Here is what its results do—and do not—show.
  3. Redmond desk20 min
    How to create a link to File or Folder in Windows 11Windows 11 gives you several ways to point to a file or folder without moving or duplicating it. You can create a desktop shortcut,…
Recommended PC Tool
Recommended PC Tool
Windows Errors? Fix Them Before They SpreadFree repair scan
Outdated Drivers Are Slowing You DownFree scan - exact matches

Two free Windows tools

One Free Minute Could Fix That PC

Before you go - each of these free tools takes about a minute and tackles what quietly slows a Windows PC down.

Special offer. View Outbyte info, uninstall instructions, EULA, and Privacy Policy.