Deploy my DLLs to GAC for use with ClickOnce App

前端 未结 6 894
轻奢々
轻奢々 2021-01-05 16:02

How do I do it? Is there any reason I shouldn\'t?

I have a winform ClickOnce App that has about 13mbs in DLLs that are not mine so I would have no need/ability to u

6条回答
  •  北荒
    北荒 (楼主)
    2021-01-05 16:24

    Clickonce can't install files into the GAC. You'd need to create an MSI or elevated privileges to do it.

    Generally you should avoid the GAC unless it solves a specific problem. Is the install size more of a pain than the ClickOnce download- are users using 50K modems, or a high speed LAN?

    Chris Sells has a great article on why you should avoid the GAC, and there are various other stack overflows posts on it- see here, here and here.

    At the end of the day you need to evaluate the pros and cons and decide what is the best course of action.

提交回复
热议问题