flq
flq

Reputation: 22849

nuget: specify dependency only for specific target framework

I have the following situation:

Is it possible to specify in your Nuget package that only the SL5 version of the package has a dependency on RxMain?

My Nuget
  / net40 -> No dependencies
  / sl5 -> Rx.Main

It almost looks like it isn't, but then, what should I do in this situation?

Upvotes: 4

Views: 1003

Answers (1)

davidfowl
davidfowl

Reputation: 38784

This isn't possible yet (there's a feature request for it http://nuget.codeplex.com/workitem/697). Best thing you can do for now is have 2 packages.

Upvotes: 2

Related Questions