Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do you pack a visual studio c++ project for release?

I'm wondering how to make a release build that includes all necessary dll files into the .exe so the program can be run on a non-development machine without it having to install the microsoft redistributable on the target machine.

Without doing this you get the error message that the application configuration is not correct and to reinstall.

like image 332
DShook Avatar asked Aug 06 '08 09:08

DShook


People also ask

How do I release a Visual Studio project?

In Solution Explorer, right-click the project and choose Properties. In the side pane, choose Build (or Compile in Visual Basic). In the Configuration list at the top, choose Debug or Release.

How do you release a program in C++?

To request a release build, simply select Configuration Manager... from the Build menu and select Release as the active configuration. You can also select Release from the drop-down list of configurations on the standard toolbar. The next time you build your project, it will produce a release build.

Does visual studios support C?

Yes, you very well can learn C using Visual Studio. Visual Studio comes with its own C compiler, which is actually the C++ compiler. Just use the . c file extension to save your source code.


1 Answers

  1. Choose Project -> Properties
  2. Select Configuration -> General
  3. In the box for how you should link MFC, choose to statically link it.
  4. Choose Linker -> Input. Under Additional Dependencies, add any libraries you need your app to statically link in.
like image 155
Michael Pryor Avatar answered Oct 05 '22 12:10

Michael Pryor