What is a Strong Name in Microsoft.Net?
In Microsoft.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.
Can such questions be also asked in interviews i never thought about that.It would be good if you can share more questions that you expect to be asked in any interview about .NET ,actually i am preparing for the same
ReplyDeletethanks
ReplyDeleteVery shortly this web page will be famous among all blogging
ReplyDeletepeople, due to it's fastidious content
Also visit my blog post diets that work fast for women
really nice
ReplyDeleteyou can try this out Source Web Site replica gucci bags navigate to these guys Loewe Dolabuy
ReplyDeletei was reading this gucci replica Home Page this contact form find more https://www.dolabuy.co
ReplyDeletek1t23k5f36 t1p01y7m61 l7n53d2b35 g4p90y2o32 d0y80u0t54 o9v17z8e26
ReplyDelete