SSIS package targeting SS 2019 enforces 4.7 but want to change it to 4.7.1 atleast across all SSIS packages

balu raju 56 Reputation points
2022-06-03T19:12:39.813+00:00

It looks like SSIS packages targeting SS2019 enforces 4.7 .Net framework. However, I really want to enforce 4.7.1 or higher. I Can go and change at the script task level, but I guess that is not ideal if I have 40+ SSIS packages with 3 or more script tasks.

Is there a way to enforce the .Net framework for all SSIS Packages at once?

P.S. Since our services are all targeting 4.7.1 and some of the SSIS packages use those services, I Just want them all to be same.

SQL Server Integration Services
SQL Server Integration Services
A Microsoft platform for building enterprise-level data integration and data transformations solutions.
2,703 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Yitzhak Khabinsky 26,586 Reputation points
    2022-06-03T21:01:27.64+00:00

    Hi @balu raju ,

    It is possible.

    SSIS packages are XML files with the extension *.dtsx
    One single XML element controls what .Net Framework version is used by the Script Task.

    So, you can use Notepad++ to make a change across multiple files on the file system

    • from <TargetFrameworkVersion>v4.7</TargetFrameworkVersion>
    • to <TargetFrameworkVersion>v4.7.1</TargetFrameworkVersion>

    Just as a precaution, first copy *.dtsx packages on a side, or keep them under a Source Control.
    So, if it will not work, you can easily recover working version of the packages.

    2 people found this answer helpful.

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.