title: Build: '(' expected in *.d.ts files. Cannot compile TypeScript project
body: <p>I'm trying to build my Angular 2 TypeScript asp.net core project in Visual Studio 2015, but what I see is:</p>
  
  <blockquote>
    <p>Severity  Code    Description Project File    Line    Suppression State
    Error TS1005  Build:'('
    expected. MExplore    C:\Users\Piotrek\documents\visual studio
    2015\Projects\MProjects\MExplore\wwwroot\lib\@angular\core\esm\src\linker\query_list.d.ts 36<br>
    Error TS1005  Build:'('
    expected. MExplore    C:\Users\Piotrek\documents\visual studio
    2015\Projects\MProjects\MExplore\wwwroot\lib\@angular\compiler\esm\src\output\output_interpreter.d.ts 7<br>
    Error TS1005  Build:'('
    expected. MExplore    C:\Users\Piotrek\documents\visual studio
    2015\Projects\MProjects\MExplore\wwwroot\lib\@angular\compiler\esm\src\output\output_interpreter.d.ts 8<br>
    Error TS1005  Build:'('
    expected. MExplore    C:\Users\Piotrek\documents\visual studio
    2015\Projects\MProjects\MExplore\wwwroot\lib\@angular\compiler\esm\src\output\output_interpreter.d.ts 9<br>
    Error TS1005  Build:'('
    expected. MExplore    C:\Users\Piotrek\documents\visual studio
    2015\Projects\MProjects\MExplore\wwwroot\lib\@angular\common\esm\src\forms-deprecated\model.d.ts  53<br>
    Error TS1005  Build:'('
    expected. MExplore    C:\Users\Piotrek\documents\visual studio
    2015\Projects\MProjects\MExplore\wwwroot\lib\@angular\common\esm\src\forms-deprecated\model.d.ts  98<br>
    Error TS1005  Build:'('
    expected. MExplore    C:\Users\Piotrek\documents\visual studio
    2015\Projects\MProjects\MExplore\wwwroot\lib\@angular\common\esm\src\forms-deprecated\model.d.ts  52</p>
  </blockquote>
  
  <p>and so on...</p>
  
  <p>So, the basic pattern of what those 3743 errors look like is:</p>
  
  <blockquote>
    <p>Build: '[something]' expected.</p>
  </blockquote>
  
  <p>And files that problem happens always end with <code>*.d.ts</code>.</p>
  
  <p>I thought that it was a problem with typings, but I have proper reference in my bootstraper (<code>main.ts</code> file)</p>
  
  <pre><code>///&lt;reference path="./../../typings/globals/core-js/index.d.ts"/&gt;
  </code></pre>
  
  <p>and those references inside:</p>
  
  <pre><code>/// &lt;reference path="globals/core-js/index.d.ts" /&gt;
  /// &lt;reference path="globals/jasmine/index.d.ts" /&gt;
  /// &lt;reference path="globals/node/index.d.ts" /&gt;
  </code></pre>
  
  <p>I used it many times before and it worked...</p>
  
  <p>I also use gulp ('gulp-typescript') to compile typescript to javascript and copy it to other place. It works well and no errors are shown. So maybe there are no problems with my code itself, but rather I configured something incorrectly in Visual Studio?</p>
  
  <p>What do you think?</p>