How do I find the assembly version of a DLL?

How do I find the assembly version of a DLL?

4 Answers

  1. If you reference the dll in Visual Studio right click it (in ProjectName/References folder) and select “Properties” you have “Version” and “Runtime Version” there.
  2. In File Explorer when you right click the dll file and select properties there is a “File Version” and “Product Version” there.

How do I find the PublicKeyToken of an assembly?

The public key token is a unique 16-character key that is given to the assembly when it is built and signed in Microsoft Visual Studio. To determine the public token key, you can run the Strong Name tool (sn.exe) on the assembly. The sn.exe is available with the Microsoft . NET Framework SDK.

What is PublicKeyToken in app config?

The public key token is a 64-bit hash of the public key which corresponds to the private key used to sign the assembly. It’s used to make an assembly name unique, so two strongly named assemblies can have the same filename, but . NET will treat them as different assemblies.

How is PublicKeyToken generated?

The sn.exe can generate the Public Key Token only from the Public Key file. Hence you have to first generate a Key Pair and then extract the Public Key. This Public Key is then passed to the sn.exe. Here are the steps for generation of Public Key and verification of its Token using sn.exe.

How do I find DLL information?

To view these extended properties, right click on an EXE or DLL file in Windows File Explorer, and select Properties from the context menu. The additional tab added by ExeProperties is called Exe/Dll Info. Select this tab to view the extended properties.

What is assembly version?

AssemblyInformationalVersion. The Product version of the assembly. This is the version you would use when talking to customers or for display on your website. This version can be a string, like ‘1.0 Release Candidate’. The AssemblyInformationalVersion is optional.

How do I find the PublicKeyToken for a particular DLL?

Find public key token value of an assembly file

  1. Open Visual Studio Command Prompt (Start > Visual Studio > Visual Studio Tools > Developer Command Prompt)
  2. Run the command below. It will display both public key token and public key. Make sure to replace C:\Temp\Oracle. DataAccess. dll with the full path of your DLL file.

How do I get PublicKeyToken of assembly in Visual Studio 2017?

Visual Studio Add-in to get an assembly PublicKeyToken

  1. In Visual Studio, select External Tools from the Tools menu.
  2. In the External Tools dialog, click Add and enter Get Assembly Public Key for the Title.
  3. Fill the Command textbox by browsing to sn.exe.

How do I change PublicKeyToken?

3 Answers

  1. Run ildasm.exe /out=first.il first.dll (or first.exe )
  2. Edit first.il and find the .assembly extern block for the reference to second.dll.
  3. Change the public key token in that block.
  4. Run ilasm.exe first.il to produce first.dll (or first.exe )

What is PublicKeyToken null?

PublicKeyToken = null tells you that the CLR is looking for the unsigned assembly. Since you signed them, that’s not going to work well and this kaboom is expected. You will have to rebuild the program so it uses the updated signed assembly and embeds the non-null PublicKeyToken into the manifest.

Why is PublicKeyToken null?

4 Answers. PublicKeyToken = null tells you that the CLR is looking for the unsigned assembly. Since you signed them, that’s not going to work well and this kaboom is expected. You will have to rebuild the program so it uses the updated signed assembly and embeds the non-null PublicKeyToken into the manifest.

How do you know a DLL is 32 bit or 64 bit?

Solution

  1. Launch depends.exe, go to File, click Open… and open the desired DLL file.
  2. In the Module section find the Module with the name of the DLL that you opened.
  3. The CPU column tells if the file was compiled for 32 bits or 64 bits.

How to determine the public key token of the windows?

To determine the public key token Locate the sn.exe file. The location will depend on your operating system and the installed Microsoft .NET Framework SDK. At the command prompt, change to the directory that contains the sn.exe utility. Type the following command.

Where do I find the PublicKeyToken for a particular project?

I use Windows Explorer, navigate to C:\\Windows\\assembly , find the one I need. From the Properties you can copy the PublicKeyToken. This doesn’t rely on Visual Studio or any other utilities being installed.

How to get public key in Visual Studio?

Answer is very simple use the.NET Framework tools sn.exe. So open the Visual Studio 2008 Command Prompt and then point to the dll’s folder you want to get the public key, Use the following command,

Where do I find the reference tag for a DLL?

If you have the DLL added to your project, you can open the csproj file and see the Reference tag. sn -T in Visual Studio command line. If an assembly is installed in the global assembly cache, it’s easier to go to C:\\Windows\\assembly and find it in the list of GAC assemblies.