SSIS VSTA Script Editor Not Displaying in VS2015

2019-04-09 21:19发布

I recently created a new SSIS project from within VS2015. I added a script task and when I click on the "Edit Script" button. Visual Studio opens; however, there's no solution

I'm running VS as administrator. I've tried re-installing Microsoft Visual Studio Tools for Applications 2015. With no luck. I did once get the solution to pull up after I re-installed Microsoft Visual Studio Tools for Applications 2015; however, the next time I clicked "Edit Script" there was nothing.

Is this a bug withing VSTA or has anyone else came across this issue?

"Edit Script" buttion from within the Script Component: enter image description here

No solution when clicking "Edit Script": No solution when clicking Edit Script

6条回答
Animai°情兽
2楼-- · 2019-04-09 21:35

I came across this issue and it was driving me crazy. GIT is definitely what is causing this. When you take the solution out of the source control directory, the problem disappears.

查看更多
▲ chillily
3楼-- · 2019-04-09 21:38

I have VS 2013 (with VSTA 2012) and VS 2015 (with VSTA 2015). I had the same problem: If I tried to edit a Script Task (both in VS 2013 SSIS or VS 2015 SSIS project), the VS 2015 shell opened, but was empty.

I tried the solution described by Rae: Uninstalling "Visual Studio Tools for Applications 2015" and subsequently repairing "Visual Studio Tools for Applications 2012". This solution worked for VS 2013, after that, all scripts are opened in VS 2012. But after that, in VS 2015 SSIS Projects, I could no longer edit Script Tasks. (Error message "Could not load file or assembly 'Microsoft.VisualStudio.Tools.Applications, Version=14.0.0.0,...")

The solution was: - Repair "Microsoft SQL Server Data Tools - Visual Studio 2015" (which re-installed VSTA 2015). After that I had the same problems like at the beginning, VS 2015 Shell opened empty, without source code file. - Install VS 2015 Update 3 (like recommended by Rob Nicholson). This was the fix...

After that, I can edit Script Tasks both in VS 2013 SSIS and VS 2015 SSIS projects, both open the VS 2015 shell.

查看更多
成全新的幸福
4楼-- · 2019-04-09 21:40

I've solved the exact same problem today. In my case it was most likely caused by installing and removing several versions of VS/SSDT without some proper clean-up.

Go to Control Panel -> Uninstall or change a program -> "Microsft SQL Server Data Tools for Visual Studio 2015" -> Change -> Repair.

Repeat the steps for "Visual Studio Tools for Applications 2015".

This should only fix your installation and not affect any of your projects.

After restarting my Windows the problem was fixed!

查看更多
叛逆
5楼-- · 2019-04-09 21:44

I was experiencing this issue with an SSIS 2012 project.

Uninstalling "Visual Studio Tools for Applications 2015" and subsequently repairing "Visual Studio Tools for Applications 2012" got it for me.

My SSIS project in VS2012 would try opening scripts in a VS2015 instance. After uninstalling VSTA 2015, VS2012 now successfully opens the scripts in a VS2012 instance.

For reference, I have both Visual Studio 2012 and Visual Studio 2015 installed. I also have SQL Server Data Tools v11.1 and v14.0 installed.

I'm guessing this issue comes down to clashing versions of Visual Studio Tools for Applications.

查看更多
SAY GOODBYE
6楼-- · 2019-04-09 21:48

Ok, for me this problem was due to Resharper - if I go under Tools | Options | Resharper and Suspend Now it allows the VSTA editor to display each time. Hope this helps

查看更多
\"骚年 ilove
7楼-- · 2019-04-09 21:56

I tried many of the proposed solution but could not get this working. After I updated SQL Data Tools to 14.0.61707.300 (the highest version of available for Visual Studio 2015 available) and applied Visual Studio Update 3 (14.0.25420.01) the code inside the Script Task / VstaProjects now populates correctly. As a side note my SQL/SSIS version is 2016 and Visual Studio Tools for Applications 2015 is at 14.0.23829. Hope this helps

查看更多
登录 后发表回答