Skip to content
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

[MSBuild] Compiler log in MSbuild "TypeScriptCompilerOutput.txt" FilePath is longer than 260 so it cannot be writted #14821

Closed
yuit opened this issue Mar 23, 2017 · 3 comments
Assignees
Labels
Bug A bug in TypeScript Fixed A PR has been merged for this issue Visual Studio Integration with Visual Studio

Comments

@yuit
Copy link
Contributor

yuit commented Mar 23, 2017

Our users who use TypeScript Compiler in MSbuild report of receiving a warning:

Exception: 'The specified path, file name, or both are too long. The fully qualified file name must be less than 260 characters, and the directory name must be less than 248 characters.'

We will want to fix in our target file. As this seems to be a known issue in MSBuild (dotnet/msbuild#53) that won't get fixed anytime soon.

One possible solution is to patch the local target file.
Though it doesn't affect local development. This issue block users to be able to create PR as it will pull down its own NuGet which won't allow one to patch the target file

@paulvanbrenk @billti @minestarks @mhegazy

@yuit yuit added Visual Studio Integration with Visual Studio Bug A bug in TypeScript labels Mar 23, 2017
@mhegazy
Copy link
Contributor

mhegazy commented Mar 23, 2017

Seems related to #13564.

One possible solution is to patch the local target file.

what do you mean by this

@yuit
Copy link
Contributor Author

yuit commented Mar 23, 2017

look like the same issue as #13564.....you can set that value manually by

  • in the project file (before the load of typescript.target file) add following line
<CompilerOutputLog>$(MSBuildProjectDirectory)\$(IntermediateOutputPath)Tsc.out</CompilerOutputLog>

@yuit yuit self-assigned this Mar 23, 2017
@yuit
Copy link
Contributor Author

yuit commented Mar 23, 2017

Fix is in the VS repo

Update: we end up just shorten the file name. So this issue can potentially creep up again if the directory name is super long

@yuit yuit closed this as completed Mar 27, 2017
@yuit yuit added the Fixed A PR has been merged for this issue label Mar 27, 2017
@mhegazy mhegazy added this to the TypeScript 2.3 milestone Mar 27, 2017
@microsoft microsoft locked and limited conversation to collaborators Jun 21, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Bug A bug in TypeScript Fixed A PR has been merged for this issue Visual Studio Integration with Visual Studio
Projects
None yet
Development

No branches or pull requests

2 participants