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: support fallback framework groups #514

Merged
merged 1 commit into from
Aug 4, 2014

Conversation

cdrnet
Copy link
Member

@cdrnet cdrnet commented Aug 4, 2014

Since NuGet 2.0, dependencies and references can be specified by target
framework, where only the entries from the matching group are considered.
NuGet also allows defining a fallback group where the targetFramework is
missing, which is used if none of the other groups match.

Previously FAKE did emit the empty targetFramework attribute, which causes
NuGet to complain. This change skips the attribute if its value is null
or empty, in compliance with the nuget specs.

Since NuGet 2.0, dependencies and references can be specified by target
framework, where only the entries from the matching group are considered.
NuGet also allows defining a fallback group where the targetFramework is
missing, which is used if none of the other groups match.

Previously FAKE did emit the empty targetFramework attribute, which causes
NuGet to complain. This change skipts the attribute if its value is null
or empty, in compliance with the nuget specs.
@forki
Copy link
Member

forki commented Aug 4, 2014

Is it backwards compatible?
On Aug 4, 2014 4:17 PM, "Christoph Ruegg" [email protected] wrote:

Since NuGet 2.0, dependencies and references can be specified by target
framework, where only the entries from the matching group are considered.
NuGet also allows defining a fallback group where the targetFramework is
missing, which is used if none of the other groups match.

Previously FAKE did emit the empty targetFramework attribute, which causes
NuGet to complain. This change skipts the attribute if its value is null

or empty, in compliance with the nuget specs.

You can merge this Pull Request by running

git pull https://github.com/cdrnet/FAKE nuget-fallbackFrameworkGroup

Or view, comment on, or merge it at:

#514
Commit Summary

  • NuGet: support fallback framework groups

File Changes

Patch Links:


Reply to this email directly or view it on GitHub
#514.

@cdrnet
Copy link
Member Author

cdrnet commented Aug 4, 2014

It only affects a case which previously caused an error when calling into nuget.exe:

Framework name is missing.
Parametername: frameworkName
Running build failed.

So yes - unless someone was relying on that error (very unlikely)

forki added a commit that referenced this pull request Aug 4, 2014
NuGet: support fallback framework groups
@forki forki merged commit 715dbfa into fsprojects:master Aug 4, 2014
@forki
Copy link
Member

forki commented Aug 4, 2014

👍

@cdrnet
Copy link
Member Author

cdrnet commented Aug 4, 2014

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants