TypeScript plugin for Visual Studio 2012 gives an error right away

I downloaded and installed TypeScript plugin for Visual Studio 2012 , and then Visual Studio 2012 did not even start. He immediately gave the error message ".. target of invocation ...".

I had to disable the plugin in order to use Visual Studio 2012 again.

Does anyone have a similar experience and is there a fix?

0
source share
2 answers

I ran into this problem. For me, this is because my Windows PATH variable has moved more than 2047 characters. This also violated the% windir% path extension, so I could not change my PATH variable by going to Computer → Properties → Advanced → Environment Variables. The solution was to change my system PATH variable by going to C: \ Windows \ system32 \ and running systempropertiesadvanced.exe, copying the System PATH variable, pasting it into your text editor of your choice, divide it by a semicolon, sort alphabetically delete duplicates and other unnecessary paths until I get below 2047 characters, return all lines with a semicolon and paste it back into your System PATH variable. For more information, see this .

+1
source

I had no problems, and the only one I came across was that after installation the templates could not be found.

The only thing I have is to retry the installation and see if you get a different result. If you still receive an error message, please submit a complete error message.

Update

Well, here's something else to try - I put them in order, how painful they are!

  • I do not know where you install TypeScript, but a colleague mentioned that they had a problem and resolved it by moving the installer to the desktop to start the installation. I am skeptical about this, but it is easy to do.

  • You may have a problem installing Visual Studio, which only appears in certain situations. You can restore the VS installation.

If none of this works, you may have a problem with http://typescript.codeplex.com

0
source

Source: https://habr.com/ru/post/1500509/


All Articles