MSBuilder.IsXBuild (nuget): Provides the $(IsXBuild) property which allows detecting that the current engine is XBuild rather than MSBuild, for conditional execution.
Keywords: msbuild|xbuild