I'm trying to get continuous integration to work for my solution using Team Services. My solution builds locally with no issues. The build process fails on Nuget Install:
Error: D:\a\_tasks\NuGetInstaller_333b11bd-d341-40d9-afcf-b32d5ce6f23b\0.2.29\node_modules\nuget-task-common\NuGet\3.5.0\NuGet.exe failed with return code: 1
Packages failed to install
Path to solution or packages.config is set to the SLN FILE NAME (boilerplate.sln) Installation type is set to INSTALL
I do not want to set the path to the package.config because I have multiple projects in this solution.
If I set the install type to RESTORE, the Nuget Restore Task passes, but the build solution fails with a bunch of warnings and errors:
Warnings: (one of many but all similar)
C:\Program Files (x86)\MSBuild\14.0\bin\amd64\Microsoft.Common.CurrentVersion.targets(1820,5): Warning MSB3245: Could not resolve this reference. Could not locate the assembly "EntityFramework, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089, processorArchitecture=MSIL". Check to make sure the assembly exists on disk. If this reference is required by your code, you may get compilation errors.
Errors: (one of many but all similar)
src\DB\BoilerPlate.Data.Context\BoilerPlateContext.cs(3,23): Error CS0234: The type or namespace name 'Entity' does not exist in the namespace 'System.Data' (are you missing an assembly reference?)
I simply do not understand something about how this process works, please help I'm new to this.
My folder structure looks like this:
BoilerPlate.sln
packages
src
src\db
src\DB\BoilerPlate.Data.Context\
src\DB\BoilerPlate.Data.Context\package.config
src\DB\BoilerPlate.Data.Entities\
<reference
element in the project file to see if it has a hintpath that points to the packages directory? – jessehouwing