-
Notifications
You must be signed in to change notification settings - Fork 258
[0] NuGet Package Task & Targets #2995
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
Comments
Couple remarks: Once you start dealing with project to project references, you will inevitably depend on As a workaround, user could use uniform Configuration|Platform settings for all projects. But I don't think this would work in every situation. Further more, consider this ;)
|
IsTool: |
Why is the summary nuspec value no longer supported in the csproj file? The summary is used as the short description for the NuGet package in the UI and is used by several NuGet packages (e.g. Automapper, Bootstrap, NUnit). For many NuGet packages the description is too long to be displayed in the list of packages so a summary is specified. |
Why is Owners not available to be specified in the csproj file? |
For the content files the spec says you have to specify a package path otherwise all files will be in the root of the NuGet package.
How is this PackagePath determined/specified? Is it based on the directory the Content file is added to in the project or do you have to specify it separately? Just wondering if instead of a separate PackagePath property the folder structure of the project is used instead. So for a file inside the project:
For a file outside of the project:
Where the Link or Include determines the location of the file in the NuGet package. The PackagePath could be used to override the location or specify that the file is used in multiple NuGet package locations. |
Btw, what kind of packages could we possibly expect to be supported by this feature?
|
Regarding Output Assemblies, the targets should rely on |
@rrelyea I'm going to track the implementation of this at #3477, since it's just one part of the whole NuGetizer feature. We added the Area:NuGetizer to easily filter. I'm also going to give the new Project stuff a short for this. @kovalikp how about this (which I'm implementing as part of NuGetizer):
By passing that property, all projects will automatically add a target after build that will build the package for all projects that are configured to create packages ( Maybe it should be @mrward I think the N/A mostly refers to stuff that doesn't have another (existing or new) mapping in MSBuild already in use for other purposes (like Copyright used for AssemblyInfo.cs generation). I don't read that as meaning it won't be available via an MSBuild property. |
I can only second using Regarding the target or property switch to enable packaging, I would suggest following:
Further-more, Edit: I just had a look at |
@rohit21agrawal we have support for Pack now in NuGetizer at https://github.com/NuGet/NuGet.Build.Packaging. |
Adding to what @kovalikp said, I think having a special Instead of treating tools specially in this way, we should have another property When nuget.exe calls into the pack target, |
I have a question about mapping from NuSpec attributes to MSBuild properties. This issue is mentioned at https://github.com/NuGet/Home/wiki/Adding-nuget-pack-as-a-msbuild-target#feedback. I spent a few hours looking for the answer and couldn't find a better place to ask this. Does the NuSpec I was able to do this with a .nuspec file per https://docs.microsoft.com/en-us/nuget/reference/nuspec#explicit-assembly-references, but I'm trying to move everything to .csproj and this is the only missing piece. |
There is a type in the property IncludeBuildOuput - a missing t |
Following on, since this need hasn't gone away: |
As part of the move from Project.Json/xproj to csproj, we need to enable msbuild to be able to generate .nupkgs as part of its build output, in an integrated way.
The text was updated successfully, but these errors were encountered: