This started today. The edit script stopped working in VS 2017. Here is the work around;
The issue may occur because the Script Task is not installed properly.
VS 2017 solution
Here are two options that might help;
Option # 1
Open control panel and try to repair “Microsoft Visual Studio Tools for Applications 2017”.
This options has helped me after upgrading VS SSDT 2017 recently. The funny things is that you don’t need to repair “Microsoft SQL Server Data Tools for Visual Studio 2017 (SSDT). Anyway it worked.
Option # 2
Please check whether the Microsoft.SqlServer.ScriptTask.dll file exists in the following folders (supposing it is a 64-bit platform):
- C:\Program Files\Microsoft SQL Server\110\DTS\Tasks
- C:\Program Files (x86)\Microsoft SQL Server\110\DTS\Tasks
- C:\Windows\Microsoft.NET\assembly\GAC_MSIL\Microsoft.SqlServer.ScriptTask\v4.0_11.0.0.0__89845dcd8080cc91
If the Microsoft.SqlServer.ScriptTask.dll file is missing in any of the folders, copy one (from the other folders or a different working SSIS server) to the folder. Alternatively, you can also use the command line tool gacutil.exe to install the task assembly into the global assembly cache (GAC)
If above work around does not work, then do this;
Uninstall SSDT from your machine
Reboot the machine so that no cache issue
Reinstall SSDT with the option Install new SQL Server Data Tools for Visual Studio 2017 instance (SSDT), like below. Do not install in your existing Visual Studio instance again.
VS 2019 Solution
Download and Install this patch from Microsoft;
https://www.microsoft.com/en-us/download/details.aspx?id=58317
Here is the reference to this download;
Hope this will help.