ServiceStack NuGet update 4.0.22 to 4.0.31 caused errors on deployment

后端 未结 2 762
心在旅途
心在旅途 2021-01-24 22:23

I\'m hoping not to be to vague here, but I\'ve just done a NuGet update for ServiceStack, updating from version 4.0.22 to 4.0.31, the project compiles fine but once deployed to

2条回答
  •  迷失自我
    2021-01-24 22:41

    A side-effect of ServiceStack converting ServiceStack.Interfaces.dll into a pure PCL dll in v4.0.30 is that projects that reference interfaces with System.Net classes now require an explicit reference to System.Net.

    Install Patch for PCL Support with .NET 4.0

    From similar .NET 4.0 Issue with Google OAuth PCL libraries:

    1. Make sure your .NET framework is patched. Microsoft released patches to .NET 4.0 to allow Portable Class Libraries to properly find the appropriate runtime (info KB2468871). If you are seeing the above exception (or something like it), it means you're missing the latest .NET framework patches.

    2. Install .NET 4.0 full profile

提交回复
热议问题