Visual Studio compiles but the exe isn't there

后端 未结 13 803
终归单人心
终归单人心 2021-01-17 11:22

Source code that compiles fine on other peoples environments won\'t correctly work in my environment. When I do a rebuild the compile occurs but when visual studio goes to

相关标签:
13条回答
  • 2021-01-17 11:49

    I've found this to be random for myself in now VS2016. My work around has been to just create another project and copy the contents from the one with out the .exe to the new one. For some reason the new one normally will have the proper .exe and location needed. While this isn't a complete solution at least it's been working for me for the time being.

    0 讨论(0)
  • 2021-01-17 11:50

    In the solution properties page, check whether the path you are expecting the exe to be is same as the one specified in Linker -> Output file.

    Another obvious mistake could be, check what build configuration you are building. You might be doing a release build and expecting a debug executable file :) I have done this a few times.

    0 讨论(0)
  • 2021-01-17 11:50

    Perhaps you do not have write permission to the output folder? If you are running on Vista/7, is your Visual Studio running as elevated?

    0 讨论(0)
  • 2021-01-17 11:52

    I had exactly the same problem. Just close Visual Studio and reopen it again (basically restart it) and it should work.

    0 讨论(0)
  • 2021-01-17 11:57

    As far as I could tell, you need to "Save All" before building.

    0 讨论(0)
  • 2021-01-17 12:02

    If you create a new "hello world" WM project, does it work?

    If so, you can compare the solution files to check for differences that can cause this.

    0 讨论(0)
提交回复
热议问题