Visual Studio 2012不生成.exe [英] Visual Studio 2012 not producing .exe

查看:237
本文介绍了Visual Studio 2012不生成.exe的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我刚刚安装并尝试构建一个简单的Hello世界程序,但我似乎找不到.exe,也没有任何方式,我可以看到程序产生hello世界。附件是我想要建立的文件夹,我相信它应该输出一个.exe文件夹

I just installed and tried to build a simple Hello world program, however I can't seem to find the .exe, nor any way in which I can see the program produce the "hello world". Attached are the screenshots of what I am trying to do to build, and the folder in which I believe it should be outputting an .exe

http://i.imgur.com/HKAmK.png
http://i.imgur.com/WK2Hb .png(它不在子文件夹中)

http://i.imgur.com/HKAmK.png http://i.imgur.com/WK2Hb.png (It isn't in the subfolders either)

推荐答案


  1. CPP文件位于项目中的SourceFiles中。
  1. Make sure, that the CPP file is inside the SourceFiles in your project. If it is not, it will not be built.

检查项目文件的输出目录的项目属性(特别是常规选项卡)。

Check the properties of project (especially the General tab) for the output directory for project files.

建立专案。 Visual Studio通知输出窗口,其中是二进制,例如

Build your project. Visual Studio informs in Output window, where is the binary, eg.




    1>------ Build started: Project: NativeConsoleSketchbook, Configuration: Debug Win32 ------
    1>Build started 2012-12-06 09:39:35.
    1>InitializeBuildStatus:
    1>  Creating "Debug\NativeConsoleSketchbook.unsuccessfulbuild" because "AlwaysCreate" was specified.
    1>ClCompile:
    1>  main.cpp
    1>Link:
    1>  NativeConsoleSketchbook.vcxproj -> D:\Dokumenty\Dev\VS\Sketchbook\Debug\NativeConsoleSketchbook.exe
    1>FinalizeBuildStatus:
    1>  Deleting file "Debug\NativeConsoleSketchbook.unsuccessfulbuild".
    1>  Touching "Debug\NativeConsoleSketchbook.lastbuildstate".
    1>
    1>Build succeeded.
    1>
    1>Time Elapsed 00:00:02.81
    ========== Build: 1 succeeded, 0 failed, 0 up-to-date, 0 skipped ==========

这篇关于Visual Studio 2012不生成.exe的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆