-
Notifications
You must be signed in to change notification settings - Fork 395
Closed
Description
For certain dotnet new templates projects references can fail if the root directory has dashes in it.
Replication:
- Create a folder with dashes, example: "Test-Folder"
- cd into folder
- Run
dotnet newwith a template that creates a solution. Example:dotnet new maui-blazor - Open solution and see projects are referenced with underscores but references with dashes.
Using dotnet new maui-blazor inside a Maui-Blazor-Dash folder the following directory structure is created
Maui-Blazor-Dash
Maui-Blazor-Dash
Maui-Blazor-Dash.csproj
Maui-Blazor-Dash.WinUI
Maui-Blazor-Dash.WinUI.csproj
Maui-Blazor-Dash.sln
However Maui-Blazor-Dash.sln contains the following (Notice underscores instead of dashes like the path):
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Maui_Blazor_Dash", "Maui_Blazor_Dash\Maui_Blazor_Dash.csproj", "{C0457748-FBE1-4B5D-8AA4-4537749C6356}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Maui_Blazor_Dash.WinUI", "Maui_Blazor_Dash.WinUI\Maui_Blazor_Dash.WinUI.csproj", "{842C3919-DBFE-4591-983C-9D21575F3CE4}"
EndProject
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels