I looked into C:\Program Files\Microsoft.NET
and I can't see any SN.exe
file.
I have .NET 3.5 runtime installed; isn't that enough ?
If you are developing on Windows Server 2016, you can find the strong name utility in the C:\Program Files (x86)\Microsoft SDKs\Windows\v10. 0A\bin\NETFX 4.6. 1 Tools folder. It is named “sn.exe” so the full path is “C:\Program Files (x86)\Microsoft SDKs\Windows\v10.
It will find ildasm.exe in i.e. c:\Program Files (x86)\Microsoft SDKs\Windows\v8. 0A\bin\NETFX 4.0 Tools\ .
The Strong Name tool (Sn.exe) helps sign assemblies with strong names. Sn.exe provides options for key management, signature generation, and signature verification.
How to sign an assembly in Visual Studio. You sign an application or component by using the Signing tab of the project properties window (right-click the project node in Solution Explorer and select Properties). Select the Signing tab, then select the Sign the assembly check box. Specify a key file.
You need to install the Windows SDK 6.0a, not just the runtime.
If you've installed VS2008, you'll find it's already installed, and sn.exe will be here:
C:\Program Files\Microsoft SDKs\Windows\v6.0A\Bin\sn.exe
Otherwise, if you don't have VS2008 installed, you can download the SDK individually here.
The file sn.exe is not available in the SDK. The current version of the SDK is 6.1, perhaps they removed sn.exe in this release.
cd \
dir /s sn.exe
you will get output something like
Volume in drive C has no label.
Volume Serial Number is XXXX-XXXX.
Directory of C:\Program Files\Microsoft SDKs\Windows\v6.0A\bin
11/07/2007 12:01 PM 95,728 sn.exe 1 File(s) 95,728 bytes
You found the directory :)
if not, there is no sn.exe
in your system. Install SDK then.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With