-
Notifications
You must be signed in to change notification settings - Fork 370
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
Invalid sourceName transformation in SLN files #1920
Comments
You also see this issue when the working directory has a space or dash. So if I am in "C:\Users\TroyW\Desktop\Sample\With Space" and run:
The new sln file will now have this: |
This is known issue with using not safe
Template engine applies 5 forms to the source name:
The source name you chose in
When
This should be solved by picking up different I'm closing this issue now, please don't hesitate to reach us out in case of further questions. |
If a template contains both a project and a solution file, when running
dotnet new -n "My Project"
with spaces in the name, the solution file has the wrong path to the project file.This issue is similar to #1168, which is closed but there is no satisfying solution found.
Expected
The SLN file should follow the same transformation than the folders/files, since it's where all paths are set.
Repro
NewApp
) and a solution file and a project filedotnet new my-template -n "Project Name"
Project Name
Project_name
Quick repro:
Template.json for reference:
https://github.com/fsprojects/Fabulous/blob/244f61aa1ea7f5be00b2a165f6077a0f068e031a/templates/content/blank/.template.config/template.json#L17
The text was updated successfully, but these errors were encountered: