3
Reply

How we convert private assembly into public assembly?

arpit

arpit

12y
3.6k
0
Reply

    Yeah we can do.1. Compile the Private assembly first.For ex:Sample.cs 2. Create the strong name through command prompt as sn -k Test.It will return the Key.3.Mention these lines in your .cs or AssemblyInfo.cs and you must use the namespaceusingSystem.Reflection;[assembly:AssemblyKeyFile("Test")][assembly:AssemblyVersion("1.0.0.0")]4. Compile your Sample.cs file once again.5. Now you want to place this dll in GAC for that you mention these lines in your command prompt:gacutil -i Sample.dll6. Now your private assembly become a shared assembly.7. If you want to check it means go toC:/WINNT/Assembly

    Yeah we can do.1. Compile the Private assembly first.For ex:Sample.cs 2. Create the strong name through command prompt as sn -k Test.It will return the Key.3.Mention these lines in your .cs or AssemblyInfo.cs and you must use the namespaceusingSystem.Reflection;[assembly:AssemblyKeyFile("Test")][assembly:AssemblyVersion("1.0.0.0")]4. Compile your Sample.cs file once again.5. Now you want to place this dll in GAC for that you mention these lines in your command prompt:gacutil -i Sample.dll6. Now your private assembly become a shared assembly.7. If you want to check it means go toC:/WINNT/Assembly

    We can convert private assemble to public by signing the assembly and deploy into the GAC.