compilationmsbuildvisual-studio-2019visual-c++-6visual-build-professional

"Excluded from build" not working in visual studio


I am using Visual studio 2019 professional. I created one solution in which all of my source files have main function. so whenever I want to run my specific program I exclude all other source files(containing main) from build and building. But recently exclude from build is not working properlyexclude from build-1

in above image you can see "MakeFunction.cpp" is excluded from build but not getting excluded. exclude from build-2

In this image you can see "InlineFunction.cpp" function is excluded in solution explorer window, but included


Solution

  • I am dumb... In properties window I was configuring for Release and building in debug mode.