Skip to content

System.TypeLoadException: 'Could not resolve type 'System.AppContext'  #20767

@shmao

Description

@shmao

I was trying to build serialization tests in CoreFx against uapaot. Sg.exe failed to resolve System.AppContext, which caused error when building the tests. Here's the error message,

System.TypeLoadException occurred
  HResult=0x80131522
  Message=Could not resolve type 'System.AppContext' in assembly 'System.Runtime, Version=4.2.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'.
  Source=mscorlib
  StackTrace:
   at System.TypeNameParser.ResolveType(Assembly assembly, String[] names, Func`4 typeResolver, Boolean throwOnError, Boolean ignoreCase, StackCrawlMark& stackMark) in f:\dd\ndp\clr\src\BCL\system\typenameparser.cs:line 303

Is System.AppContext not available on uapaot?

Metadata

Metadata

Assignees

No one assigned

    Labels

    area-System.RuntimeblockingMarks issues that we want to fast track in order to unblock other important work

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions