dotnet / wpf

WPF is a .NET Core UI framework for building Windows desktop applications.
MIT License
7.08k stars 1.17k forks source link

WPF applications with non ascii project names do not work #3330

Closed maxbrister closed 4 years ago

maxbrister commented 4 years ago

Exception has occurred: CLR/System.UriFormatException An exception of type 'System.UriFormatException' occurred in System.Private.Uri.dll but was not handled in user code: 'Invalid URI: The Authority/Host could not be parsed.' at System.Uri.CreateThis(String uri, Boolean dontEscape, UriKind uriKind) at System.Uri..ctor(Uri baseUri, Uri relativeUri) at System.Windows.Application.LoadComponent(Object component, Uri resourceLocator) at Prj_ヺヸヺヰィヰヷゆモ.MainWindow.InitializeComponent() in C:\Users\mabriste\temp\Prj_ヺヸヺヰィヰヷゆモ\MainWindow.xaml:line 1 at Prj_ヺヸヺヰィヰヷゆモ.MainWindow..ctor() in C:\Users\mabriste\temp\Prj_ヺヸヺヰィヰヷゆモ\MainWindow.xaml.cs:line 25

Expected behavior:

Minimal repro:

dotnet new wpf --name "Prj_ヺヸヺヰィヰヷゆモ" cd "Prj_ヺヸヺヰィヰヷゆモ" dotnet run

Observe app does not start. To see exception start in a debugger.

ryalanms commented 4 years ago

Thanks, @maxbrister. This is now fixed.