PlatformTypePlatformsAreCompatible Method

This can be used to determine if the given set of platform types are compatible with each other for documentation purposes.

Definition

Namespace: Sandcastle.Core.Reflection
Assembly: Sandcastle.Core (in Sandcastle.Core.dll) Version: 2024.12.21.0
public static bool PlatformsAreCompatible(
	IEnumerable<(string platform, Version version)> platforms
)

Parameters

platforms  IEnumerableValueTupleString, Version
An enumerable list of platform types

Return Value

Boolean
True if they are compatible, false if not

Remarks

In general, platforms that have all of their types in mscorlib or netstandard are compatible but you can't mix both. All platforms that redirect their types to System.Runtime and other assemblies are also typically compatible. Mixing the sets or any combination of other frameworks is not compatible.

See Also