CS0436: Type conflicts with the imported type

后端 未结 5 1965
礼貌的吻别
礼貌的吻别 2020-12-06 09:43

I am including an instance of the same source files in multiple assemblies using the Add As Link option. I specifically need to include an instance of the same source withi

5条回答
  •  轻奢々
    轻奢々 (楼主)
    2020-12-06 10:03

    In .NET Core you can also disable the warning in project.json:

    {
      "buildOptions":
      {
        "nowarn":
        [
          "CS0436"
        ]
      }
    }
    

提交回复
热议问题