Skip to content

Commit a06b39e

Browse files
TratcherTanayParikhpranavkm
authored
Update SDK to 7.0.100-alpha.1.21480.20 (dotnet#37192)
* Update SDK to 7.0.100-alpha.1.21480.20 Co-authored-by: Tanay Parikh <TanayParikh@users.noreply.github.com> Co-authored-by: Pranav K <prkrishn@hotmail.com>
1 parent 64f0642 commit a06b39e

File tree

9 files changed

+17
-19
lines changed

9 files changed

+17
-19
lines changed

eng/docker/rhel.Dockerfile

+10-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Dockerfile that creates a container suitable to build dotnet-cli
2-
FROM mcr.microsoft.com/dotnet-buildtools/prereqs:rhel-7-rpmpkg-e1b4a89-20175311035359
2+
FROM mcr.microsoft.com/dotnet-buildtools/prereqs:centos-7-rpmpkg-20210714125435-9b5bbc2
33

44
# Setup User to match Host User, and give superuser permissions
55
ARG USER
@@ -9,6 +9,15 @@ ARG WORKDIR
99

1010
WORKDIR ${WORKDIR}
1111

12+
# Workaround per https://github.com/dotnet/aspnetcore/pull/37192#issuecomment-936589233
13+
RUN gem uninstall fpm
14+
RUN yum remove -y rubygems
15+
RUN yum remove -y ruby-devel
16+
RUN yum --enablerepo=centos-sclo-rh -y install rh-ruby25
17+
RUN yum --enablerepo=centos-sclo-rh -y install rh-ruby25-ruby-devel
18+
RUN yum --enablerepo=centos-sclo-rh -y install rh-ruby25-rubygems
19+
RUN scl enable rh-ruby25 'gem install --no-document fpm'
20+
1221
RUN useradd -m ${USER} --uid ${USER_ID} -g root
1322
RUN echo '${USER} ALL=(ALL) NOPASSWD:ALL' >> /etc/sudoers
1423

eng/helix/content/RunTests/RunTests.csproj

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
<PropertyGroup>
44
<OutputType>Exe</OutputType>
5-
<TargetFramework>net6.0</TargetFramework>
5+
<TargetFramework>net7.0</TargetFramework>
66
<DefineConstants Condition=" '$(InstallPlaywright)' == 'true' ">$(DefineConstants);INSTALLPLAYWRIGHT</DefineConstants>
77
</PropertyGroup>
88

eng/tools/RepoTasks/RepoTasks.csproj

+2-4
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22
<PropertyGroup>
3-
<!-- Keep this project at net6.0 until there is an SDK with net7.0 runtimes -->
4-
<TargetFrameworks>net6.0</TargetFrameworks>
3+
<TargetFrameworks>$(DefaultNetCoreTargetFramework)</TargetFrameworks>
54
<TargetFrameworks Condition="'$(OS)' == 'Windows_NT'">$(TargetFrameworks);net472</TargetFrameworks>
65
<DefineConstants Condition="'$(TargetFramework)' == 'net472'">$(DefineConstants);BUILD_MSI_TASKS</DefineConstants>
76
<Optimize>false</Optimize>
@@ -20,8 +19,7 @@
2019
<PackageReference Include="Microsoft.Extensions.DependencyModel" Version="$(MicrosoftExtensionsDependencyModelVersion)" />
2120
</ItemGroup>
2221

23-
<!-- Change this back to '$(DefaultNetCoreTargetFramework)' once we have an SDK with net7.0 runtimes -->
24-
<ItemGroup Condition="'$(TargetFramework)' == 'net6.0'">
22+
<ItemGroup Condition="'$(TargetFramework)' == '$(DefaultNetCoreTargetFramework)'">
2523
<PackageReference Include="Microsoft.Build.Framework" Version="$(MicrosoftBuildFrameworkVersion)" />
2624
<PackageReference Include="Microsoft.Build.Tasks.Core" Version="$(MicrosoftBuildTaskCoreVersion)" />
2725
<PackageReference Include="Microsoft.Build.Utilities.Core" Version="$(MicrosoftBuildUtilitiesCoreVersion)" />

eng/tools/RepoTasks/RepoTasks.tasks

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
<Project>
22
<PropertyGroup>
3-
<!-- Keep this project at net6.0 until there is an SDK with net7.0 runtimes -->
4-
<_RepoTaskAssemblyFolder Condition="'$(MSBuildRuntimeType)' == 'core'">net6.0</_RepoTaskAssemblyFolder>
3+
<_RepoTaskAssemblyFolder Condition="'$(MSBuildRuntimeType)' == 'core'">$(DefaultNetCoreTargetFramework)</_RepoTaskAssemblyFolder>
54
<_RepoTaskAssemblyFolder Condition="'$(MSBuildRuntimeType)' != 'core'">net472</_RepoTaskAssemblyFolder>
65
<_RepoTaskAssembly>$(ArtifactsBinDir)RepoTasks\Release\$(_RepoTaskAssemblyFolder)\RepoTasks.dll</_RepoTaskAssembly>
76
</PropertyGroup>

global.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
{
22
"sdk": {
3-
"version": "7.0.100-alpha.1.21474.3"
3+
"version": "7.0.100-alpha.1.21480.20"
44
},
55
"tools": {
6-
"dotnet": "7.0.100-alpha.1.21474.3",
6+
"dotnet": "7.0.100-alpha.1.21480.20",
77
"runtimes": {
88
"dotnet/x64": [
99
"2.1.27",

src/Installers/Rpm/Directory.Build.targets

+1-1
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@
7777
<FpmArgs Include="&quot;$(PackageContentRoot)=$(RpmPackageInstallRoot)&quot;" />
7878
</ItemGroup>
7979

80-
<Exec Command="fpm @(FpmArgs,' ')" />
80+
<Exec Command="scl enable rh-ruby25 'fpm @(FpmArgs,' ')'" />
8181

8282
<Copy SourceFiles="$(TargetPath)"
8383
DestinationFiles="$(CblMarinerTargetPath)"
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,6 @@
11
// Licensed to the .NET Foundation under one or more agreements.
22
// The .NET Foundation licenses this file to you under the MIT license.
33

4-
using System;
5-
using System.Runtime.Versioning;
6-
74
namespace Microsoft.AspNetCore.Server.Kestrel.Core
85
{
96
/// <summary>
@@ -16,9 +13,7 @@ public enum HttpProtocols
1613
Http1 = 0x1,
1714
Http2 = 0x2,
1815
Http1AndHttp2 = Http1 | Http2,
19-
[RequiresPreviewFeatures("Kestrel HTTP/3 support for .NET 6 is in preview.", Url = "https://aka.ms/aspnet/kestrel/http3reqs")]
2016
Http3 = 0x4,
21-
[RequiresPreviewFeatures("Kestrel HTTP/3 support for .NET 6 is in preview.", Url = "https://aka.ms/aspnet/kestrel/http3reqs")]
2217
Http1AndHttp2AndHttp3 = Http1 | Http2 | Http3
2318
}
2419
}

src/Servers/Kestrel/Transport.Quic/src/QuicTransportOptions.cs

-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Transport.Quic
1212
/// <summary>
1313
/// Options for Quic based connections.
1414
/// </summary>
15-
[RequiresPreviewFeatures("Kestrel HTTP/3 support for .NET 6 is in preview.", Url = "https://aka.ms/aspnet/kestrel/http3reqs")]
1615
public class QuicTransportOptions
1716
{
1817
/// <summary>

src/Servers/Kestrel/Transport.Quic/src/WebHostBuilderQuicExtensions.cs

-2
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ namespace Microsoft.AspNetCore.Hosting
1515
/// </summary>
1616
public static class WebHostBuilderQuicExtensions
1717
{
18-
[RequiresPreviewFeatures("Kestrel HTTP/3 support for .NET 6 is in preview.", Url = "https://aka.ms/aspnet/kestrel/http3reqs")]
1918
public static IWebHostBuilder UseQuic(this IWebHostBuilder hostBuilder)
2019
{
2120
if (QuicImplementationProviders.Default.IsSupported)
@@ -29,7 +28,6 @@ public static IWebHostBuilder UseQuic(this IWebHostBuilder hostBuilder)
2928
return hostBuilder;
3029
}
3130

32-
[RequiresPreviewFeatures("Kestrel HTTP/3 support for .NET 6 is in preview.", Url = "https://aka.ms/aspnet/kestrel/http3reqs")]
3331
public static IWebHostBuilder UseQuic(this IWebHostBuilder hostBuilder, Action<QuicTransportOptions> configureOptions)
3432
{
3533
return hostBuilder.UseQuic().ConfigureServices(services =>

0 commit comments

Comments
 (0)