<p dir="auto">I just downloaded VS2015 RTM and opened a project that I've been working on in VS2013.</p>
<p dir="auto">When I save a file, all I see is an error:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Failed to save file 'compiled.js'."><pre class="notranslate"><code class="notranslate">Failed to save file 'compiled.js'.
</code></pre></div>
<p dir="auto">where <code class="notranslate">compiled.js</code> is the <code class="notranslate">--out</code> argument, as indicated in the project setting ("Combine JavaScript output into file").</p>
<p dir="auto">There is no error or warning shown in the Error List window.</p>
<p dir="auto">This seems to be similar to <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="96181777" data-permission-text="Title is private" data-url="https://github.com/microsoft/TypeScript/issues/3939" data-hovercard-type="issue" data-hovercard-url="/microsoft/TypeScript/issues/3939/hovercard" href="https://github.com/microsoft/TypeScript/issues/3939">#3939</a>, except that no redirect option is specified.</p>
<p dir="auto">Hello,</p>
<p dir="auto">I upgraded to Visual Studio 2015 Community Edition RTM today and have found that if a TypeScript project has the "Redirect JavaScript output to directory" option set to true, then compile on save no longer functions.  Deselecting this option on the project causes compile on save to function as expected.</p>
<p dir="auto">The repro is quite simple: create a new project of type "HTML Application with TypeScript".  Open app.ts, make a change and save the file.  Now open app.js, make a change to the app.ts and save - app.js is reloaded with the changes.</p>
<p dir="auto">Now add a folder to the project named "Scripts" and change the project properties such that "Redirect JavaScript output to directory" is checked and the path is "./scripts".  Make a change to app.ts and save the file.  Note that app.js does not show up under the "Scripts" folder.  Build the project and note that app.js now appears under the "Scripts" folder.  Open this file, make a change to app.ts and save the file - /scripts/app.js is not updated.</p>