vsts build fails on Microsoft.AspNet.Identity.EntityFramework

174 views Asked by At

Got a git project hosten in VSTS. When i trigger a build in VSTS it fails stating the following:

You must add a reference to assembly 'Microsoft.AspNet.Identity.EntityFramework, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'.

The reference is the nuget package for aspnet identity and the project builds (rebuild solution) just fine in VS2015 on my local pc. There are of course no local changes and the same branche is build.

Can anyone tell me why this happens or point me in a direction on how to solve this.

1

There are 1 answers

0
starian chen-MSFT On BEST ANSWER
  1. Open Package Manager Console view in VS 2015 (View=>Other Window=>Package Manager Console)
  2. Run Update-Package Microsoft.AspNet.Identity.EntityFramework in Package Manager Console
  3. Build project in local
  4. Commit and push changes (the files in package folder could not commit and push to server)
  5. Add NuGet Installer build step (Installation type: Restore) to your build definition (top of other steps) to restore package
  6. Queue build