共用方式為


NETSDK1135:SupportedOSPlatformVersion 不得高於 TargetPlatformVersion

您的專案檔針對 SupportedOSPlatformVersion 指定的值太高。 完整的錯誤訊息與下列範例類似:

SupportedOSPlatformVersion <Version> 不能高於 TargetPlatformVersion <Version>

請檢查您的專案檔中是否有 SupportedOSPlatformVersionTargetPlatformVersion (TPV) 是從 TargetFramework 值推斷而來。 例如,net6.0-windows10.0.19041 會將 TPV 設定為 10.0.19041。 .NET 會使用 TargetPlatformVersion 來判斷編譯時間可用的 API。