arpit
How we convert private assembly into public assembly?
By arpit in C# on May 28 2012
  • Mallikarjuna Reddy
    Aug, 2015 11

    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

    • 0
  • Mallikarjuna Reddy
    Aug, 2015 11

    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

    • 0
  • Mihir
    Jul, 2012 17

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

    • 0


Most Popular Job Functions


MOST LIKED QUESTIONS