-
Notifications
You must be signed in to change notification settings - Fork 47
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[BUG] Exception in SVGImage.ResolveUri() when application is published as Single File #105
Labels
Comments
I'm currently not actively using or working on this library, so you need to look for the issue yourself or hope someone fixes it. I've you look after it and create a pull req, I'll look to merge. |
Thanks for letting know. |
yes |
Ahrkylien
added a commit
to Ahrkylien/SVGImage
that referenced
this issue
Mar 26, 2025
issues dotnetprojects#104 and dotnetprojects#105
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the bug
When I build my application with
<PublishSingleFile>true</PublishSingleFile>
I get this exception:To Reproduce
Simply do this where icon.svg is a Resource:
with:
Expected behavior
I expect it not to throw an exception :)
Additional context
I expect Assembly.GetExecutingAssembly().Location to be null:
https://github.com/dotnetprojects/SVGImage/blob/master/Source/SVGImage/SVG/SVGImage.cs#L678C76-L678C84
AppContext.BaseDirectory AppDomain.CurrentDomain.BaseDirectory would make more sense anyway.
keep backwards compatibility in mind:
https://ithy.com/article/app-directory-comparison-7smher8b
The text was updated successfully, but these errors were encountered: