Project-system: VS2017 .NET Standard - Pack option - generate Nuget Packages in a unified directory for all projects in the solution / customize package creation path

Created on 14 Aug 2017  路  6Comments  路  Source: dotnet/project-system

_From @mss37 on August 14, 2017 10:35_

Please read the following information before posting the issue.

Details about Problem

NuGet product used (VS UI | Package Manager Console | dotnet.exe):

NuGet version (Package Manager Console Host Version 4.1.0.2427):

dotnet.exe --version (2.0.0-preview2-006497):

VS version (VS2017 26403.7):

OS version (win10):

Worked before? If so, with which NuGet version: No

Detailed repro steps so we can see the same problem

  1. Create a .NET Standard project (class library)

  2. Configure it to create a Nuget package (from project properties, Package tab).

  3. Build, it will build in (bin/debug), but there is no way to configure it to create the package in a relative path, where that path can be set as a local package repo, to reference from it later.

Other suggested things

Suggest to add this option (to customize the path where Nuget packages are created).

_Copied from original issue: NuGet/Home#5753_

Feature Request Feature-Legacy-Application-Designer Feature-NuGet Help Wanted Triage-Approved

Most helpful comment

_From @mss37 on August 14, 2017 18:16_

I realized that, then the request is to make this available in VS 2017 UI (Package tab in project properties page).
image

All 6 comments

@mss37 you can set the <PackageOutputPath> property in your csproj (which is relative to your project directory) to determine where the package gets output.

For reference , https://docs.microsoft.com/en-us/nuget/schema/msbuild-targets#pack-target

_From @mss37 on August 14, 2017 18:16_

I realized that, then the request is to make this available in VS 2017 UI (Package tab in project properties page).
image

oh, let me move this to the appropriate repository then.
Appreciate the feedback @mss37 ! Keep it coming :)

CC: @mavasani

Tagging @davkean - I have moved to a different feature team now.

Output path's are configuration dependant, but the package properties are configuration-independent, so that page is probably not the correct place to put it. We'd need a design for this.

Was this page helpful?
0 / 5 - 0 ratings