We recommend using Visual Studio 2017

In the DefaultSettings, a 'Constraint' could not be applied to the item with Id 'ID.' There is no description in the policy file for an item with that Id. 

This project is governed by development policies defined in a policy file. Each Constraint within the DefaultSettings for the policy file includes the Id of the Element or Category to which it refers. The Id used in this Constraint does not refer to any Element or Category defined in the policy file.

To solve this problem

  1. Close the project.

  2. Open the policy file for this project in a text editor.

  3. Search the policy file for the Id indicated in the error message.

    1. If a different Id should be used, replace the Id.

    2. If a definition is missing for the item that should have that Id, add that item's definition to the policy file.

  4. Save and close the policy file.

  5. Reopen the project.

See Also