I'm updating a project to use the latest versions of everything. I just updated the MVC 4 project from .Net 4.0 to .Net 4.5.1. I then updated the nuget packages(uninstalling some, and re-installing because they were based on .Net 4.0). Afterwords, I updated the machine version of Typescript to 1.4, that's when it all hit the fan. Just two simple errors. The first:
Your project file uses a different version of the TypeScript compiler and tools than is currently installed on this machine. No compiler was found at C:\Program Files (x86)\Microsoft SDKs\TypeScript\1.4\1.4\tsc.exe. You may be able to fix this problem by changing the element in your project file.
I made sure this was set to "1.4"
<TypeScriptToolsVersion>1.4</TypeScriptToolsVersion>
The second Error:
The specified task executable location "C:\Program Files (x86)\Microsoft SDKs\TypeScript\1.4\1.4\tsc.exe" is invalid.
So I attempted to locate where the path was set and take out where is was trying to look in a second folder "1.4". The path should be:
C:\Program Files (x86)\Microsoft SDKs\TypeScript\1.4\tsc.exe
I can't seem to find where this is set, and how I can change it.
I've tried:
Reinstalling and Repairing Typescript 1.4 and searching everywhere for where the path is set.
I've read answers that include checking the "Check your PATH environment variable." I can't find where to change that, and at this point my brain is angry.
I'm in Visual Studio 2013 Ultimate. Thanks.
I had the same problem. Only way I found it just create a new folder '1.4' at C:\Program Files (x86)\Microsoft SDKs\TypeScript\1.4 and copy to 'C:\Program Files (x86)\Microsoft SDKs\TypeScript\1.4**1.4**' all files from parent directory.
Stupid solution, but it works for me.
Solution:
Go to C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio
and rename the typescript
folder inside your VisualStudio version. For example, I renamed Typescript
folder inside v12.0
.
Go to C:\Program Files (x86)\Microsoft SDKs
and rename typescript
folder too.
Go to Program and Feature in the control panel, search Typescript and repair Typescript.
This solution will fix the problem, now you can delete the renamed folders
I installed version 1.5 then uninstalled it. After I uninstalled 1.5 I started to get the exact same error you are receiving. In order to fix it I had to run a repair in control panel on the Visual Studio installation. Running the repair on Visual Studio will fix the references to the SDK path.
I don't know if these steps are necessary, but before running the repair I manually went to:
C:\Program Files (x86)\Microsoft SDKs
and renamed the TypeScript folder.
Under the MSBuild path you may have multiple versions of Visual Studio listed. I went into each one and renamed the TypeScript folder.
C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v11.0\
C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v12.0\
C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v14.0\
I then ran the repair on my installation of Visual Studio from control panel. If you don't want to run the repair on the full installation and you have the original installation media or iso you can run the TypeScript SDK and VS packages from:
H:\packages\TypeScript_SDK
H:\packages\TypeScript_VS
After you run the repair or run the packages individually you will have an old version of TypeScript installed and can now go into Visual Studio and use the Extensions and Updates dialog to install TypeScript 1.4.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With