Skip to content
This repository has been archived by the owner on Jan 12, 2024. It is now read-only.

Added the ability to supply baseNuspecFile to the CreatePackage task #150

Open
wants to merge 2 commits into
base: dev
Choose a base branch
from

Conversation

thorgeir
Copy link

@thorgeir thorgeir commented Nov 7, 2017

This is possible in NuProj projects, I've duplicated the functionality.

Copy link
Contributor

@kzu kzu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi there!

Thanks for taking the time to add this feature. Looks really useful!

Could you add some unit tests that exercise this feature.? For example, for the dependency groups, a test would need to make sure a package can be created when both generated and base spec have the same dependency group.

Thanks again!

@@ -140,12 +153,12 @@ select item.GetNuGetTargetFramework()))
definedDependencyGroups.Add(targetFramework.GetFrameworkString(),
new PackageDependencyGroup(targetFramework, Array.Empty<PackageDependency>()));

manifest.Metadata.DependencyGroups = definedDependencyGroups.Values;
manifest.Metadata.DependencyGroups = definedDependencyGroups.Values.Concat(manifest.Metadata.DependencyGroups);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

II think what would be needed is more of a merge here, than a concat, since the concat would end up with duplicate groups? Is that supported in the nuspec?

kzu added a commit to kzu/NuGet.Build.Packaging that referenced this pull request Dec 1, 2017
The package cache lower cases all paths, which no longer matches the
package id as we were previously doing. We need to match in a case-
insensitive way therefore for private assets matching to succeed.

This fixes a broken unit test that was blocking two PRs NuGet#151 and NuGet#150.

Also, fix the nuget package versions at the time of this test authoring,
so we don't accidentally break if newer packages ever change and cause
the expectations to fail.
kzu added a commit that referenced this pull request Dec 1, 2017
The package cache lower cases all paths, which no longer matches the
package id as we were previously doing. We need to match in a case-
insensitive way therefore for private assets matching to succeed.

This fixes a broken unit test that was blocking two PRs #151 and #150.

Also, fix the nuget package versions at the time of this test authoring,
so we don't accidentally break if newer packages ever change and cause
the expectations to fail.
@ghost ghost deleted a comment from dnfclas Dec 6, 2017
@ghost ghost removed the cla-already-signed label Dec 6, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants