-
Notifications
You must be signed in to change notification settings - Fork 6k
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
Fix for the sourceFolder option when using the aspnet5 generator. #3160
Conversation
This should include updates for
Originally, the intention of forcing If I remember correctly, at the time I wrote the generator people were having trouble trying to deviate from the standard. Running your changes locally (and making the modifications to the two files mentioned above), it seems to be the case that changing the source folder is still unsupported:
I reset the sample to the forced
I'd imagine supporting this may make sense if you're only planning on working on the web application, but I don't think the support will be there for the multi-project build support inherent to the template prior to the change. Do you have a use case where changing the source folder name is required, so I can test it out? |
@debben can you please share the use case with us? |
@debben thanks for the PR but we've to close this as there's no update from you. |
Fixes #3137
The issue was the redefinition of the protected string sourceFolder in AspNet5ServerCodegen.java. This hides the previous definition of sourceFolder AbstractCSharpCodegen.java. Moving the initialization of sourceFolder to the constructor of the AspNet5ServerCodegen class seems to resolve the issue for me.