VS2017: Missing sign when an item is excuded from the build

C V 46 Reputation points
2022-11-19T09:42:39.723+00:00

Hi all,

In the past you could exclude a file, .cpp, from the build and once you set it so a small icon (a stop sign or something like that) appeared along with the file item under the solution view pane.
Now, the sign doesn't appear anymore, but the setting is retained.

To test the scenario: create a default windows application in c++, click on the a .cpp file inside the solution explorer pane and on the pop up menu click on properties. A properties dialog appears.
Under the General -> Exclude From Build select 'Yes' and click apply/ok. The .cpp will not have any sign that that item is excluded from the build.

VS2019/2022 don't seem to have the same issue.

Of course, VS2017 is fully updated.

Any idea how to fix that?

Thanks

Developer technologies | Visual Studio | Other
0 comments No comments
{count} votes

Accepted answer
  1. Viorel 122.6K Reputation points
    2022-11-19T10:07:34.5+00:00

    Make sure that you exclude it from all of platforms and configurations, which appear in Properties dialog.


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.