---
title: "What is a Strong Name in Microsoft.Net?"  
description: "What is a Strong Name in Microsoft.Net?"  
author: "Rajesh Goswami"  
published: 2010-12-06  
updated: 2020-09-17  
canonical: https://www.mindstick.com/interview/277/what-is-a-strong-name-in-microsoft-dot-net  
category: ".net"  
tags: [".net"]  
reading_time: 2 minutes  

---

# What is a Strong Name in Microsoft.Net?

In .Net a strong name consists of the assembly's identity. The strong name guarantees the integrity of the assembly. Strong Name includes the name of the .net assembly, version number, culture identity, and a public key token. It is generated from an assembly file using the corresponding private key.\
\
**Steps to create strong named assembly:**\
\

- To create a **strong named assembly** you need to have a key pair (public key and a private key) file.

Use **sn -k KeyFile.snk**\

- Open the dot net project to be complied as a strong named assembly. Open AssembyInfo.cs/ AssembyInfo.vb file. Add the following lines to AssemblyInfo file.

*[Assembly: AssemblyVersion("1.0.*")]*\
*[assembly: AssemblyDelaySign(false)]*\
*[assembly: AssemblyKeyFile("..\\..\\KeyFile.snk")]*\

- Compile the application, we have created a **strong named assembly**.

## Answers

### Answer by Rajesh Goswami

In .Net a strong name consists of the assembly's identity. The strong name guarantees the integrity of the assembly. Strong Name includes the name of the .net assembly, version number, culture identity, and a public key token. It is generated from an assembly file using the corresponding private key.\
\
**Steps to create strong named assembly:**\
\

- To create a **strong named assembly** you need to have a key pair (public key and a private key) file.

Use **sn -k KeyFile.snk**\

- Open the dot net project to be complied as a strong named assembly. Open AssembyInfo.cs/ AssembyInfo.vb file. Add the following lines to AssemblyInfo file.

*[Assembly: AssemblyVersion("1.0.*")]*\
*[assembly: AssemblyDelaySign(false)]*\
*[assembly: AssemblyKeyFile("..\\..\\KeyFile.snk")]*\

- Compile the application, we have created a **strong named assembly**.


---

Original Source: https://www.mindstick.com/interview/277/what-is-a-strong-name-in-microsoft-dot-net

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
