You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Note how the hyphen in the solution directory name has been changed to the underscore character. Yet this translation did not actually happen on disk: the project directories and project filenames use a hyphen.
The generated ProjectReference items in the project files have a similar bug in using underscore instead of hyphen.
Expected behavior
The solution loads successfully in Visual Studio.
The project files use a hyphen and so do references to those projects in the sln file.
Desktop (please complete the following information):
OS: Windows 11
Version: I don't know how to look up the version of the template. But I installed it in the last couple weeks.
The text was updated successfully, but these errors were encountered:
Describe the bug
dotnet new
generated avalonia solutions are broken when the solution directory contains a hyphen.To Reproduce
This repros even without the
-o
switch if the current directory contains a hyphen.The solution is full of bad relative paths to project files, so all the projects fail to load:
It becomes clear why this is when the created project files are compared to what's in the sln file:
Note how the hyphen in the solution directory name has been changed to the underscore character. Yet this translation did not actually happen on disk: the project directories and project filenames use a hyphen.
The generated ProjectReference items in the project files have a similar bug in using underscore instead of hyphen.
Expected behavior
The solution loads successfully in Visual Studio.
The project files use a hyphen and so do references to those projects in the sln file.
Desktop (please complete the following information):
The text was updated successfully, but these errors were encountered: