Skip to content
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

Unhandled exception in Markdown.Avalonia.Markdown constructor #166

Open
David-A-Blankenship opened this issue Dec 5, 2024 · 1 comment

Comments

@David-A-Blankenship
Copy link

Avalonia 11.2.1
.NET 8.0.7
Rocky Linux 8.9 64-bit

When opening a message box in Avalonia, I get a FileNotFoundException that is originating from the Markdown constructor.

System.IO.FileNotFoundException: Unable to find the specified file.
at Interop.Sys.GetCwdHelper(Byte* ptr, Int32 bufferSize)
at Interop.Sys.GetCwd()
at Markdown.Avalonia.Markdown..ctor()
at Markdown.Avalonia.MarkdownScrollViewer..ctor()

It looks like it is coming from here:

public Markdown() { _assetPathRoot = Environment.CurrentDirectory;
Unfortunately, I do not have good steps to reproduce this issue. One of my users is having this problem.

@CreateLab
Copy link

Do u see, that's now it separated packages for ms avalonia and for ms with markdown?

https://www.nuget.org/packages/MessageBox.Avalonia.Markdown/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants