Note that there are some explanatory texts on larger screens.

plurals
  1. POUnable to resolve assemblies that use Portable Class Libraries
    primarykey
    data
    text
    <p>I'm having a problem with assembly resolution on an end-user machine and I believe it's related to using Portable Class Libraries....</p> <p>I have a .NET 4.0 application that was originally written in Visual Studio 2010. Recently we upgraded to Visual Studio 2012 and we've created a few projects that are Portable Class Libraries. I don't believe we need these features now, but we're also building a Windows 8 Store application that might benefit from these libraries.</p> <p>When I compile my project, what exactly does the portable library feature do? I expect that it allows me to run it on different frameworks without modification or recompiling.</p> <p>When I look at the library in <strike>reflector</strike> dotPeek it shows the Platform attribute as:</p> <blockquote> <p>.NETPortable,Version=v4.0,Profile=Profile5</p> </blockquote> <p>And the references seem 2.0-ish:</p> <blockquote> <p>mscorlib, Version=2.0.5.0</p> <p>System, Version=2.0.5.0</p> <p>System.Runtime.Serialization, Version=2.0.5.0</p> </blockquote> <p>When I run the application on this end-user's machine, I see an error in the log file:</p> <blockquote> <p>Could not load file or assembly, 'System.Core, Version=2.0.5.0...'</p> </blockquote> <p>Googling System.Core 2.0.5.0 seems to refer to SilverLight -- which appears to be one of the targeted frameworks.</p> <p>This machine does not have Visual Studio installed, but has .NET 4.0 (4.0.3 update)</p> <p>Is there something I should be doing differently to compile, something I should investigate in my dependencies or something I should be looking to install on the end-user machine? What does the 2.0.5.0 refer to?</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload