4

I have the following situation:

  • My library makes use of the IObservable interface, inluded in .NET4
  • In SL5 it makes sense to reference Rx.Main, since it contains definitions of IObservable / IObserver with the extension methods working on exact those interfaces, which is the whole point.

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?

1 Answer 1

2

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.

Sign up to request clarification or add additional context in comments.

1 Comment

Fast-forward to sep/2012, this is now supported: docs.nuget.org/docs/reference/…

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.