I need to create a unit test to enumerate the Locations of all the referenced assemblies for a given .net solution. I have been searching and have not been able to find anything that suits the problem.
I took a look at Is there a way to force all referenced assemblies to be loaded into the app domain? and Get the paths of all referenced assemblies
The GetAssemblies() method gives us the assemblies that have been loaded. But I also want the paths of those assemblies that have not been loaded.
Simply speaking, I just want to know the locations of all the assemblies that I see when expand the 'References' of the various projects in Visual Studio.
If I look at the .csproj files then I can see all the references. Could there be any build scripty solution to this? Just wondering.
Ideas?
Thanking in anticipation.