NETSDK1135: SupportedOSPlatformVersion 不能高于 TargetPlatformVersion
项目文件为 SupportedOSPlatformVersion
指定的值过高。 完整的错误消息类似于以下示例:
SupportedOSPlatformVersion
<Version>
不能高于TargetPlatformVersion
<Version>
。
检查项目文件中的 SupportedOSPlatformVersion
。 TargetPlatformVersion
(TPV) 是从 TargetFramework
值推断出来的。 例如,net6.0-windows10.0.19041
会将 TPV 设置为 10.0.19041
。 .NET 使用 TargetPlatformVersion
确定编译时可用的 API。