Reputation: 998
We just converted our javascript files to typescript. Everything builds locally just fine but our build in TFS (cloud version i.e. tfs.visualstudio.com) gave us the error:
The imported project "C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v11.0\TypeScript\Microsoft.TypeScript.targets"
was not found. Confirm that the path in the declaration is correct, and that the file exists on disk.
Locally we are using typescript version 0.9.1.1 and VS2012
And advise?
Upvotes: 4
Views: 4097
Reputation: 641
This message usually throws when you cancelled the installation of VS or changed the Typescript version or failed to install the Typescript SDK for the corresponding Visual Studio Edition. Download and install the Typescript SDK can get you rid of this error.
Here is the link for downloading SDK for VS2017.
https://www.microsoft.com/en-us/download/confirmation.aspx?id=55258
Upvotes: 0
Reputation: 10711
I had to install Visual Studio 2013 RC2 to get TypeScript installed by default and get rid of this error message, instead of trying to download a package. It can be found here:
http://www.microsoft.com/fr-fr/download/details.aspx?id=42666
Upvotes: 1
Reputation: 1169
To ensure that Web projects using Microsoft.TypeScript.targets will build successfully on a build server, you have two options:
More details here => http://typescript.codeplex.com/workitem/1518
Upvotes: 4
Reputation: 250982
Usually this is because you haven't installed the TypeScript extension on the build server - it will need the same installer you used locally.
This will put tsc.exe
into the SDK/Typescript folder and allow the build server to build your TypeScript files and check all your types.
Upvotes: 1