gavinpugh / vs-android

Integrated development of Android NDK C/C++ software with Microsoft Visual Studio.
Other
119 stars 34 forks source link

Exclude from Build does not actually exclude the file from being built #127

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Right Click a .cpp file in your project
2. Select Properties -> Configuration Properties -> General
3. Set "Excluded from Build": Yes
4. Build Solution

What is the expected output? What do you see instead?
I would expect that the selected file would NOT be included in the build
Instead the file continues to be built and the "Excluded from Build" option 
seems to be getting ignored.

What version of the product are you using? On what operating system?
vs-android 0.963, VS2013, Windows 7

Original issue reported on code.google.com by supp...@netxsolutions.co.uk on 21 Oct 2014 at 10:03

GoogleCodeExporter commented 9 years ago

Original comment by gavin.dj.pugh on 29 Oct 2014 at 9:17

GoogleCodeExporter commented 9 years ago
Microsoft.Cpp.Android.targets clearly checks for "Excluded from Builds":

  <GCCCompile Condition="'%(ClCompile.ExcludedFromBuild)'!='true' ... ">

Furthermore, I cannot reproduce this on Visual Studio 2010 nor 2013.

Original comment by ilya.kon...@gmail.com on 21 Nov 2014 at 7:55

GoogleCodeExporter commented 9 years ago
I have a number of large projects where the Exclude from Build is definitely 
not working as expected. In an attempt to identify the issue I created a small 
test project but this project exclude the files as expected.

I will therefore continue to try and create a minimal project which will 
reproduce the issue for you.

Original comment by supp...@netxsolutions.co.uk on 2 Dec 2014 at 7:15

lowlevelsoul commented 8 years ago

I would add that it's possibly not just source files not being exuded, but that the exclude mechanism seems not to function as expected.

I have source files that are excluded for one platform, but not for Android, and are not built by VS.

KeyC0de commented 7 years ago

I have the same problem. Excluding files suddenly stopped working. You know something that we can do? Have you figured it out? VS2015.