After Visual Studio 2017 updated from 15.7.5 to 15.8.0, I am now receiving errors whenever I try to build and save a script task that executes the WinSCPNet assembly for the purposes of downloading files via SFTP. I am able to successfully build the script task and close VSTA, but when I click on OK to save the changes, I receive the following error:
"Scripts contained in the package have compilation errors. Do you want to save changes?"
https://i.stack.imgur.com/KOSyF.png
When I click yes and save these bogus errors, the script task no longer does its job. While SSIS will execute it successfully, it does nothing. I am largely using code provided on WinSCP's website here: https://winscp.net/eng/docs/library_ssis.
Troubleshooting steps attempted:
- I am able to successfully build other script tasks and save without error.
- I am able to build the script task that uses the WinSCPNet assembly on an older installation of VS 15.7.5
- I installed SSDT 15.8.0 only to a test environment and I get the same problem when trying to save after a successful build of the script task that uses the WinSCPNet assembly.
- I tried creating a whole new project and re-compiling but I get the same error.
- I have tried uninstalling and re-installing the assembly from the GAC, but that did not resolve the problem.