locked
Could not load file or assembly System.Private.corelib. RRS feed

  • Question

  • User392263 posted

    Hi,

    Using visual studio 2019 I went to create a new xamarin forms application. Selected android, iOS and uwp empty project and clicked create.

    Once ready built the project but receive error

    Loading assembly ... System.io.isolatedstorage.dll failed. System.io.filenotfoundexception: could not load file or assembly 'system.private.corelib, version 4.0.0.0, culture=neutral,publickeytoken=7cec85d7bea7798e'

    Updated Microsoft.netcore.universalwindowsplatform to 6.2.9 and xamarin.forms to v4.4.0.991477 without any luck.

    Googled error message, followed advice cleaned project, closed ide, deleted bin and obj folders, restarted ide and built project but same error.

    Please can someone advise.

    Much appreciated.

    Thursday, January 16, 2020 9:48 AM

Answers

  • User392263 posted

    Issue was because I hadn't installed universal Windows platform development workload, only mobile development with .net.

    • Marked as answer by Anonymous Thursday, June 3, 2021 12:00 AM
    Thursday, January 16, 2020 5:21 PM

All replies

  • User369978 posted

    It looks like the issue with adding UWP part into project .

    Could you try to create a blank project without UWP to see if problem persists ?

    Thursday, January 16, 2020 1:34 PM
  • User392263 posted

    Issue was because I hadn't installed universal Windows platform development workload, only mobile development with .net.

    • Marked as answer by Anonymous Thursday, June 3, 2021 12:00 AM
    Thursday, January 16, 2020 5:21 PM