Skip to content

ilasm cannot compile against different corlib names #7758

@agocke

Description

@agocke

For instance, compiling the following il:

.assembly '_0_89c370b1-0d11-4511-9273-3053e4dbf734' {} 

.assembly extern netstandard 
{
  .publickeytoken = (B7 7A 5C 56 19 34 E0 89)
  .ver 2:0:0:0
} 


.class public auto ansi beforefieldinit Class
       extends [netstandard]System.Object
{
} // end of class Class

Results in the following warning:

 warning : Reference to undeclared extern assembly 'mscorlib'. Attempting autodetect

And System.Object is retargeted to mscorlib and an mscorlib ref is added to the output assembly.

Metadata

Metadata

Assignees

No one assigned

    Labels

    area-CodeGen-coreclrCLR JIT compiler in src/coreclr/src/jit and related components such as SuperPMIenhancementProduct code improvement that does NOT require public API changes/additions

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions