Skip to content

Instantly share code, notes, and snippets.

@mstum
Created March 11, 2013 15:42
Show Gist options
  • Save mstum/5135132 to your computer and use it in GitHub Desktop.
Save mstum/5135132 to your computer and use it in GitHub Desktop.
Any way to share the OAuth dependency between 4.0 and 4.5 so that I don't DRY? Using an empty group doesn't work in 4.0, it seems that the single net40 match trumps everything. Not putting it into a group gives an error message saying I can't mix "free" dependencies with groups.
<dependencies>
<group targetFramework="net40">
<dependency id="Microsoft.Bcl.Async" version="1.0.14-rc" />
<dependency id="DotNetOpenAuth.OAuth.ServiceProvider" version="4.2.2.13055" />
</group>
<group targetFramework="net45">
<dependency id="DotNetOpenAuth.OAuth.ServiceProvider" version="4.2.2.13055" />
</group>
</dependencies>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment