1- // Copyright (c) .NET Foundation. All rights reserved.
1+ // Copyright (c) .NET Foundation. All rights reserved.
22// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
33
44using System ;
@@ -27,35 +27,51 @@ public static class SupportedFrameworks
2727 public static readonly NuGetFramework Net3 = new NuGetFramework ( FrameworkIdentifiers . Net , new Version ( 3 , 0 , 0 , 0 ) ) ;
2828 public static readonly NuGetFramework Net48 = new NuGetFramework ( FrameworkIdentifiers . Net , new Version ( 4 , 8 , 0 , 0 ) ) ;
2929 public static readonly NuGetFramework Net481 = new NuGetFramework ( FrameworkIdentifiers . Net , new Version ( 4 , 8 , 1 , 0 ) ) ;
30+ public static readonly NuGetFramework NetCore = new NuGetFramework ( FrameworkIdentifiers . NetCore , EmptyVersion ) ;
31+ public static readonly NuGetFramework NetMf = new NuGetFramework ( FrameworkIdentifiers . NetMicro , EmptyVersion ) ;
32+ public static readonly NuGetFramework UAP = new NuGetFramework ( FrameworkIdentifiers . UAP , EmptyVersion ) ;
33+ public static readonly NuGetFramework WP = new NuGetFramework ( FrameworkIdentifiers . WindowsPhone , EmptyVersion ) ;
34+ public static readonly NuGetFramework XamarinIOs = new NuGetFramework ( FrameworkIdentifiers . XamarinIOs , EmptyVersion ) ;
35+ public static readonly NuGetFramework XamarinMac = new NuGetFramework ( FrameworkIdentifiers . XamarinMac , EmptyVersion ) ;
36+ public static readonly NuGetFramework XamarinTvOs = new NuGetFramework ( FrameworkIdentifiers . XamarinTVOS , EmptyVersion ) ;
37+ public static readonly NuGetFramework XamarinWatchOs = new NuGetFramework ( FrameworkIdentifiers . XamarinWatchOS , EmptyVersion ) ;
38+
3039 public static readonly NuGetFramework Net50Windows = new NuGetFramework ( FrameworkIdentifiers . NetCoreApp , Version5 , "windows" , EmptyVersion ) ;
40+
3141 public static readonly NuGetFramework Net60Android = new NuGetFramework ( FrameworkIdentifiers . NetCoreApp , Version6 , "android" , EmptyVersion ) ;
3242 public static readonly NuGetFramework Net60Ios = new NuGetFramework ( FrameworkIdentifiers . NetCoreApp , Version6 , "ios" , EmptyVersion ) ;
33- public static readonly NuGetFramework Net60MacOs = new NuGetFramework ( FrameworkIdentifiers . NetCoreApp , Version6 , "macos" , EmptyVersion ) ;
3443 public static readonly NuGetFramework Net60MacCatalyst = new NuGetFramework ( FrameworkIdentifiers . NetCoreApp , Version6 , "maccatalyst" , EmptyVersion ) ;
44+ public static readonly NuGetFramework Net60MacOs = new NuGetFramework ( FrameworkIdentifiers . NetCoreApp , Version6 , "macos" , EmptyVersion ) ;
3545 public static readonly NuGetFramework Net60TvOs = new NuGetFramework ( FrameworkIdentifiers . NetCoreApp , Version6 , "tvos" , EmptyVersion ) ;
3646 public static readonly NuGetFramework Net60Windows = new NuGetFramework ( FrameworkIdentifiers . NetCoreApp , Version6 , "windows" , EmptyVersion ) ;
47+
3748 public static readonly NuGetFramework Net70Android = new NuGetFramework ( FrameworkIdentifiers . NetCoreApp , Version7 , "android" , EmptyVersion ) ;
3849 public static readonly NuGetFramework Net70Ios = new NuGetFramework ( FrameworkIdentifiers . NetCoreApp , Version7 , "ios" , EmptyVersion ) ;
39- public static readonly NuGetFramework Net70MacOs = new NuGetFramework ( FrameworkIdentifiers . NetCoreApp , Version7 , "macos" , EmptyVersion ) ;
4050 public static readonly NuGetFramework Net70MacCatalyst = new NuGetFramework ( FrameworkIdentifiers . NetCoreApp , Version7 , "maccatalyst" , EmptyVersion ) ;
51+ public static readonly NuGetFramework Net70MacOs = new NuGetFramework ( FrameworkIdentifiers . NetCoreApp , Version7 , "macos" , EmptyVersion ) ;
4152 public static readonly NuGetFramework Net70TvOs = new NuGetFramework ( FrameworkIdentifiers . NetCoreApp , Version7 , "tvos" , EmptyVersion ) ;
4253 public static readonly NuGetFramework Net70Windows = new NuGetFramework ( FrameworkIdentifiers . NetCoreApp , Version7 , "windows" , EmptyVersion ) ;
54+
4355 public static readonly NuGetFramework Net80Android = new NuGetFramework ( FrameworkIdentifiers . NetCoreApp , Version8 , "android" , EmptyVersion ) ;
4456 public static readonly NuGetFramework Net80Browser = new NuGetFramework ( FrameworkIdentifiers . NetCoreApp , Version8 , "browser" , EmptyVersion ) ;
4557 public static readonly NuGetFramework Net80Ios = new NuGetFramework ( FrameworkIdentifiers . NetCoreApp , Version8 , "ios" , EmptyVersion ) ;
46- public static readonly NuGetFramework Net80MacOs = new NuGetFramework ( FrameworkIdentifiers . NetCoreApp , Version8 , "macos" , EmptyVersion ) ;
4758 public static readonly NuGetFramework Net80MacCatalyst = new NuGetFramework ( FrameworkIdentifiers . NetCoreApp , Version8 , "maccatalyst" , EmptyVersion ) ;
59+ public static readonly NuGetFramework Net80MacOs = new NuGetFramework ( FrameworkIdentifiers . NetCoreApp , Version8 , "macos" , EmptyVersion ) ;
4860 public static readonly NuGetFramework Net80TvOs = new NuGetFramework ( FrameworkIdentifiers . NetCoreApp , Version8 , "tvos" , EmptyVersion ) ;
4961 public static readonly NuGetFramework Net80Windows = new NuGetFramework ( FrameworkIdentifiers . NetCoreApp , Version8 , "windows" , EmptyVersion ) ;
50- public static readonly NuGetFramework NetCore = new NuGetFramework ( FrameworkIdentifiers . NetCore , EmptyVersion ) ;
51- public static readonly NuGetFramework NetMf = new NuGetFramework ( FrameworkIdentifiers . NetMicro , EmptyVersion ) ;
52- public static readonly NuGetFramework UAP = new NuGetFramework ( FrameworkIdentifiers . UAP , EmptyVersion ) ;
53- public static readonly NuGetFramework WP = new NuGetFramework ( FrameworkIdentifiers . WindowsPhone , EmptyVersion ) ;
54- public static readonly NuGetFramework XamarinIOs = new NuGetFramework ( FrameworkIdentifiers . XamarinIOs , EmptyVersion ) ;
55- public static readonly NuGetFramework XamarinMac = new NuGetFramework ( FrameworkIdentifiers . XamarinMac , EmptyVersion ) ;
56- public static readonly NuGetFramework XamarinTvOs = new NuGetFramework ( FrameworkIdentifiers . XamarinTVOS , EmptyVersion ) ;
57- public static readonly NuGetFramework XamarinWatchOs = new NuGetFramework ( FrameworkIdentifiers . XamarinWatchOS , EmptyVersion ) ;
58-
62+
63+ // These 2 constants can be removed once they have been added to NuGet.Frameworks.FrameworkConstants - https://github.com/NuGet/Engineering/issues/5676
64+ public static readonly Version Version9 = new Version ( 9 , 0 , 0 , 0 ) ;
65+ public static readonly NuGetFramework Net90 = new NuGetFramework ( FrameworkIdentifiers . NetCoreApp , Version9 ) ;
66+
67+ public static readonly NuGetFramework Net90Android = new NuGetFramework ( FrameworkIdentifiers . NetCoreApp , Version9 , "android" , EmptyVersion ) ;
68+ public static readonly NuGetFramework Net90Browser = new NuGetFramework ( FrameworkIdentifiers . NetCoreApp , Version9 , "browser" , EmptyVersion ) ;
69+ public static readonly NuGetFramework Net90Ios = new NuGetFramework ( FrameworkIdentifiers . NetCoreApp , Version9 , "ios" , EmptyVersion ) ;
70+ public static readonly NuGetFramework Net90MacCatalyst = new NuGetFramework ( FrameworkIdentifiers . NetCoreApp , Version9 , "maccatalyst" , EmptyVersion ) ;
71+ public static readonly NuGetFramework Net90MacOs = new NuGetFramework ( FrameworkIdentifiers . NetCoreApp , Version9 , "macos" , EmptyVersion ) ;
72+ public static readonly NuGetFramework Net90TvOs = new NuGetFramework ( FrameworkIdentifiers . NetCoreApp , Version9 , "tvos" , EmptyVersion ) ;
73+ public static readonly NuGetFramework Net90Windows = new NuGetFramework ( FrameworkIdentifiers . NetCoreApp , Version9 , "windows" , EmptyVersion ) ;
74+
5975 public static readonly IReadOnlyList < NuGetFramework > AllSupportedNuGetFrameworks ;
6076
6177 static SupportedFrameworks ( )
@@ -68,7 +84,8 @@ static SupportedFrameworks()
6884 Net50 , Net50Windows ,
6985 Net60 , Net60Android , Net60Ios , Net60MacCatalyst , Net60MacOs , Net60TvOs , Net60Windows ,
7086 Net70 , Net70Android , Net70Ios , Net70MacCatalyst , Net70MacOs , Net70TvOs , Net70Windows ,
71- Net80 , Net80Android , Net80Ios , Net80MacCatalyst , Net80MacOs , Net80TvOs , Net80Windows , Net80Browser ,
87+ Net80 , Net80Android , Net80Browser , Net80Ios , Net80MacCatalyst , Net80MacOs , Net80TvOs , Net80Windows ,
88+ Net90 , Net90Android , Net90Browser , Net90Ios , Net90MacCatalyst , Net90MacOs , Net90TvOs , Net90Windows ,
7289 NetCore , NetCore45 , NetCore451 ,
7390 NetCoreApp10 , NetCoreApp11 , NetCoreApp20 , NetCoreApp21 , NetCoreApp22 , NetCoreApp30 , NetCoreApp31 ,
7491 NetMf ,
@@ -137,4 +154,4 @@ public static class TfmFilters {
137154 } ;
138155 }
139156 }
140- }
157+ }
0 commit comments