3

I used visual studio 2012 to create project and now i want to build that project to .exe file. what do i must do?

4

5 回答 5

14

If it's a Console application or Winform or WPF application then you will get the executable by just building the application and it will be in your yourApplicationPath/Bin/Debug

EDIT (Based on the comment)

You have to rephrase your question. You need to see that:

Visual Studio setup projects (vdproj) will not ship with future versions of Visual Studio

The Visual Studio setup projects will not ship again – Visual Studio 2010 was the last release with support for it. So, you’ll want to make plans to migrate to something else. Of course, I’d suggest looking into WiX, and there are other options as well. The MSDN page Choosing a Windows Installer Deployment Tool contains a table showing a comparison of VS setup projects, WiX, and InstallShield Limited Edition.

于 2012-12-31T04:57:01.837 回答
5

首先从解决方案配置下拉框中选择“发布”,否则您编译/分发的可执行文件仍将处于调试模式。这不仅会影响性能,还会产生其他负面影响。

接下来转到构建菜单选项卡并选择构建解决方案(或按 F6)。

然后找到包含项目的文件夹并导航到:yourproject\bin\Release\

要完全发布您的程序,请从“构建”选项卡中选择“发布”并按照向导进行操作。将创建一个 Setup.exe。

于 2012-12-31T05:06:04.197 回答
4

The executable is built every time you run the project. You can find the EXE on the bin\debug folder located on your project folder.

..SolutionName\ProjectName\bin\Debug\

but if you mean that you want to create a Setup File or MSI (or installers), please see the article below

于 2012-12-31T04:57:11.693 回答
4

Every time you compile and run your application, it creates an EXE which can be found in the following location:

/path/to/project/bin/debug/myApp.exe

Within the menus of VisualStudio there is also an option toExport your project, which will build it to a specified path, as well, there is an option for creating an installer package if you so desire.

于 2012-12-31T04:57:25.520 回答
2

does it have "Build" under Menu? if not, go to "tools"->"setting", choose "expert", then you should be able to see it now.

于 2012-12-31T04:57:56.523 回答