We recommend using Visual Studio 2017

A Constraint could not be applied within 'node' to the item with Id 'ID.' There is no definition in the policy definitions file for an item with that Id. 

This project is governed by development policies defined in a policy file. 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