The .Net framework 4.5 is installed on the build server, along with the SDk.
Yet I am getting error messages when I build say that System.ComponentModel.DataAnnotations.dll cannot be found. Yet when I look I find it is there.
How do I fix this?
$/SCD4/SCD4.sln - 2 error(s), 7 warning(s), View Log File
Models\Mapping\vw_EmployeesAndJobTitlesMap.cs (24): The type name 'DatabaseGeneratedOption' could not be found. This type has been forwarded to assembly 'System.ComponentModel.DataAnnotations, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'.
Consider adding a reference to that assembly.
Models\Mapping\vw_EmployeesAndJobTitlesMap.cs (47): The type name 'DatabaseGeneratedOption' could not be found. This type has been forwarded to assembly 'System.ComponentModel.DataAnnotations, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'. Consider adding a reference to that assembly.
c:\Windows\Microsoft.NET\Framework\v4.0.30319\Microsoft.Common.targets (847): The reference assemblies for framework ".NETFramework,Version=v4.5" were not found. To resolve this, install the SDK or Targeting Pack for this framework version or retarget your application to a version of the framework for which you have the SDK or Targeting Pack installed. Note that assemblies will be resolved from the Global Assembly Cache (GAC) and will be used in place of reference assemblies. Therefore your assembly may not be correctly targeted for the framework you intend.
c:\Builds\1\SCD4\SCD4 - Live\Sources\MVC4\SCD4\packages\EntityFramework.6.0.2\lib\net45\EntityFramework.dll: Reference to type 'System.ComponentModel.DataAnnotations.Schema.DatabaseGeneratedOption' claims it is defined in 'c:\Windows\Microsoft.NET\assembly\GAC_MSIL\System.ComponentModel.DataAnnotations\v4.0_4.0.0.0__31bf3856ad364e35\System.ComponentModel.DataAnnotations.dll', but it could not be found
c:\Builds\1\SCD4\SCD4 - Live\Sources\MVC4\SCD4\packages\EntityFramework.6.0.2\lib\net45\EntityFramework.dll: Reference to type 'System.ComponentModel.DataAnnotations.Schema.DatabaseGeneratedOption' claims it is defined in 'c:\Windows\Microsoft.NET\assembly\GAC_MSIL\System.ComponentModel.DataAnnotations\v4.0_4.0.0.0__31bf3856ad364e35\System.ComponentModel.DataAnnotations.dll', but it could not be found
c:\Builds\1\SCD4\SCD4 - Live\Sources\MVC4\SCD4\packages\EntityFramework.6.0.2\lib\net45\EntityFramework.dll: Reference to type 'System.ComponentModel.DataAnnotations.Schema.DatabaseGeneratedOption' claims it is defined in 'c:\Windows\Microsoft.NET\assembly\GAC_MSIL\System.ComponentModel.DataAnnotations\v4.0_4.0.0.0__31bf3856ad364e35\System.ComponentModel.DataAnnotations.dll', but it could not be found
c:\Builds\1\SCD4\SCD4 - Live\Sources\MVC4\SCD4\packages\EntityFramework.6.0.2\lib\net45\EntityFramework.dll: Reference to type 'System.ComponentModel.DataAnnotations.Schema.DatabaseGeneratedOption' claims it is defined in 'c:\Windows\Microsoft.NET\assembly\GAC_MSIL\System.ComponentModel.DataAnnotations\v4.0_4.0.0.0__31bf3856ad364e35\System.ComponentModel.DataAnnotations.dll', but it could not be found
c:\Builds\1\SCD4\SCD4 - Live\Sources\MVC4\SCD4\packages\EntityFramework.6.0.2\lib\net45\EntityFramework.dll: Reference to type 'System.ComponentModel.DataAnnotations.Schema.DatabaseGeneratedOption' claims it is defined in 'c:\Windows\Microsoft.NET\assembly\GAC_MSIL\System.ComponentModel.DataAnnotations\v4.0_4.0.0.0__31bf3856ad364e35\System.ComponentModel.DataAnnotations.dll', but it could not be found
$/SCD4/SCD4.sln compiled