dotnet-installer/test/EndToEnd/SupportedNetCoreAppVersions.cs

62 lines
1.8 KiB
C#
Raw Normal View History

2018-11-08 20:11:30 +00:00
using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using Xunit;
namespace EndToEnd
{
public class SupportedNetCoreAppVersions : IEnumerable<object[]>
{
public IEnumerator<object[]> GetEnumerator() => Versions.Select(version => new object[] { version }).GetEnumerator();
IEnumerator IEnumerable.GetEnumerator() => GetEnumerator();
public static IEnumerable<string> Versions
{
get
{
return new[]
{
"1.0",
"1.1",
"2.0",
2018-08-04 03:02:55 +00:00
"2.1",
"2.2",
2019-09-20 23:19:37 +00:00
"3.0",
"3.1",
[master] Update dependencies from aspnet/AspNetCore (#4391) * Update dependencies from https://github.com/aspnet/AspNetCore build 20190828.12 - Microsoft.AspNetCore.DeveloperCertificates.XPlat - 5.0.0-alpha1.19428.12 - Microsoft.AspNetCore.App.Runtime.win-x64 - 5.0.0-alpha1.19428.12 - Microsoft.AspNetCore.App.Ref - 5.0.0-alpha1.19428.12 - dotnet-watch - 5.0.0-alpha1.19428.12 - dotnet-user-secrets - 5.0.0-alpha1.19428.12 - dotnet-dev-certs - 5.0.0-alpha1.19428.12 * Update dependencies from https://github.com/aspnet/AspNetCore build 20190830.9 - Microsoft.AspNetCore.DeveloperCertificates.XPlat - 5.0.0-alpha1.19430.9 - Microsoft.AspNetCore.App.Runtime.win-x64 - 5.0.0-alpha1.19430.9 - Microsoft.AspNetCore.App.Ref - 5.0.0-alpha1.19430.9 - dotnet-watch - 5.0.0-alpha1.19430.9 - dotnet-user-secrets - 5.0.0-alpha1.19430.9 - dotnet-dev-certs - 5.0.0-alpha1.19430.9 * Update dependencies from https://github.com/aspnet/AspNetCore build 20190903.5 - Microsoft.AspNetCore.DeveloperCertificates.XPlat - 5.0.0-alpha1.19453.5 - Microsoft.AspNetCore.App.Runtime.win-x64 - 5.0.0-alpha1.19453.5 - Microsoft.AspNetCore.App.Ref - 5.0.0-alpha1.19453.5 - dotnet-watch - 5.0.0-alpha1.19453.5 - dotnet-user-secrets - 5.0.0-alpha1.19453.5 - dotnet-dev-certs - 5.0.0-alpha1.19453.5 * Update dependencies from https://github.com/aspnet/AspNetCore build 20190903.8 - Microsoft.AspNetCore.DeveloperCertificates.XPlat - 5.0.0-alpha1.19453.8 - Microsoft.AspNetCore.App.Runtime.win-x64 - 5.0.0-alpha1.19453.8 - Microsoft.AspNetCore.App.Ref - 5.0.0-alpha1.19453.8 - dotnet-watch - 5.0.0-alpha1.19453.8 - dotnet-user-secrets - 5.0.0-alpha1.19453.8 - dotnet-dev-certs - 5.0.0-alpha1.19453.8 * Update dependencies from https://github.com/aspnet/AspNetCore build 20190904.6 - Microsoft.AspNetCore.DeveloperCertificates.XPlat - 5.0.0-alpha1.19454.6 - Microsoft.AspNetCore.App.Runtime.win-x64 - 5.0.0-alpha1.19454.6 - Microsoft.AspNetCore.App.Ref - 5.0.0-alpha1.19454.6 - dotnet-watch - 5.0.0-alpha1.19454.6 - dotnet-user-secrets - 5.0.0-alpha1.19454.6 - dotnet-dev-certs - 5.0.0-alpha1.19454.6 * Update dependencies from https://github.com/aspnet/AspNetCore build 20190904.9 - Microsoft.AspNetCore.DeveloperCertificates.XPlat - 5.0.0-alpha1.19454.9 - Microsoft.AspNetCore.App.Runtime.win-x64 - 5.0.0-alpha1.19454.9 - Microsoft.AspNetCore.App.Ref - 5.0.0-alpha1.19454.9 - dotnet-watch - 5.0.0-alpha1.19454.9 - dotnet-user-secrets - 5.0.0-alpha1.19454.9 - dotnet-dev-certs - 5.0.0-alpha1.19454.9 * Update dependencies from https://github.com/aspnet/AspNetCore build 20190906.3 - Microsoft.AspNetCore.DeveloperCertificates.XPlat - 5.0.0-alpha1.19456.3 - Microsoft.AspNetCore.App.Runtime.win-x64 - 5.0.0-alpha1.19456.3 - Microsoft.AspNetCore.App.Ref - 5.0.0-alpha1.19456.3 - dotnet-watch - 5.0.0-alpha1.19456.3 - dotnet-user-secrets - 5.0.0-alpha1.19456.3 - dotnet-dev-certs - 5.0.0-alpha1.19456.3 * Update dependencies from https://github.com/aspnet/AspNetCore build 20190909.1 - Microsoft.AspNetCore.DeveloperCertificates.XPlat - 5.0.0-alpha1.19459.1 - Microsoft.AspNetCore.App.Runtime.win-x64 - 5.0.0-alpha1.19459.1 - Microsoft.AspNetCore.App.Ref - 5.0.0-alpha1.19459.1 - dotnet-watch - 5.0.0-alpha1.19459.1 - dotnet-user-secrets - 5.0.0-alpha1.19459.1 - dotnet-dev-certs - 5.0.0-alpha1.19459.1 * Update 3.0 versions to rc1, update TargetFramework for ASP.NET framework reference * Update dependencies from https://github.com/aspnet/AspNetCore build 20190909.4 - Microsoft.AspNetCore.DeveloperCertificates.XPlat - 5.0.0-alpha1.19459.4 - Microsoft.AspNetCore.App.Runtime.win-x64 - 5.0.0-alpha1.19459.4 - Microsoft.AspNetCore.App.Ref - 5.0.0-alpha1.19459.4 - dotnet-watch - 5.0.0-alpha1.19459.4 - dotnet-user-secrets - 5.0.0-alpha1.19459.4 - dotnet-dev-certs - 5.0.0-alpha1.19459.4 * Update dependencies from https://github.com/aspnet/AspNetCore build 20190911.3 - Microsoft.AspNetCore.DeveloperCertificates.XPlat - 5.0.0-alpha1.19461.3 - Microsoft.AspNetCore.App.Runtime.win-x64 - 5.0.0-alpha1.19461.3 - Microsoft.AspNetCore.App.Ref - 5.0.0-alpha1.19461.3 - dotnet-watch - 5.0.0-alpha1.19461.3 - dotnet-user-secrets - 5.0.0-alpha1.19461.3 - dotnet-dev-certs - 5.0.0-alpha1.19461.3 * Update dependencies from https://github.com/aspnet/AspNetCore build 20190911.5 - Microsoft.AspNetCore.DeveloperCertificates.XPlat - 5.0.0-alpha1.19461.5 - Microsoft.AspNetCore.App.Runtime.win-x64 - 5.0.0-alpha1.19461.5 - Microsoft.AspNetCore.App.Ref - 5.0.0-alpha1.19461.5 - dotnet-watch - 5.0.0-alpha1.19461.5 - dotnet-user-secrets - 5.0.0-alpha1.19461.5 - dotnet-dev-certs - 5.0.0-alpha1.19461.5 * Update dependencies from https://github.com/aspnet/AspNetCore build 20190911.8 - Microsoft.AspNetCore.DeveloperCertificates.XPlat - 5.0.0-alpha1.19461.8 - Microsoft.AspNetCore.App.Runtime.win-x64 - 5.0.0-alpha1.19461.8 - Microsoft.AspNetCore.App.Ref - 5.0.0-alpha1.19461.8 - dotnet-watch - 5.0.0-alpha1.19461.8 - dotnet-user-secrets - 5.0.0-alpha1.19461.8 - dotnet-dev-certs - 5.0.0-alpha1.19461.8 * Update dependencies from https://github.com/aspnet/AspNetCore build 20190911.11 - Microsoft.AspNetCore.DeveloperCertificates.XPlat - 5.0.0-alpha1.19461.11 - Microsoft.AspNetCore.App.Runtime.win-x64 - 5.0.0-alpha1.19461.11 - Microsoft.AspNetCore.App.Ref - 5.0.0-alpha1.19461.11 - dotnet-watch - 5.0.0-alpha1.19461.11 - dotnet-user-secrets - 5.0.0-alpha1.19461.11 - dotnet-dev-certs - 5.0.0-alpha1.19461.11 * Update dependencies from https://github.com/aspnet/AspNetCore build 20190911.13 - Microsoft.AspNetCore.DeveloperCertificates.XPlat - 5.0.0-alpha1.19461.13 - Microsoft.AspNetCore.App.Runtime.win-x64 - 5.0.0-alpha1.19461.13 - Microsoft.AspNetCore.App.Ref - 5.0.0-alpha1.19461.13 - dotnet-watch - 5.0.0-alpha1.19461.13 - dotnet-user-secrets - 5.0.0-alpha1.19461.13 - dotnet-dev-certs - 5.0.0-alpha1.19461.13 * Update dependencies from https://github.com/aspnet/AspNetCore build 20190912.1 - Microsoft.AspNetCore.DeveloperCertificates.XPlat - 5.0.0-alpha1.19462.1 - Microsoft.AspNetCore.App.Runtime.win-x64 - 5.0.0-alpha1.19462.1 - Microsoft.AspNetCore.App.Ref - 5.0.0-alpha1.19462.1 - dotnet-watch - 5.0.0-alpha1.19462.1 - dotnet-user-secrets - 5.0.0-alpha1.19462.1 - dotnet-dev-certs - 5.0.0-alpha1.19462.1 * Update dependencies from https://github.com/aspnet/AspNetCore build 20190912.5 - Microsoft.AspNetCore.DeveloperCertificates.XPlat - 5.0.0-alpha1.19462.5 - Microsoft.AspNetCore.App.Runtime.win-x64 - 5.0.0-alpha1.19462.5 - Microsoft.AspNetCore.App.Ref - 5.0.0-alpha1.19462.5 - dotnet-watch - 5.0.0-alpha1.19462.5 - dotnet-user-secrets - 5.0.0-alpha1.19462.5 - dotnet-dev-certs - 5.0.0-alpha1.19462.5 * Update dependencies from https://github.com/aspnet/AspNetCore build 20190912.9 - Microsoft.AspNetCore.DeveloperCertificates.XPlat - 5.0.0-alpha1.19462.9 - Microsoft.AspNetCore.App.Runtime.win-x64 - 5.0.0-alpha1.19462.9 - Microsoft.AspNetCore.App.Ref - 5.0.0-alpha1.19462.9 - dotnet-watch - 5.0.0-alpha1.19462.9 - dotnet-user-secrets - 5.0.0-alpha1.19462.9 - dotnet-dev-certs - 5.0.0-alpha1.19462.9 * Update dependencies from https://github.com/aspnet/AspNetCore build 20190916.1 - Microsoft.AspNetCore.DeveloperCertificates.XPlat - 5.0.0-alpha1.19466.1 - Microsoft.AspNetCore.App.Runtime.win-x64 - 5.0.0-alpha1.19466.1 - Microsoft.AspNetCore.App.Ref - 5.0.0-alpha1.19466.1 - dotnet-watch - 5.0.0-alpha1.19466.1 - dotnet-user-secrets - 5.0.0-alpha1.19466.1 - dotnet-dev-certs - 5.0.0-alpha1.19466.1 * Update dependencies from https://github.com/aspnet/AspNetCore build 20190916.2 - Microsoft.AspNetCore.DeveloperCertificates.XPlat - 5.0.0-alpha1.19466.2 - Microsoft.AspNetCore.App.Runtime.win-x64 - 5.0.0-alpha1.19466.2 - Microsoft.AspNetCore.App.Ref - 5.0.0-alpha1.19466.2 - dotnet-watch - 5.0.0-alpha1.19466.2 - dotnet-user-secrets - 5.0.0-alpha1.19466.2 - dotnet-dev-certs - 5.0.0-alpha1.19466.2 * Update dependencies from https://github.com/aspnet/AspNetCore build 20190916.4 - Microsoft.AspNetCore.DeveloperCertificates.XPlat - 5.0.0-alpha1.19466.4 - Microsoft.AspNetCore.App.Runtime.win-x64 - 5.0.0-alpha1.19466.4 - Microsoft.AspNetCore.App.Ref - 5.0.0-alpha1.19466.4 - dotnet-watch - 5.0.0-alpha1.19466.4 - dotnet-user-secrets - 5.0.0-alpha1.19466.4 - dotnet-dev-certs - 5.0.0-alpha1.19466.4 * Update dependencies from https://github.com/aspnet/AspNetCore build 20190916.5 - Microsoft.AspNetCore.DeveloperCertificates.XPlat - 5.0.0-alpha1.19466.5 - Microsoft.AspNetCore.App.Runtime.win-x64 - 5.0.0-alpha1.19466.5 - Microsoft.AspNetCore.App.Ref - 5.0.0-alpha1.19466.5 - dotnet-watch - 5.0.0-alpha1.19466.5 - dotnet-user-secrets - 5.0.0-alpha1.19466.5 - dotnet-dev-certs - 5.0.0-alpha1.19466.5 * Update dependencies from https://github.com/aspnet/AspNetCore build 20190916.7 - Microsoft.AspNetCore.DeveloperCertificates.XPlat - 5.0.0-alpha1.19466.7 - Microsoft.AspNetCore.App.Runtime.win-x64 - 5.0.0-alpha1.19466.7 - Microsoft.AspNetCore.App.Ref - 5.0.0-alpha1.19466.7 - dotnet-watch - 5.0.0-alpha1.19466.7 - dotnet-user-secrets - 5.0.0-alpha1.19466.7 - dotnet-dev-certs - 5.0.0-alpha1.19466.7 * Support targeting ASP.NET Core 5.0
2019-09-17 20:09:37 +00:00
"5.0"
};
}
}
}
public class SupportedAspNetCoreVersions : IEnumerable<object[]>
{
public IEnumerator<object[]> GetEnumerator() => Versions.Select(version => new object[] { version }).GetEnumerator();
IEnumerator IEnumerable.GetEnumerator() => GetEnumerator();
public static IEnumerable<string> Versions
{
get
{
return SupportedNetCoreAppVersions.Versions.Except(new List<string>() { "1.0", "1.1", "2.0" });
}
}
}
2018-11-08 20:11:30 +00:00
public class SupportedAspNetCoreAllVersions : IEnumerable<object[]>
{
public IEnumerator<object[]> GetEnumerator() => Versions.Select(version => new object[] { version }).GetEnumerator();
IEnumerator IEnumerable.GetEnumerator() => GetEnumerator();
public static IEnumerable<string> Versions
{
get
{
return SupportedAspNetCoreVersions.Versions.Where(v => new Version(v).Major < 3);
}
}
}
}