Skip to content

Breaking change in 2.X

Magnus Gether Sørensen edited this page Feb 5, 2021 · 1 revision

In version 2.X we added a new dependency to System.ComponentModel.DataAnnotations. This was to use the standard annotations in .NET.

This means each project you generate XrmContext to will need to add a dependency to system.componentmodel.dataannotations.dll

A gif showing how to do it through Visual Studio is shown below