C# windows application Event: CLR20r3 on application start

前端 未结 5 769
生来不讨喜
生来不讨喜 2020-12-13 20:04

I created a C# application and installed it on my test box. My app works perfect on my dev box, but when I install in on a different machine it crashes in the Main(). I get

5条回答
  •  执念已碎
    2020-12-13 20:49

    Have been fighting this all morning and now have it solved and why it happened. Posting with the hope it helps others

    I installed the Krypton.Toolkit which added the tools to the Visual studio toolbox automatically. I then added the tools to the designer, which automatically added the dll to the projrect references, however the toolkit was marked as CopyLocal=false

    I built an installer, using all dlls in the release build folder (of course the above dll wasn't there).

    Setting copylocal=true, then rebuilding the installer, everything worked fine.

提交回复
热议问题