1+ // Copyright (c) .NET Foundation. All rights reserved.
2+ // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
3+
4+ using System ;
5+ using System . Collections . Generic ;
6+ using NuGet . Frameworks ;
7+ using static NuGet . Frameworks . FrameworkConstants ;
8+ using static NuGet . Frameworks . FrameworkConstants . CommonFrameworks ;
9+
10+ namespace NuGetGallery . Frameworks
11+ {
12+ /// <summary>
13+ /// This class contains documented supported frameworks.
14+ /// </summary>
15+ /// <remarks>
16+ /// All these frameworks were retrieved from the following sources:
17+ /// dotnet documentation: https://docs.microsoft.com/en-us/dotnet/standard/frameworks.
18+ /// nuget documentation: https://docs.microsoft.com/en-us/nuget/reference/target-frameworks.
19+ /// nuget client FrameworkConstants.CommonFrameworks: https://github.com/NuGet/NuGet.Client/blob/dev/src/NuGet.Core/NuGet.Frameworks/FrameworkConstants.cs.
20+ /// </remarks>
21+ public static class SupportedFrameworks
22+ {
23+ public static readonly NuGetFramework MonoAndroid = new NuGetFramework ( FrameworkIdentifiers . MonoAndroid , EmptyVersion ) ;
24+ public static readonly NuGetFramework MonoTouch = new NuGetFramework ( FrameworkIdentifiers . MonoTouch , EmptyVersion ) ;
25+ public static readonly NuGetFramework MonoMac = new NuGetFramework ( FrameworkIdentifiers . MonoMac , EmptyVersion ) ;
26+ public static readonly NuGetFramework Net48 = new NuGetFramework ( FrameworkIdentifiers . Net , new Version ( 4 , 8 , 0 , 0 ) ) ;
27+ public static readonly NuGetFramework Net50Windows = new NuGetFramework ( FrameworkIdentifiers . NetCoreApp , Version5 , "windows" ) ;
28+ public static readonly NuGetFramework Net60Android = new NuGetFramework ( FrameworkIdentifiers . NetCoreApp , Version6 , "android" ) ;
29+ public static readonly NuGetFramework Net60Ios = new NuGetFramework ( FrameworkIdentifiers . NetCoreApp , Version6 , "ios" ) ;
30+ public static readonly NuGetFramework Net60MacOs = new NuGetFramework ( FrameworkIdentifiers . NetCoreApp , Version6 , "macos" ) ;
31+ public static readonly NuGetFramework Net60MacCatalyst = new NuGetFramework ( FrameworkIdentifiers . NetCoreApp , Version6 , "maccatalyst" ) ;
32+ public static readonly NuGetFramework Net60Tizen = new NuGetFramework ( FrameworkIdentifiers . NetCoreApp , Version6 , "tizen" ) ;
33+ public static readonly NuGetFramework Net60TvOs = new NuGetFramework ( FrameworkIdentifiers . NetCoreApp , Version6 , "tvos" ) ;
34+ public static readonly NuGetFramework Net60Windows = new NuGetFramework ( FrameworkIdentifiers . NetCoreApp , Version6 , "windows" ) ;
35+ public static readonly NuGetFramework NetCore = new NuGetFramework ( FrameworkIdentifiers . NetCore , EmptyVersion ) ;
36+ public static readonly NuGetFramework NetMf = new NuGetFramework ( FrameworkIdentifiers . NetMicro , EmptyVersion ) ;
37+ public static readonly NuGetFramework UAP = new NuGetFramework ( FrameworkIdentifiers . UAP , EmptyVersion ) ;
38+ public static readonly NuGetFramework Win = new NuGetFramework ( FrameworkIdentifiers . Windows , EmptyVersion ) ;
39+ public static readonly NuGetFramework WinRt = new NuGetFramework ( FrameworkIdentifiers . WinRT , EmptyVersion ) ;
40+ public static readonly NuGetFramework WP = new NuGetFramework ( FrameworkIdentifiers . WindowsPhone , EmptyVersion ) ;
41+ public static readonly NuGetFramework XamarinIOs = new NuGetFramework ( FrameworkIdentifiers . XamarinIOs , EmptyVersion ) ;
42+ public static readonly NuGetFramework XamarinMac = new NuGetFramework ( FrameworkIdentifiers . XamarinMac , EmptyVersion ) ;
43+ public static readonly NuGetFramework XamarinPlaystation3 = new NuGetFramework ( FrameworkIdentifiers . XamarinPlayStation3 , EmptyVersion ) ;
44+ public static readonly NuGetFramework XamarinPlayStation4 = new NuGetFramework ( FrameworkIdentifiers . XamarinPlayStation4 , EmptyVersion ) ;
45+ public static readonly NuGetFramework XamarinPlayStationVita = new NuGetFramework ( FrameworkIdentifiers . XamarinPlayStationVita , EmptyVersion ) ;
46+ public static readonly NuGetFramework XamarinTvOs = new NuGetFramework ( FrameworkIdentifiers . XamarinTVOS , EmptyVersion ) ;
47+ public static readonly NuGetFramework XamarinWatchOs = new NuGetFramework ( FrameworkIdentifiers . XamarinWatchOS , EmptyVersion ) ;
48+ public static readonly NuGetFramework XamarinXbox360 = new NuGetFramework ( FrameworkIdentifiers . XamarinXbox360 , EmptyVersion ) ;
49+ public static readonly NuGetFramework XamarinXboxOne = new NuGetFramework ( FrameworkIdentifiers . XamarinXboxOne , EmptyVersion ) ;
50+
51+ public static readonly IReadOnlyList < NuGetFramework > AllSupportedNuGetFrameworks ;
52+
53+ static SupportedFrameworks ( )
54+ {
55+ AllSupportedNuGetFrameworks = new List < NuGetFramework >
56+ {
57+ AspNet , AspNet50 , AspNetCore , AspNetCore50 ,
58+ Dnx , Dnx45 , Dnx451 , Dnx452 , DnxCore , DnxCore50 ,
59+ DotNet , DotNet50 , DotNet51 , DotNet52 , DotNet53 , DotNet54 , DotNet55 , DotNet56 ,
60+ MonoAndroid , MonoMac , MonoTouch ,
61+ Native ,
62+ Net11 , Net2 , Net35 , Net4 , Net403 , Net45 , Net451 , Net452 , Net46 , Net461 , Net462 , Net463 , Net47 , Net471 , Net472 , Net48 ,
63+ Net50 , Net50Windows , Net60 , Net60Android , Net60Ios , Net60MacCatalyst , Net60MacOs , Net60TvOs , Net60Windows ,
64+ NetCore , NetCore45 , NetCore451 , NetCore50 ,
65+ NetCoreApp10 , NetCoreApp11 , NetCoreApp20 , NetCoreApp21 , NetCoreApp22 , NetCoreApp30 , NetCoreApp31 ,
66+ NetMf ,
67+ NetStandard , NetStandard10 , NetStandard11 , NetStandard12 , NetStandard13 , NetStandard14 , NetStandard15 , NetStandard16 , NetStandard17 , NetStandard20 , NetStandard21 ,
68+ NetStandardApp15 ,
69+ SL4 , SL5 ,
70+ Tizen3 , Tizen4 , Tizen6 ,
71+ UAP , UAP10 ,
72+ Win , Win8 , Win81 , Win10 ,
73+ WinRt ,
74+ WP , WP7 , WP75 , WP8 , WP81 , WPA81 ,
75+ XamarinIOs , XamarinMac , XamarinPlaystation3 , XamarinPlayStation4 , XamarinPlayStationVita , XamarinTvOs , XamarinWatchOs , XamarinXbox360 , XamarinXboxOne
76+ } ;
77+ }
78+ }
79+ }
0 commit comments