Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

TypeScript Compiler was given an empty configurations string

I am getting a Warning in the Error List of Visual Studio when building my TypeScript project.

The TypeScript Compiler was given an empty configurations string, which is unusual and suspicious.
like image 495
NYCdotNet Avatar asked Sep 15 '13 00:09

NYCdotNet


1 Answers

This is caused when this line ...

<Import Project="$(VSToolsPath)\TypeScript\Microsoft.TypeScript.targets" />

... precedes these PropertyGroup sections in the .csproj file.

<PropertyGroup Condition="'$(Configuration)' == 'Debug'">
  <TypeScriptTarget>ES5</TypeScriptTarget>
  <TypeScriptRemoveComments>false</TypeScriptRemoveComments>
  <TypeScriptSourceMap>true</TypeScriptSourceMap>
  <TypeScriptModuleKind>AMD</TypeScriptModuleKind>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)' == 'Release'">
  <TypeScriptTarget>ES5</TypeScriptTarget>
  <TypeScriptRemoveComments>true</TypeScriptRemoveComments>
  <TypeScriptSourceMap>false</TypeScriptSourceMap>
  <TypeScriptModuleKind>AMD</TypeScriptModuleKind>
</PropertyGroup>
like image 158
NYCdotNet Avatar answered Sep 24 '22 06:09

NYCdotNet