It's hard to explain, so start by improving your diagnosis. Tools + Options, projects and solutions, build and launch settings. Change the "Output Size of the MSBuild Project Assembly" to "Normal." On the same property page, make sure that βOn When projects are out of dateβ is set to Always Build. Look in the Output window when you press F5 or Build + Build, the _CopyOutOfDateSourceItemsToOutputDirectory task is a copy of the file.
One possible pitfall when using Project + Add Existing Item: IDE makes a copy of the file you select. You may have changed the source file instead of a copy in the project directory. You fix this by clicking the arrow on the "Add" button in the dialog box and selecting "Add as link."
source share