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

Have the FlatRedBall .dll have a way to include/report its file version #1324

Open
vchelaru opened this issue Jan 16, 2024 · 3 comments
Open
Labels

Comments

@vchelaru
Copy link
Owner

Currently if the user grabs a new .dll, there's no way for them to know that there is a mismatch between that .dll and the .glux version. This has caused endless problems with users.

Ideally the .dll would report that it is on an old version, and FRB Editor would compare that to the .glux version. If there is a mismatch, there should be an error in the error window.

@vchelaru vchelaru added the bug label Jan 16, 2024
@vchelaru
Copy link
Owner Author

Consider loading/unloading the assembly when reading the info:

       var alc = new AssemblyLoadContext("MyContext", isCollectible: true);
       var assembly = alc.LoadFromAssemblyPath(@"path\to\your\dll.dll");

       // Use the assembly...

       alc.Unload();

@vchelaru
Copy link
Owner Author

Also look at https://github.com/jbevain/cecil/wiki/HOWTO

@vchelaru
Copy link
Owner Author

To do this, each project type must load its .dll and inspect the syntax version. I've split apart MonoGame 4.7 from MonoGame 6.0 to prepare for this.

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

No branches or pull requests

1 participant