Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Cannot find sn.exe to sign Assembly

Tags:

c#

msbuild

sn.exe

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 ?

like image 297
programmernovice Avatar asked Oct 08 '09 06:10

programmernovice


People also ask

Where to find sn exe?

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.

Where can I find Ildasm exe?

It will find ildasm.exe in i.e. c:\Program Files (x86)\Microsoft SDKs\Windows\v8. 0A\bin\NETFX 4.0 Tools\ .

What is the use of SN exe?

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 do I sign assemblies in Visual Studio?

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.


2 Answers

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.

like image 55
Cam Soper Avatar answered Sep 25 '22 12:09

Cam Soper


  • open command prompt
  • type cd \
  • type 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.

like image 41
Icarus Avatar answered Sep 23 '22 12:09

Icarus