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

nuget pack don't works when Net 4.6.1 project has project reference to netstandard project #6202

Closed
Frank591 opened this issue Nov 20, 2017 · 3 comments
Labels
Functionality:Pack Resolution:Duplicate This issue appears to be a Duplicate of another issue

Comments

@Frank591
Copy link

Details about Problem

NuGet product used:NuGet.exe
NuGet version : 4.4.1.4656
VS version (if appropriate): VS 2017 (15.4.4)
OS version: win 10 (10.0 Build 15063)

Detailed repro steps so we can see the same problem

I have 2 libraries:

first library(`First.csproj`) - netstandard1.3
second library(`Second.csproj`) - .Net framework 4.6.1

Second.csproj has project reference to First.csproj.

Compilation into VS2017 working without problems.

After that i want to create nuget package for Second.csproj with dependency to First.csproj, but command

nuget pack Second.csproj -IncludeReferencedProjects

Failed with error

Error occurred when processing file 'E:\blabla\First.csproj': Unable to find 'bin\Release\First\bin\Release'. Make sure the project has been built.
Unable to find 'bin\Release\First\bin\Release'. Make sure the project has been built.

How can i correctly pack my .NET Framework 4.6.1 project with adding dependency to netstandard library?

@Frank591 Frank591 changed the title nuget pack don't works when Net 4.6.1 project has reference to netstandard project nuget pack don't works when Net 4.6.1 project has project reference to netstandard project Nov 20, 2017
@PatoBeltran
Copy link

does the bin/Release directory exists? Have you built the projects with the release definition?

@PatoBeltran
Copy link

@Frank591 this seems to be a known issue dupe of #4054. Please try to use dotnet exe and see if this fixes your problem. Closing this issue in favor of #4054.

@PatoBeltran PatoBeltran added the Resolution:Duplicate This issue appears to be a Duplicate of another issue label Nov 21, 2017
@Frank591
Copy link
Author

dotnet pack don't work for NET 4.6.1 project. It fails with error
E:\blabla\Second.csproj : error MSB4057: The target "pack" does not exist in the project.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Functionality:Pack Resolution:Duplicate This issue appears to be a Duplicate of another issue
Projects
None yet
Development

No branches or pull requests

2 participants