none
What is the Command Set that describes Creating an Assembly and Installing it into the GAC ? (in C# .NET 3.5) RRS feed

  • Question

  • Hello,

    I am confused with these two answers:

    sn -k MyKey.snk
    csc.exe /Keyfile:MyKey.snk MyFile.cs
    gacutil /i MyKey.dll


    [or]


    sn -k MyKey.snk
    csc.exe /Keyfile:MyKey MyFile.cs
    gacutil /i MyKey.dll

    Any Idea would be very helpful. Thanks.

    BE SURE
    • Edited by Srinath Sadda Thursday, October 9, 2008 3:33 PM
    • Moved by Peter RitchieModerator Thursday, October 9, 2008 3:42 PM Comman language runtime tools question (Moved from Visual C# Language to Common Language Runtime)
    Thursday, October 9, 2008 3:31 PM

Answers

  • You're 2nd set of commands won't work, you have to give the full name of the key file.
    Hans Passant.
    • Marked as answer by Zhi-Xin Ye Tuesday, October 14, 2008 11:52 AM
    Thursday, October 9, 2008 9:43 PM
    Moderator

All replies

  • Confused about what?  You've read the documentation for sn, csc and gacutil and what parts are confusing?
    http://www.peterRitchie.com/blog
    Thursday, October 9, 2008 3:42 PM
    Moderator
  • You're 2nd set of commands won't work, you have to give the full name of the key file.
    Hans Passant.
    • Marked as answer by Zhi-Xin Ye Tuesday, October 14, 2008 11:52 AM
    Thursday, October 9, 2008 9:43 PM
    Moderator