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

Haiku application generated form the workload template fails on loading BApplication #18

Closed
nexus6-haiku opened this issue Jan 6, 2024 · 3 comments

Comments

@nexus6-haiku
Copy link

dotnet build succeeds with no warnings or errors but running the application executable or via dotnet run, return the following error:

Unhandled exception. System.TypeLoadException: Could not load type 'Haiku.App.BApplication' from assembly 'haiku, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null'.
Abort

haiku.zip

Please find attached the project generated out of the template.

@trungnt2910
Copy link
Owner

Can you please name the project something other than haiku (case-insensitive)?

I can see in the zip file, there are two different .dlls, a large Haiku.dll (which is what I named in my workload), and a smaller haiku.dll (which is probably what you have recently built). I am not sure; I don't have my development machine right now and can't access a .NET decompiler.

What is happening might be that .NET .dll resolution is case-insensitive to match with Windows platform conventions. Whatever strategy the runtime is using might have found haiku.dll before Haiku.dll, and tried resolving BApplication from there instead.

@nexus6-haiku
Copy link
Author

nexus6-haiku commented Jan 6, 2024

Good spot! I've renamed it to HaikuApp and it started. I've found some relative old issues around 2020 discussing case sensitivity on file systems like APFS, I'm wondering if that has been solved and the sdk/runtime can be configured for a case-sensitive file system.

@trungnt2910
Copy link
Owner

Closing for now, name clashes with system binaries is undesirable regardless of the platform, and on Haiku Haiku.* should be reserved.

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