WinRt: System.Reactive.PlatformServices.dll not installed with nuget

Вопрос WinRt: System.Reactive.PlatformServices.dll not installed with nuget

  • Saturday, March 02, 2013 11:34 AM
     
     

    If I create a portable class library targeting ".Net Framework 4.5" and ".Net for Windows Store apps", then install platform services via nuget: "Install-Package Rx-PlatformServices" the installation runs ok however System.Reactive.PlatformServices.dll isn't referenced. 

    Nuget is pulling Rx-PlatformServices.2.1.30214.0, within that packages lib these isn't an System.Reactive.PlatformServices.dll

    I'd expect to find a System.Reactive.PlatformServices.dll under Portable-Net45+WinRT45+WP8, I assumed this was a supported framework. 

    Am I missing something?



    • Edited by _keith Saturday, March 02, 2013 1:25 PM
    •  

All Replies

  • Saturday, March 02, 2013 6:08 PM
     
     

    Hi,

    System.Reactive.PlatformServices.dll provides platform specific schedulers and optimizations.  There are different assemblies for each platform.

    By definition, a portable class library project is not platform specific.  It supports 2 or more platforms.

    When you reference your portable class library in a .NET 4.5 app, a Windows Store app or a Windows Phone 8 app, then also add a reference in the executable project to System.Reactive.PlatformServices.dll for the appropriate target platform; e.g., .NET 4.5, Windows Store or WP8, respectively.

    More info: http://blogs.msdn.com/b/rxteam/archive/2012/06/20/reactive-extensions-v2-0-release-candidate-available-now.aspx

    - Dave


    http://davesexton.com/blog

    • Edited by Dave Sexton Saturday, March 02, 2013 6:10 PM Added WP8 in list of examples
    •