Encountering an error in Visual Studio 2015 after updating to version 3 and using TypeScript 2.0.
Error Invalid command line switch for "tsc.exe". Value cannot be null.
Parameter name: path1 ProjectTest C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v14.0\TypeScript\Microsoft.TypeScript.targets 214
The issue seems to be related to the TscToolPath being null, as indicated by this code snippet:
<VsTsc
ToolPath="$(TscToolPath)"
ToolExe="$(TscToolExe)"
TSConfigFile="%(ConfigFiles.Identity)"
YieldDuringToolExecution="$(TscYieldDuringToolExecution)"
ProjectDir="$(ProjectDir)"
ToolsVersion="$(TypeScriptToolsVersion)"
TypeScriptCompileBlocked="$(TypeScriptCompileBlocked)"
ComputeOutputOnly="false">
<Output TaskParameter="GeneratedJavascript" ItemName="emittedFiles" />
</VsTsc>
Despite checking Microsoft.Typescript.Default.props, the TscToolPath value cannot be found. However, it is specified in my .iceproj file for Telerik AppBuilder:
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Debug|AnyCPU'">
<TypeScriptTarget>ES5</TypeScriptTarget>
<TypeScriptJSXEmit>None</TypeScriptJSXEmit>
<TypeScriptModuleKind>AMD</TypeScriptModuleKind>
<TypeScriptOutFile />
<TypeScriptOutDir />
<TypeScriptNoEmitOnError>False</TypeScriptNoEmitOnError>
<TypeScriptSourceMap>False</TypeScriptSourceMap>
<TypeScriptMapRoot />
<TypeScriptSourceRoot />
<TypeScriptNoImplicitAny>False</TypeScriptNoImplicitAny>
</PropertyGroup>
Even though I added the TypeScriptToolsVersion information to the iceproj file, the error persists. Any assistance would be greatly appreciated :)