Has anyone had this error while running the build in VSTS?
I have a C#
project, which runs locally and can publish to the server. I tried to check in the project in VSTS, to automate the build and the error below always occurs ...
2018-05-02T14:13:58.6494940Z ##[error]XXXX.XXXX\XXXX\Entities\xxxxx.cs(3,45): Error CS0234: **The type or namespace name 'Schema' does not exist in the namespace 'System.ComponentModel.DataAnnotations' (are you missing an assembly reference?)**
2018-05-02T14:13:58.6502791Z XXXX\Entities\xxxx.cs(3,45): **error CS0234: The type or namespace name 'Schema' does not exist in the namespace 'System.ComponentModel.DataAnnotations' (are you missing an assembly reference?)** [D:\a\s\XXXX.XXXXX\XXX.XXXXX.csproj]
The build goes through Nuget restore normally, just at the time of the build it gives this error in several files.