How does the C# compiler decide to emit retargetable assembly references?

前端 未结 3 1238
悲哀的现实
悲哀的现实 2021-02-19 18:04

Retargetable assembly references have been introduced for the .NET Compact Framework and are now used to support Portable Class Libraries.

Basically, the compiler emits

3条回答
  •  甜味超标
    2021-02-19 19:06

    I've noticed by experimenting that the C# compiler would make an reference compiler as retargetable if the referenced assembly is marked as retargetable (a modifier on the .assembly section in MSIL). I did not find how the compiler decides to make the assembly retargetable, yet.

提交回复
热议问题