<p dir="auto">We want to enable the ability to have more than 1 <code class="notranslate">tsconfig.json</code> file in an asp.net v5 project, this will make the compilation of ts files more flexible.</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="/Common.Classes
   - tsconfig.json {out: &quot;../Outputs/Common.Classes.js&quot;}
   - Class1.ts
   - Class2.ts

/Common.Plugins
   - tsconfig.json {out: &quot;../Outputs/Common.Plugins.js&quot;}
   - Class3.ts
   - Class4.ts

/Outputs
   - Common.Classes.js
   - Common.Plugins.js"><pre class="notranslate"><code class="notranslate">/Common.Classes
   - tsconfig.json {out: "../Outputs/Common.Classes.js"}
   - Class1.ts
   - Class2.ts

/Common.Plugins
   - tsconfig.json {out: "../Outputs/Common.Plugins.js"}
   - Class3.ts
   - Class4.ts

/Outputs
   - Common.Classes.js
   - Common.Plugins.js
</code></pre></div>
<p dir="auto">See these comments:<br>
<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="99217592" data-permission-text="Title is private" data-url="https://github.com/microsoft/TypeScript/issues/4161" data-hovercard-type="issue" data-hovercard-url="/microsoft/TypeScript/issues/4161/hovercard?comment_id=129369116&amp;comment_type=issue_comment" href="https://github.com/microsoft/TypeScript/issues/4161#issuecomment-129369116">#4161 (comment)</a><br>
<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="99217592" data-permission-text="Title is private" data-url="https://github.com/microsoft/TypeScript/issues/4161" data-hovercard-type="issue" data-hovercard-url="/microsoft/TypeScript/issues/4161/hovercard?comment_id=137248228&amp;comment_type=issue_comment" href="https://github.com/microsoft/TypeScript/issues/4161#issuecomment-137248228">#4161 (comment)</a></p>
<p dir="auto">Hi,</p>
<p dir="auto"><strong>Version:</strong> VS 2015/TS 1.8</p>
<p dir="auto">This is an obvious bug so may have been reported earlier, but I couldn't find anything.</p>
<p dir="auto">Add a new TS project in Visual Studio and add the following (erroneous) code:</p>
<div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="class Greeter {

    constructor(element: HTMLElement) {
        this.foo = 'foo';
    }
}"><pre class="notranslate"><span class="pl-k">class</span> <span class="pl-smi">Greeter</span> <span class="pl-kos">{</span>

    <span class="pl-en">constructor</span><span class="pl-kos">(</span><span class="pl-s1">element</span>: <span class="pl-smi">HTMLElement</span><span class="pl-kos">)</span> <span class="pl-kos">{</span>
        <span class="pl-smi">this</span><span class="pl-kos">.</span><span class="pl-c1">foo</span> <span class="pl-c1">=</span> <span class="pl-s">'foo'</span><span class="pl-kos">;</span>
    <span class="pl-kos">}</span>
<span class="pl-kos">}</span></pre></div>
<p dir="auto">Compiling this results in the following build output:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="1&gt;------ Rebuild All started: Project: TypeScriptHTMLApp1, Configuration: Debug Any CPU ------
1&gt;C:\TypeScriptHTMLApp1\app.ts(4,14): error TS2339: Build: Property 'foo' does not exist on type 'Greeter'.
1&gt;C:\TypeScriptHTMLApp1\app.ts(4,14): error TS2339: Build: Property 'foo' does not exist on type 'Greeter'.
========== Rebuild All: 0 succeeded, 1 failed, 0 skipped =========="><pre class="notranslate"><code class="notranslate">1&gt;------ Rebuild All started: Project: TypeScriptHTMLApp1, Configuration: Debug Any CPU ------
1&gt;C:\TypeScriptHTMLApp1\app.ts(4,14): error TS2339: Build: Property 'foo' does not exist on type 'Greeter'.
1&gt;C:\TypeScriptHTMLApp1\app.ts(4,14): error TS2339: Build: Property 'foo' does not exist on type 'Greeter'.
========== Rebuild All: 0 succeeded, 1 failed, 0 skipped ==========
</code></pre></div>
<p dir="auto">The error is printed in duplicate. This can be a significant nuisance in a solution with a large number of projects.</p>