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
Does the bug reproduce also in WPF for .NET Framework 4.8?: Yes
Problem description:
Application.GetContentStream() will fail if you place the executable in a path that contains "#".
Apparently, the paths after the "#" have disappeared.
Minimal repro:
For example, if you place the executable file and content file in "C:\FooBar\Path#Name\",
you will get the exception FileNotFoundException: Could not find file 'C:\FooBar\test.png'..
varuri=newUri("/test.png",UriKind.Relative);// test.png is content filevarstreamResourceInfo=Application.GetContentStream(uri);// <- Exception!!