Loading tool from nuget to the root folder of solution when using packageReference

moh.hassan20's Avatar

moh.hassan20

17 Oct, 2018 07:56 AM

I use the new vs2017 SDK project style with PackageReference to nuget packages, so there isn't a package folder.
I want to download LibZ.Tool tool in the folder in the root of the solution $(solutionDir)tools
I didn't reference LibZ.Tool in the project.
Currently in development, i save LibZ.Tool, but i exclude merging it in git.
I have script merge.cmd that call tools\libz

How to download LibZ.Tool in the the folder before starting build $(solutionDir)tools

  1. Support Staff 1 Posted by Owen McDonnell on 17 Oct, 2018 05:47 PM

    Owen McDonnell's Avatar

    What about downloading and then extracting from here?

  2. 2 Posted by moh.hassan20 on 18 Oct, 2018 06:22 PM

    moh.hassan20's Avatar

    Thanks for reply,
    It can work, but it's preferred of using nuget packages to benefit any new updates and it's downloaded and unzipped in one step.

    I find for `PackageReference`, nuget stores the package in the global‑packages folder which is, for windows, `%userprofile%\.nuget\packages` ,
    I test it in my development env .

    The question:
    Do appveyor store nuget package in this location %userprofile%\.nuget\packages, Or
    in other location, so i can access the tool.?

  3. 3 Posted by moh.hassan20 on 21 Oct, 2018 01:13 AM

    moh.hassan20's Avatar

    I find that the nuget packages are installed by default in the windows folder: %userprofile%\.nuget\packages so i can use the tool from that folder.

  4. Support Staff 4 Posted by Owen McDonnell on 22 Oct, 2018 11:00 PM

    Owen McDonnell's Avatar

    Sorry for the delay. As you discovered, nuget packages can be accessed from that directory.

  5. Owen McDonnell closed this discussion on 22 Oct, 2018 11:00 PM.

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