VS 2017 compiles but not creating executable in release mode.

Camilo Diaz 21 Reputation points
2022-01-31T14:55:30.717+00:00

Hello,
I am building and compiling a C++ application using VS 2017. In debug mode it builds , compile and create an executable. Although in release mode, the build process finish successfully, it does not create an executable. Here is the log:

169922-vs2017-log.txt

The last lines of the log are:

5>Generating Code...
5>C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\IDE\VC\VCTargets\Microsoft.CppBuild.targets(1216,5): warning MSB8012:
TargetPath(F:\cavewriting_ike\build\windows\cwapp\Release\CWApp.exe) does not match the Linker's OutputFile property value (F:\cavewriting_ike\bin\win32\CW.exe). This
may
cause your project to build incorrectly. To correct this, please make sure that $(OutDir), $(TargetName) and $(TargetExt) property values match the value specified in %(Link.OutputFile).
5>C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\IDE\VC\VCTargets\Microsoft.CppBuild.targets(1218,5): warning MSB8012: TargetName(CWApp) does not match the Linker's OutputFile property value (CW). This may cause your project to build incorrectly. To correct this, please make sure that $(OutDir), $(TargetName) and $(TargetExt) property values match the value specified in %(Link.OutputFile).
5>CWApp.vcxproj -> F:\cavewriting_ike\build\windows\cwapp\Release\CWApp.exe
5>Done building project "CWApp.vcxproj".

But if I go to the mentioned path, there is not CWApp.exe file.

Here are the project configuration settings:
KKtYbMZR

Any ideas what I am missing?

Thanks

C++
C++
A high-level, general-purpose programming language, created as an extension of the C programming language, that has object-oriented, generic, and functional features in addition to facilities for low-level memory manipulation.
3,692 questions
0 comments No comments
{count} votes

Accepted answer
  1. Michael Taylor 53,896 Reputation points
    2022-01-31T15:42:26.613+00:00

    So you have changed your $(OutDir) variables in your project file and it is producing a bad path. Please go to your project's properties for the configuration/platform you're building. Then post the contents of the aforementioned variables along with the various $(Target...) variables. It sounds like you might have probably missed a slash and so it isn't building paths properly. Note that there are Path and Dir properties and they must be properly built.


0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.