I am writing a C# Windows application program and I’m using an add-on for creating chart in it,but when I run this program on another windows which has .net framework but not that package it does not work and give me exception.
I want to know how can I correct this problem even with setup file?
and if the answer is setup file then how should I do that?
thank you
I am writing a C# Windows application program and I’m using an add-on for
Share
When you distribute your package (whether that’s through a proper installer or just a zip file or whatever), you should be including the DLL as well. Precisely how to include the DLL depends on what tool you’re using to generate the installer.
If, for some reason, you are restricted to distributing a single .exe file, you can use ILMerge to merge an arbitrary number of .NET DLLs into an executable.