.net.net-assemblystrongname

Check strong name of .net assembly on deployment machine


This is the scene... I have deployed a dll on a remote machine which has the required .NET framework but not Visual Studio and tools. On the same day, I created 3 builds with different strong names for the dll. I need to verify the strong name on the remote machine but I don't have the luxury of getting a copy of that dll. How do I do this without the SDKs on the remote machine?


Solution

  • You can run the following PowerShell command where you should insert the path and name of the assembly:

    powershell.exe -command "[System.Reflection.AssemblyName]::GetAssemblyName('mydll.dll').FullName"