-
Notifications
You must be signed in to change notification settings - Fork 31
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
Failed to load assembly that contains Nuget Packages #15
Comments
What do you want to use this for? If you want to use a library, you could do something where you wrap C++ lib functions: |
Im using coral to expose C# scripting to users. It would be nice for user to be able to use C# Nuget libraries in their game scripts. |
It is possible but only by manually loading those nuget libraries using AssemblyLoadContext(I didn't find any other way, maybe there is another). The load order is important so you need to load deps first. |
Good to know that at least there is a way! I would need to write a tool that manually reads the solutions nuget packages and figure out the dependencies order. Would be neat if it got included in Coral though |
I also thought about this, but I noticed that you can't relay on nuget packages versions and their assembly versions because they tend to differ (for example Serilog in my case, nuget version is for example 4.0.1 but assembly says 4.0.0). Since I'm using CMake to generate C++ and C# projects in one solution I might to use compilation definitions (you can also specify nuget packages for C# projects in CMake) |
I'm curious what's @peter1745 opinion on this. |
@TheCherno Any updates on this since peter is no longer part of the maintainers? :) |
It would be pretty useful to be able to resolve Nuget packages when loading a DLL through Coral.
The text was updated successfully, but these errors were encountered: