SSIS Script transform package won't compile when deployed to dev [Visual Studio 2017]
You need to make sure the package in Visual Studio has been created with the correct target SQL Version you are deploying to.
In Visual Studio right click on the project name and select properties.  Under the Configuration Properties -&gt; General menu you will see the TargetServerVersion.  This must match the SQL version you are deploying to.
Once changed, build and deploy the packages again.