WPF applications with non ascii project names throw an exception when creating MainPage.xaml.
Actual behavior:
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.
Security issues and bugs should be reported privately, learn more via our responsible disclosure guidelines.
Problem description:
WPF applications with non ascii project names throw an exception when creating MainPage.xaml.
Actual behavior:
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.