简体   繁体   中英

C# Visual Studio 2008, include DLL to exe?

I worked on a Little Project the last days annnd now I want to release it.

The "Problem" however is that I need the " System.Windows.Forms.DataVisualization.dll " and " System.Windows.Forms.DataVisualization.Design.dll " in the Folder where the .exe is located.

I figured I need these two, because I am using VS2008 and I added the ADDON DataVisualization (for Charting purpose only).

Is there any way to include These 2 DLLs in the exe when compiling so that I can handle out the .exe only?

Thanks for your time and effort!

You can edit reference properties for these assemblies and set "Copy local" attribute to true. Though, I am not sure if they are redistributable in that manner.

A better manner would be to express that dependency in some sort of setup or installer program which installs it before your program runs. Or at least mention this dependency in release notes so your users can be pointed to downloading and installing them.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM