project-system: Attempting to change "Copy to output directory" after changing the build action from "C# compiler" -> "Content" fails

  1. Select a C# file
  2. In Properties, change build action from “C# compiler” -> “Content”:
  3. Change “Copy to output directory” -> “Always”

Expected: For this to succeed Actual:


An error has occurred while saving the edited properties listed below:
	Copy to Output Directory
One or more values are invalid. Mismatched PageRule with the wrong ItemType.

About this issue

  • Original URL
  • State: closed
  • Created 7 years ago
  • Reactions: 2
  • Comments: 17 (9 by maintainers)

Most upvoted comments

If you change selection to another file and then back again it should work.