How to `extern alias` an assembly with .Net core?

后端 未结 4 677
时光取名叫无心
时光取名叫无心 2021-01-04 00:23

TLDR: Everything is pretty much in the title.

Suppose that your project.json uses two packages that have a two types which are named th

4条回答
  •  一向
    一向 (楼主)
    2021-01-04 00:50

    You can do it in this way:

    extern alias Lib1;
    extern alias Lib2;
    using System;
    using SpaceOne=Lib1::Space;
    using SpaceTwo=Lib2::Space;
    

    Example you can find here: https://github.com/ernado-x/owl/blob/master/src/Owl/Program.cs

提交回复
热议问题