-
Notifications
You must be signed in to change notification settings - Fork 10k
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
Publishing failure due to package path name being too long #790
Comments
I'm hitting that exception from a slightly different angle; not in Azure or Visual Studio Online but just from |
I'm trying execute following command line: "%userprofile%.dnx\runtimes\dnx-coreclr-win-x64.1.0.0-beta7\bin\dnu.cmd publish src\myproject --runtime %userprofile%.dnx\runtimes\dnx-coreclr-win-x64.1.0.0-beta7" and getting same exception: System.ArgumentException: The name can be no more than 260 characters in length. If I move source file to directory with short name like "C:\Temp", works as expected. This is beta7. |
To solve that problem in aspnet 4.5 you could change the *.pubxml file adding IntermediateOutputPath (http://stackoverflow.com/questions/19411136/website-publish-failing-due-to-file-path-being-too-long). The same solution doesn't work for aspnet 5 RC1. I'll still look for a solution or workaround to keep using visual studio ide. |
I have just found the solution for aspnet5.
Solution reference: |
I still get this error in asp core 1.0.0, using .net 4.5.2 First publish is fine, but second time I get a bin-folder containing my views in a couple of directories down Release\Views. If I publish yet again I get a new set inside so now the bin-folder structure is \bin\Release\bin\Release\Views. This goes on until VS cant build the project because of the above mentioned error! Except that I get the bug from Microsoft.TypeScript.targets, even though I havent got a single ts-file in my project. |
@pellelauritsen I'm having the exact same problem that you have described. Did you find a workaround for this bug? Asp.net core 1.0.1 .net framework 4.5 (portable-net45+win8) |
@derekpec I just publish to a Temp-directory, and then delete the folder every time before publish. |
@pellelauritsen Thanks for your response. I have found moderate success with that approach and I have to keep my fingers crossed each time! I think this may be a problem with MSBuild, so I filed dotnet/msbuild#2185. |
…master [automated] Merge branch 'release/2.2' => 'master'
I'm trying to publish a dnx cmd application as azure web job by copying the output to the correct location under my web project. This was working in beta4 but after upgrading to beta6 I'm getting following exception with the Visual Studio Online build script.
Sarcasm 'I thought ONLY npm has long path names for modules'
The text was updated successfully, but these errors were encountered: