Pointing strong key file RRS feed

  • Question

  • I don't know the difference of two ways in pointing strong key file.

    We can do by following line in accemblyin.cs.

    [assembly: AssemblyKeyFile("TestKeyPair.snk")]

    And there's another way in Visual Studio > Project > Properties > Signing > Sign the assembly > Browse > select .snk file

    What is the difference between those two?

    Thursday, January 3, 2019 3:44 PM


  • A difference:

    • Using the [AssemblyKeyFile] attribute and #if, you can apply different key files in Debug and Release configurations.
    • Marked as answer by Jeff0803 Thursday, January 3, 2019 4:45 PM
    Thursday, January 3, 2019 4:07 PM