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

Pack support for csproj + project.json #1689

Closed
mteper opened this issue Nov 5, 2015 · 7 comments
Closed

Pack support for csproj + project.json #1689

mteper opened this issue Nov 5, 2015 · 7 comments
Assignees
Labels
Milestone

Comments

@mteper
Copy link

mteper commented Nov 5, 2015

I am having no luck building a NuGet package for IntacctClient (see https://github.com/el-loco/IntacctClient)

Here's build output:

nuget pack "C:\projects\intacctclient\IntacctClient.csproj" -Properties "Configuration=Release;Platform=AnyCPU" -OutputDirectory "C:\Users\appveyor\AppData\Local\Temp\1\v0q0xxfwxi"
MSBuild auto-detection: using msbuild version '14.0' from 'C:\Program Files (x86)\MSBuild\14.0\bin'.
Attempting to build package from 'IntacctClient.csproj'.
Packing files from 'C:\projects\intacctclient\bin\Release'.
WARNING: Unable to extract metadata from 'IntacctClient.dll'.
Using 'IntacctClient.nuspec' for metadata.
Value cannot be null or an empty string.
Parameter name: profileValue
Command exited with code 1
@mteper
Copy link
Author

mteper commented Nov 5, 2015

This appears similar to #1267.

@emgarten
Copy link
Member

emgarten commented Nov 5, 2015

It is the same as 1267, nuget.exe pack does not support project.json projects. You will need to pack using a nuspec.

@mteper
Copy link
Author

mteper commented Nov 6, 2015

OK, that worked. Is there an issue I can follow for adding support for building from .csproj?

@yishaigalatzer
Copy link

This will be the feature tracking it (renaming)

@yishaigalatzer yishaigalatzer changed the title Unable to create nupkg, error for parameter name: profileValue. Support nuget package proj.csproj - When the project is using project.json Dec 11, 2015
@yishaigalatzer yishaigalatzer added this to the 3.4 milestone Dec 11, 2015
@yishaigalatzer yishaigalatzer added the Priority:2 Issues for the current backlog. label Dec 11, 2015
MagnusMogens added a commit to MagnusMogens/Jolt.NET that referenced this issue Dec 20, 2015
@gregjhogan
Copy link

When I have project.json and MyProject.nuspec, I expected the dependencies to be picked up out of the project.json file. That does not seem to be the case.

I am running
nuget pack MyProject.csproj -Properties Configuration=release -IncludeReferencedProjects

Example with no <dependencies></dependencies> specified

<?xml version="1.0" encoding="utf-8"?>
<package xmlns="http://schemas.microsoft.com/packaging/2012/06/nuspec.xsd">
  <metadata>
    <id>$id$</id>
    <version>$version$</version>
    <authors>$author$</authors>
    <owners>$author$</owners>
    <requireLicenseAcceptance>false</requireLicenseAcceptance>
    <description>$description$</description>
    <releaseNotes>$releaseNotes$</releaseNotes>
  </metadata>
</package>

Before I had a project.json this magically picked up all my nuget package dependencies (I guess out of packages.config)

@emgarten
Copy link
Member

@gregjhogan project.json is not being used at all by pack today. Project.json can contain all of the same metadata as the nuspec file so there may not be a nuspec + project.json pack scenario in the future.

@yishaigalatzer yishaigalatzer modified the milestones: 3.4 Beta, 3.4 RTM Feb 25, 2016
@yishaigalatzer yishaigalatzer modified the milestones: 3.4 RTM, 3.4 RTM - Triage Mar 11, 2016
@yishaigalatzer yishaigalatzer changed the title Support nuget package proj.csproj - When the project is using project.json Pack support for csproj + project.json Mar 12, 2016
@yishaigalatzer yishaigalatzer modified the milestones: 3.5 Beta, 3.4 RTM - Triage Mar 12, 2016
@yishaigalatzer yishaigalatzer assigned toddm and unassigned emgarten Mar 12, 2016
@toddm
Copy link

toddm commented Apr 4, 2016

Pushed to Dev

@toddm toddm closed this as completed Apr 4, 2016
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