What is the best way to list all the available .NET 2.0 assemblies?
An example of the list is necessary that a MS Visual Studio does this for you in 'Networth Add ...'. In the net tab
I have read that Visual Studio uses its directory configuration and second of GAC and NAT installation is second. . How do I know any idea of where this computer is in a portable way (in another computer that D: Windows installed in drive)?
It should be possible for assembly from the listed information. () this.
Note: It should be programmatically and for example, gacutil should not be used (unless it provides C # API). The purpose of this is to create a Custom Dynamic Script Editor so that you can understand the need to get this information. Firstly, there is a significant difference between reference assemblies and assemblies in GAC to compile the code;
In general, when you install a .NET application, its installer has copied the assemblies it uses in GAC not Usable, you are not able to store it in the folder so that you can not tell the compiler the correct value of its reference / command line argument. Well, you can know, but Microsoft tried to make as hard as possible with the shell add-in.
When you have one. If you install the NET application, then something different that allows you to use your own assemblies program. Like the .NET framework. This will give two copies of each assembly. One goes to the GAC, the second goes to the "famous" place. For the .NET framework, these famous locations are c: \ windows \ microsoft.net \ and c: \ program files \ reference assemblies. The latter folder was started using Net 3.0 and above.
The Add Visual Studio Reference dialog uses a registry key that lists these famous locations. A couple is important but HKLM \ Software \ Microsoft \ .NETFramework \ AssemblyFolders
.
Long story short: You can use that registry key to create the same list that the Add Reference dialog creates. But this is not 100% reliable, you may recall the reference assemblies that some products have been copied elsewhere. To add the context of those people you must use the browse tab in the VS. And find the entire disc to find it yourself.
Comments
Post a Comment