Open Closed

Restoring nuget package #736


0
birthdaycensus created

I am having problem in restoring nuget package in my app These are the errors I am getting after a build

Error CS0012 The type 'ApiController' is defined in an assembly that is not referenced. You must add a reference to assembly 'System.Web.Http, Version=5.2.3.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'. CoolBreeze.BlueHrm.WebApi C:\Users\Ademu\Documents\Visual Studio 2015\Projects\BlueHrm\CoolBreeze.BlueHrm.WebApi\Api\Controllers\AccountController.cs 22

Looking at the references to the project, I discovered that System.Web.Mvc and several others are not found

Thanks for your help


3 Answer(s)
  • 0
    hikalkan created
    Support Team

    Hi,

    When did you created your project? I tried now and all packages are restored successfully. Please try to restore it from Package Manager Console.

  • 0
    birthdaycensus created

    Just want to post this in case someone else is having thesame issue. The reason why my nuget packeges where not been restored is that .nuget/nuget.exe was missing in my extracted file. What i did to resolve this was to copy it from another project

  • 0
    hikalkan created
    Support Team

    Hi,

    When you create the project, Nuget.exe is included in the Zip file. I just tested it.