none
Type universe cannot resolve assembly: System.Runtime RRS feed

  • Question

  • To All,

    I've a wpf project that compile correctly no errors in vs13, but when I open in vs2015 the xaml designer compliants

    Type universe cannot resolve assembly: System.Runtime, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a.

    The project compiles and run correctly, but the designer barf at the xaml files.

    Probably a missing link?

    Thanks


    phil Chin

    • Moved by CoolDadTx Thursday, July 30, 2015 3:26 PM WPF related
    Thursday, July 30, 2015 1:54 PM

Answers

All replies

  • Hi phil chin,

    Based on your description, this issue was more related to the version of target framework. You could
    Right click -> properties -> change the target framework, try it.

    You could refer to this similar thread abount “Type universe cannot resolve assembly: Microsoft.VisualStudio.Data” for details: https://social.msdn.microsoft.com/Forums/en-US/895d5a36-b0d4-4588-9c87-6fccb21a6793/type-universe-cannot-resolve-assembly-microsoftvisualstudiodata?forum=vswpfdesigner

    In addition, you could also create a new project and see its designer whether work well.

    Best Regards,

    Xavier Eoro


    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click HERE to participate the survey.

    Monday, August 3, 2015 2:22 AM
    Moderator
  • I've got this same error whenever I created a new Universal Window Blank App in Visual Studio Community 2015, Update 3:

    Type universe cannot resolve assembly: System.Runtime, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a

    Installing Microsoft.NETCore.UniversalWindowsPlatform from the Packet Manager Console (Tools/NuGet Package Manager) resolved the problem.

     PM> Install-Package Microsoft.NETCore.UniversalWindowsPlatform

    • Proposed as answer by Peter Gloor Saturday, August 20, 2016 1:42 PM
    Saturday, August 20, 2016 1:41 PM
  • I get the same errors when exporting from unity 5.41.  When I try to load it into visual studio is gives the exact same errror
    Tuesday, September 13, 2016 10:17 PM
  • I just got the same error using VS 2015, Win10 Anniversary version, with Xamarin.Forms sample project WorkingWithListViews after updating packages.  Fixed by using NuGet Package Manager as advised by Peter Gloor but this time to remove the Microsoft.NETCore.UniversalWindowsPlatform package from the UWP project, then re-installing it.  Now work fine.
    • Proposed as answer by RetiredBushie Monday, October 3, 2016 12:11 PM
    Monday, October 3, 2016 12:09 PM
  • PM> Install-Package Microsoft.NETCore.UniversalWindowsPlatform worked for me as well. Thanks! Ron
    Thursday, November 10, 2016 9:11 PM
  • Re-installing works perfect.

    Fernando Angelieri

    Wednesday, November 16, 2016 3:39 PM
  • Thanks, this solution helped me as well.
    Tuesday, January 17, 2017 5:41 AM
  • I've got this same error whenever I created a new Universal Window Blank App in Visual Studio Community 2015, Update 3:

    Type universe cannot resolve assembly: System.Runtime, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a

    Installing Microsoft.NETCore.UniversalWindowsPlatform from the Packet Manager Console (Tools/NuGet Package Manager) resolved the problem.

     PM> Install-Package Microsoft.NETCore.UniversalWindowsPlatform

    This error popped up for me and this solution worked for me in Visual Studio 2017 (15.4). Installed the latest version of Microsoft.NETCore.UniversalWindowsPlatform (6.0.0). In addition, I checked to make sure Nuget package manager was set to automatically checking for missing packages. After Rebuild the error disappeared and I could Deploy the app again.

    Friday, October 13, 2017 10:14 AM
  • In my case, I had a local NuGet package source whose path no longer existed. Removed the package source and rebuilt solution.
    Friday, October 13, 2017 6:45 PM