0
Has anyone ever had this error running build on VSTS ?
I have a project C#
, that runs locally and can publish on the server. I tried to check in the project on VSTS, to automate the build and always the error occurs below...
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\3\s\XXXX.XXXXX\XXX.XXXXX.csproj]
Build goes through Nuget Restore normally, only at build time it gives this error in several files.
Which agent is using to build?
– Augusto Formentão
Already tried Hosted and Hosted 2017, the application was developed in VS2015, already tried to use all possible settings, performing Clean, restoring packages, nothing, I will try to recreate an empty solution and add the files gradually, to see what gives ...
– Herbert Giacomini
How are the dll references in your csproj? Are they relative path? are nuget packages?
– Julio Arruda