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

Template + Name with spaces = Failed load #438

Closed
Happypig375 opened this issue Jun 6, 2019 · 4 comments
Closed

Template + Name with spaces = Failed load #438

Happypig375 opened this issue Jun 6, 2019 · 4 comments
Labels
a/templates The issue is regarding the templates s/waiting for external This issue is currently blocked until an external factor is resolved t/bug Something isn't working as expected

Comments

@Happypig375
Copy link

Happypig375 commented Jun 6, 2019

  1. dotnet new fabulous-app -n "Name with spaces"
  2. Load the solution in Visual Studio
C:\Users\user\source\repos\Name with spaces\Name_with_spaces\Name_with_spaces.fsproj : error  : The project file cannot be found.

C:\Users\user\source\repos\Name with spaces\Name_with_spaces.Android\Name_with_spaces.Android.fsproj : error  : The project file could not be loaded. Could not find a part of the path 'C:\Users\user\source\repos\Name with spaces\Name_with_spaces.Android\Name_with_spaces.Android.fsproj'.  C:\Users\user\source\repos\Name with spaces\Name_with_spaces.Android\Name_with_spaces.Android.fsproj

C:\Users\user\source\repos\Name with spaces\Name_with_spaces.iOS\Name_with_spaces.iOS.fsproj : error  : The project file could not be loaded. Could not find a part of the path 'C:\Users\user\source\repos\Name with spaces\Name_with_spaces.iOS\Name_with_spaces.iOS.fsproj'.  C:\Users\user\source\repos\Name with spaces\Name_with_spaces.iOS\Name_with_spaces.iOS.fsproj
@Happypig375 Happypig375 changed the title Template + Space = Failed load Template + Name with spaces = Failed load Jun 6, 2019
@Happypig375
Copy link
Author

Name with spaces should not be replaced with Name_with_spaces.

@TimLariviere
Copy link
Member

Seems like a bug of the dotnet CLI.
dotnet new automatically converts the project name through some conventions (https://github.com/dotnet/templating/wiki/Naming-and-default-value-forms)
But the conversion inside the SLN file should be the same than the folder/file.

I will open an issue on https://github.com/dotnet/templating

@TimLariviere TimLariviere added t/bug Something isn't working as expected a/templates The issue is regarding the templates labels Jun 7, 2019
@TimLariviere
Copy link
Member

dotnet/templating#1920

@TimLariviere TimLariviere added s/external The issue is related to an external bug / missing feature s/waiting for external This issue is currently blocked until an external factor is resolved proj/xamarinforms and removed t/bug Something isn't working as expected labels Jul 6, 2019
@TimLariviere TimLariviere added t/bug Something isn't working as expected and removed proj/xamarinforms s/external The issue is related to an external bug / missing feature labels Feb 18, 2020
@TimLariviere
Copy link
Member

Closing. Please refer to the dotnet templating issue instead.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
a/templates The issue is regarding the templates s/waiting for external This issue is currently blocked until an external factor is resolved t/bug Something isn't working as expected
Projects
None yet
Development

No branches or pull requests

2 participants