Full template fails to run for project names containing '-'
It seems like using the funcui.full template fails when the project name contains a "-" in it. For example, if I run
PS> dotnet new funcui.full -o test-app
PS> cd .\test-app\
PS> dotnet run
It throws a FileNotFoundException: Could not load file or assembly "test_app, Culture=neutral, PublicKeyToken=null". If you run the same commands but use test_app for the project name, it runs as you would expect.
Obviously this is not a big deal, users can just use underscores in project names, but I figured I would bring it to your attention.
Are you sure this has nothing to do with the terminal that was used? It works here (windows ps atm). What os, terminal were you using?
Windows Terminal
Version: 1.11.2921.0
PS E:\Programming\Fsharp> $PSVersionTable.PSVersion
Major Minor Build Revision
----- ----- ----- --------
5 1 19041 1320
PS E:\Programming\Fsharp> dotnet new funcui.full -o test-app
PS E:\Programming\Fsharp> ls
Directory: E:\Programming\Fsharp
Mode LastWriteTime Length Name
---- ------------- ------ ----
....
d----- 12/14/2021 23:18 PM test-app
....
This might be a dead (non)issue, maybe removal needed seems user issue
It fails when you do dotnet run.
It's caused by this line in Program.fs:
this.Styles.Load "avares://test_app/Styles.xaml"
"test_app" doesn't match the generated fsproj filename/resulting assembly name "test-app".
Closing this as it is an old issue and can easily be worked around by changing the name.