What determines which version of Typescript is used during the msbuild process?

I have several systems to complete a C # build using an msbuild script. Inside this solution is a project (csproj) containing links to .ts files that must be compiled using visual studio 2013, which is built into tsc support.

In our original build system, when the project is built from the msbuild script project, it refers to C: \ Program Files (x86) \ Microsoft SDKs \ TypeScript \ 1.0, and on the new system it is connected to C: \ Program Files (x86) \ Microsoft SDK \ TypeScript \ 1.1, and we need 1.0 to work properly. How / where can I change this to indicate the correct version?

+5
source share
2 answers

You can open csproj in a text editor and add the following to it: use the 1.0 TypeScript compiler.

<PropertyGroup> <TypeScriptToolsVersion>1.0</TypeScriptToolsVersion> </PropertyGroup> 

Simple, but it's below another group of properties, and you should be good to go. To do this, you must install offcourse TypeScript 1.0.

+4
source

If you need a specific version of the dependency and that other developers may have newer or outdated versions, check out the NuGet Gallery to find how to integrate NuGet and get it to pull out the corresponding version during the build process.

This will ease the dependency of the installation on your build processes or the need to monitor the installation status of the various dependency components.

0
source

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


All Articles