Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dotnet pack output moved after tooling upgrade #7897

Closed
SapientGuardian opened this issue Mar 10, 2017 · 2 comments
Closed

Dotnet pack output moved after tooling upgrade #7897

SapientGuardian opened this issue Mar 10, 2017 · 2 comments
Labels
Milestone

Comments

@SapientGuardian
Copy link

After upgrading from the older project.json based tooling to the VS2017 csproj tooling, the output of dotnet pack has moved to an unexpected location.

Sample repo: https://github.com/SapientGuardian/SapientGuardian.MarathonClient
Build with old tooling: https://ci.appveyor.com/project/SapientGuardian/sapientguardian-marathonclient/build/1.0.0-7
Build with new tooling: https://ci.appveyor.com/project/SapientGuardian/sapientguardian-marathonclient/build/1.0.0-11

Steps to reproduce

Create a nuget package from the root of a repository, with the library source in a subfolder, specifying an output which is a relative path from the root of the repository, not in the source folder.

dotnet pack .\src\SapientGuardian.MarathonClient -o .\artifacts\SapientGuardian.MarathonClient -c Release

Expected behavior

Output path is calculated from the root of the repository, where the dotnet pack command was run.

Producing nuget package "SapientGuardian.MarathonClient.0.1.1" for SapientGuardian.MarathonClient
SapientGuardian.MarathonClient -> C:\Repos\SapientGuardian.MarathonClient\artifacts\SapientGuardian.MarathonClient\SapientGuardian.MarathonClient.0.1.1.nupkg

Actual behavior

Output path is calculated from the project source directory.

Successfully created package 'C:\Repos\SapientGuardian.MarathonClient\src\SapientGuardian.MarathonClient\artifacts\SapientGuardian.MarathonClient\SapientGuardian.MarathonClient.0.1.1.nupkg'.

Environment data

dotnet --info output:

.NET Command Line Tools (1.0.0)

Product Information:
Version: 1.0.0
Commit SHA-1 hash: e53429f

Runtime Environment:
OS Name: Windows
OS Version: 10.0.14393
OS Platform: Windows
RID: win10-x64
Base Path: C:\Program Files\dotnet\sdk\1.0.0

@livarcocc
Copy link
Contributor

Yes, this is a known issue and we are discussing taking this fix for 2.0.

tpluscode referenced this issue in dotnetrdf/dotnetrdf Mar 16, 2017
see dotnet/cli#5996
@livarcocc
Copy link
Contributor

We will track it at https://github.com/dotnet/cli/issues/4765.

@msftgits msftgits transferred this issue from dotnet/cli Jan 31, 2020
@msftgits msftgits added this to the 2.0.0 milestone Jan 31, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants