NuGet Restore - do the packages get installed into the project?

Jason J's Avatar

Jason J

07 Oct, 2016 04:23 AM

When doing a nuget restore I am finding that the project build is still missing all references. For instance, EntityFramework gets restored in a log message but, upon building, a reference is missing for EntityFramework.

Any ideas?

  1. Support Staff 1 Posted by Feodor Fitsner on 07 Oct, 2016 05:05 AM

    Feodor Fitsner's Avatar

    Hi Jason,

    Check contents of .csproj file to see what hint (reference) paths of missing assemblies.

  2. 2 Posted by Jason J on 10 Oct, 2016 04:22 AM

    Jason J's Avatar

    Well, it seems like everything is pointing the right way. In the csproj file, all the references are to the ..\packages\ directory:
    <Reference Include="EntityFramework">
          <HintPath>..\packages\EntityFramework.6.1.1\lib\net45\EntityFramework.dll</HintPath>
        </Reference>

    I have tried altering the -PackagesDirectory option on the NuGet Restore from "packages" to "../Packages" to "mydir/packages" and nothing seems to work.

    Any other ideas?

  3. 3 Posted by Ilya Finkelshte... on 10 Oct, 2016 04:21 PM

    Ilya Finkelshteyn's Avatar

    Hi Jason,

    Lets check that file is really downloaded and that path relative to the project file is correct. For that please RDP to build worker (https://www.appveyor.com/docs/how-to/rdp-to-build-worker/) at any stage after nuget restore.

    Let us know what you find.

    --ilya.

  4. Ilya Finkelshteyn closed this discussion on 25 Aug, 2018 02:08 AM.

Comments are currently closed for this discussion. You can start a new one.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac