What's the 'correct' way of registering/installing an Assembly to the GAC?

前端 未结 8 837
独厮守ぢ
独厮守ぢ 2020-12-01 16:23

There seems to be lots of different ways to register assemblies with the GAC, as in, they \'work\'. However, what\'s the \"proper\" way of doing it?

In response to

相关标签:
8条回答
  • 2020-12-01 17:27

    http://blogs.msdn.com/astebner/archive/2006/11/04/why-to-not-use-gacutil-exe-in-an-application-setup.aspx

    It looks like the gacutil should be avoided; it's not a redistributable app. Instead, the 'proper' way of installing them seems to be using MSI, one way being WIX, as posted by CheGueVerra or another script.

    0 讨论(0)
  • 2020-12-01 17:27

    use gacutil.

    Advantages: seems to always work. Disadvantages:

    • must package an additional executable with your installer.
    • As a development utility, seems to have additional side effects (like forcing the install no matter what).
    • Should NOT be included in any redistributable given to customers.
    0 讨论(0)
提交回复
热议问题