Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Visual Studio 2015 warns System.Runtime not found (but VS2013 is fine)

In Visual Studio 2015, I open a project that was created with Visual Studio 2013. Rebuild this project and see the following warning:

The referenced component 'System.Runtime' could not be found.

Looking at the References item in Solution Explorer, click System.Runtime, the Property window shows empty as below:

enter image description here

In Visual Studio 2013, it shows:

enter image description here

And this DLL does exist in the foler: C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework.NETFramework\v4.5\Facades

So Visual Studio 2013 didn't whow warnings when I build the project, but Visual Studio 2015 does.

Is this a bug or I miss something in Visual Studio 2015?

like image 691
Michael Tsai Avatar asked Jul 24 '15 09:07

Michael Tsai


People also ask

Why can't I install Visual C++ redistributable for Visual Studio 2015?

Your PC has not run Windows Update in a long time, so long in fact that you do not have the Windows security updates required to install Visual C++ Redistributable for Visual Studio 2015. Solution:

What are the system requirements to install Visual Studio 2015?

DirectX 9-capable video card (1024 x 768 or higher resolution) DirectX 9-capable video card (1024 x 768 or higher resolution) See the Installing Visual Studio page for detailed information on installing Visual Studio 2015. These versions of Visual Studio works best with Internet Explorer 10 or later.

What version of Visual Studio does Starbound use?

Starbound now uses Visual Studio 2015 for the windows builds, which means you need the Visual C++ 2015 runtime to run Starbound on windows. When you run starbound on steam it should automatically install both the 32 bit and the 64 bit versions of the Visual C++ 2015 runtime.


1 Answers

Include System.Runtime.InteropServices.RuntimeInformation instead of System.Runtime. It worked for me.

like image 148
sbillah Avatar answered Oct 19 '22 12:10

sbillah