-
Notifications
You must be signed in to change notification settings - Fork 12.8k
Typescript Tools 1.8.6 breaks publish to File System in VS2015 #7741
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
This is a duplicate of #7322 and caused by the same underling issue described in #7247. the problem is that the build targets that pass the expected outputs to publishing pipeline does not read the tsconfig.json contents, it only reads the contents in the project file XML configuration, and this it thinks the output fro |
Thanks, feel free to close this issue. As a workaround I've included my output folder and output javascript files in the project, then I can do a normal build (using tsconfig.json file for the typescript settings) and then to publish I add the following entry to the first PropertyGroup in the csproj file:
A bit ugly and manual, but at least it works... I'd be interested if there are any easier workarounds though. |
sorry about that. hopefully we have a fix in a nightly nuget package soon. |
Well it's closed an fixed, but I still spent a few hours debugging it. It can be found here: https://github.com/Microsoft/TypeScript/releases Direct download link: https://www.microsoft.com/en-us/download/details.aspx?id=48593 |
Summary
Apologies if this is not the right place to log this, but I seem to have the exact same issue as described here:
#5894
but with VS2015 and the latest release of Typescript tools (1.8.6)
I've attached a sample project illustrating the issue. Essentially it's an empty web application with a single app.ts typescript file in a src folder, and a tsconfig.json file redirecting the output to a folder wwwroot.
TypeScript Version:
1.7.5 (according to tsc -v from commandline - not really sure if Visual studio uses the same?)
Typescript tools for Visual Studio: 1.8.6.0
Code
TSTest.zip
Expected behavior:
I can publish the project using File System publish method
Actual behavior:
The publish fails with the error message:
Copying file src\app.js to obj\Release\Package\PackageTmp\src\app.js failed. Could not find file 'src\app.js'.
The text was updated successfully, but these errors were encountered: