Unable to resolve assemblies that use Portable Class Libraries

后端 未结 1 1769
-上瘾入骨i
-上瘾入骨i 2020-12-15 22:19

I\'m having a problem with assembly resolution on an end-user machine and I believe it\'s related to using Portable Class Libraries....

I have a .NET 4.0 application

相关标签:
1条回答
  • 2020-12-15 22:29

    For .NET 4, you need an update (KB2468871) for Portable Class Libraries to work. From the KB Article:

    Feature 5

    Changes to the support portable libraries. These changes include API updates and binder modifications. This update enables the CLR to bind successfully to portable libraries so that a single DLL can run on the .NET Framework 4, on Silverlight, on Xbox, or on the Windows Phone. This update adds public Silverlight APIs to the .NET Framework 4 in the same location. The API signatures will remain consistent across the platform. All modifications are 100 percent compatible and will not break any existing code.

    Also see the "Deploying A .NET Framework App" section of the MSDN Portable Class Library Documentation.

    EDIT: Actually, if the machine has .NET 4.0.3 installed as you mention, that should be sufficient. Can you double-check to make sure that it is actually installed?

    0 讨论(0)
提交回复
热议问题