Write a WPF todayProgramYou need to bind a type in the presentationframework class library. Because it is a strongly-named assembly in GAC, the specified Assembly name requires the detailed information of the Assembly (such as the version and Public Key token )). In fact, using some decompilation tools such as reflector or ilspy can smoothly obtain the full name information of the specified assembly. But does the. NET Framework SDK have any built-in tools? Answer: gacutil.exe.
Use the/L parameter of gacutil.exe (the lower-case l represents the list), add the Assembly name to be searched, and gacutil will output the Assembly name information with the corresponding name in GAC.
Example:
Open Visual Studio command prompt.
For example, to query "presentationframework", enter:
Gacutil/L presentationframework
Gacutil outputs the following information:
The Global Assembly Cache contains the following assemblies:
Presentationframework, version = 3.0.0.0, culture = neutral, publickeytoken = 31bf38
56ad364e35, processorarchitecture = msil
Presentationframework, version = 4.0.0.0, culture = neutral, publickeytoken = 31bf38
56ad364e35, processorarchitecture = msil
Number of items = 2
Copy the required assembly information.