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

Issue with "msbuild /t:pack" #1494

Closed
feliwir opened this issue Dec 18, 2016 · 5 comments
Closed

Issue with "msbuild /t:pack" #1494

feliwir opened this issue Dec 18, 2016 · 5 comments
Labels

Comments

@feliwir
Copy link

feliwir commented Dec 18, 2016

Hello everyone,
i am using Visual Studio 2017 with the latest updates (from december), I am trying to create a nuget package following this guide: https://docs.nuget.org/ndocs/guides/create-net-standard-packages-vs2017
The problem is that the command: "msbuild /t:pack /p:Configuration=Release" fails, saying that target "pack" doesn't exist. Shouldn't the target be available? My project file looks like this:
https://gist.github.com/feliwir/ac27a8f1420454d490bc73ad9e257da2

@feliwir
Copy link
Author

feliwir commented Dec 21, 2016

Any updates on this?

@aL3891
Copy link

aL3891 commented Dec 22, 2016

Are you running dotnet msbuild or just msbuild? could be that your system pick up the wrong msbuild from the path

@feliwir
Copy link
Author

feliwir commented Dec 22, 2016

Just msbuild

@aL3891
Copy link

aL3891 commented Dec 23, 2016

Do you get the same error with dotnet msbuild /t:pack (or dotnet pack)
This might be a documentation bug

@jeffkl
Copy link
Contributor

jeffkl commented Dec 26, 2016

The Pack target comes from the new .NET Core SDK. From the command-line, are you building a project or solution? If you're building a solution, this won't work until my PR #1497 is in. If you're building a project, then maybe @nguerrera would know where to start narrowing down a problem?

jeffkl added a commit that referenced this issue Jan 3, 2017
* Generate targets in metaproj

This allows users to access any target when building a solution.  The target may or may not exist but this will create the corresponding targets in the `.metaproj`.

I had to pass along the target names from the build request all the way down to the solution generator via ReadOnlyCollections.

Closes #1275

Might be related to #1494
@AR-May AR-May added the triaged label Feb 21, 2024
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

5 participants