mercredi 11 septembre 2019

How to list all DLLs in my solution and get their version?

I've just started using C# and am currently trying to create a class that will compare the version of all dll files with a version string in my database.

However, I am not sure how to get all dll files that belong to my solution. I've tried the following:

Assembly[] applicationDLLs = AppDomain.CurrentDomain.GetAssemblies();

I found this on a forum somewhere. But I don't know what using statements are required and if this is valid code at all.

Can any of you point me in the right direction?





Aucun commentaire:

Enregistrer un commentaire