Conditional compilation symbol for a .NET Core class library

后端 未结 3 2005
隐瞒了意图╮
隐瞒了意图╮ 2021-01-11 14:45

I have created a .NET Core R2 class library and have some common code that I use for several different platforms.

Some of the code is not valid in the .NET Core plat

3条回答
  •  温柔的废话
    2021-01-11 15:04

    Conditional variables should be defined in your project.json file for RC2, and I have a sample project here,

    Port #SNMP from .NET Core RC1 to RC2

    But there are also predefined ones from this article,

    Developing Libraries with Cross Platform Tools

提交回复
热议问题