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

Scaffolding fails System.IO.FileTooLongException #377

Closed
pholly opened this issue Jan 12, 2017 · 1 comment
Closed

Scaffolding fails System.IO.FileTooLongException #377

pholly opened this issue Jan 12, 2017 · 1 comment

Comments

@pholly
Copy link

pholly commented Jan 12, 2017

Visual Studio 2015
ASP.NET core 1.1
.NET framework 4.6.2

If there are nested folders in your project that exceed max file/path length scaffolding will fail on the Build step. I used Visual Studio to try to scaffold a Entity Framework Controller. I had a node_modules folder that had folders nested way too deep.

Verified that when I deleted the node_modules folder I was able to add a EF controller.

Excluding node_modules from my project.json didn't change anything.

I now realize I can call dotnet aspnet-codegenerator with a --no-build flag. I didn't try it but because I get the error in a build step I'm pretty sure that would solve my problem.

@mlorbetske
Copy link
Contributor

Thanks for the heads up, passing --no-build in this situation (after having otherwise built your application) is the appropriate course of action

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants