File tree 9 files changed +17
-19
lines changed
9 files changed +17
-19
lines changed Original file line number Diff line number Diff line change 1
1
# 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
3
3
4
4
# Setup User to match Host User, and give superuser permissions
5
5
ARG USER
@@ -9,6 +9,15 @@ ARG WORKDIR
9
9
10
10
WORKDIR ${WORKDIR}
11
11
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
+
12
21
RUN useradd -m ${USER} --uid ${USER_ID} -g root
13
22
RUN echo '${USER} ALL=(ALL) NOPASSWD:ALL' >> /etc/sudoers
14
23
Original file line number Diff line number Diff line change 2
2
3
3
<PropertyGroup >
4
4
<OutputType >Exe</OutputType >
5
- <TargetFramework >net6 .0</TargetFramework >
5
+ <TargetFramework >net7 .0</TargetFramework >
6
6
<DefineConstants Condition =" '$(InstallPlaywright)' == 'true' " >$(DefineConstants);INSTALLPLAYWRIGHT</DefineConstants >
7
7
</PropertyGroup >
8
8
Original file line number Diff line number Diff line change 1
1
<Project Sdk =" Microsoft.NET.Sdk" >
2
2
<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 >
5
4
<TargetFrameworks Condition =" '$(OS)' == 'Windows_NT'" >$(TargetFrameworks);net472</TargetFrameworks >
6
5
<DefineConstants Condition =" '$(TargetFramework)' == 'net472'" >$(DefineConstants);BUILD_MSI_TASKS</DefineConstants >
7
6
<Optimize >false</Optimize >
20
19
<PackageReference Include =" Microsoft.Extensions.DependencyModel" Version =" $(MicrosoftExtensionsDependencyModelVersion)" />
21
20
</ItemGroup >
22
21
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)'" >
25
23
<PackageReference Include =" Microsoft.Build.Framework" Version =" $(MicrosoftBuildFrameworkVersion)" />
26
24
<PackageReference Include =" Microsoft.Build.Tasks.Core" Version =" $(MicrosoftBuildTaskCoreVersion)" />
27
25
<PackageReference Include =" Microsoft.Build.Utilities.Core" Version =" $(MicrosoftBuildUtilitiesCoreVersion)" />
Original file line number Diff line number Diff line change 1
1
<Project>
2
2
<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>
5
4
<_RepoTaskAssemblyFolder Condition="'$(MSBuildRuntimeType)' != 'core'">net472</_RepoTaskAssemblyFolder>
6
5
<_RepoTaskAssembly>$(ArtifactsBinDir)RepoTasks\Release\$(_RepoTaskAssemblyFolder)\RepoTasks.dll</_RepoTaskAssembly>
7
6
</PropertyGroup>
Original file line number Diff line number Diff line change 1
1
{
2
2
"sdk" : {
3
- "version" : " 7.0.100-alpha.1.21474.3 "
3
+ "version" : " 7.0.100-alpha.1.21480.20 "
4
4
},
5
5
"tools" : {
6
- "dotnet" : " 7.0.100-alpha.1.21474.3 " ,
6
+ "dotnet" : " 7.0.100-alpha.1.21480.20 " ,
7
7
"runtimes" : {
8
8
"dotnet/x64" : [
9
9
" 2.1.27" ,
Original file line number Diff line number Diff line change 77
77
<FpmArgs Include =" " $(PackageContentRoot)=$(RpmPackageInstallRoot)" " />
78
78
</ItemGroup >
79
79
80
- <Exec Command =" fpm @(FpmArgs,' ')" />
80
+ <Exec Command =" scl enable rh-ruby25 ' fpm @(FpmArgs,' ')' " />
81
81
82
82
<Copy SourceFiles =" $(TargetPath)"
83
83
DestinationFiles =" $(CblMarinerTargetPath)"
Original file line number Diff line number Diff line change 1
1
// Licensed to the .NET Foundation under one or more agreements.
2
2
// The .NET Foundation licenses this file to you under the MIT license.
3
3
4
- using System ;
5
- using System . Runtime . Versioning ;
6
-
7
4
namespace Microsoft . AspNetCore . Server . Kestrel . Core
8
5
{
9
6
/// <summary>
@@ -16,9 +13,7 @@ public enum HttpProtocols
16
13
Http1 = 0x1 ,
17
14
Http2 = 0x2 ,
18
15
Http1AndHttp2 = Http1 | Http2 ,
19
- [ RequiresPreviewFeatures ( "Kestrel HTTP/3 support for .NET 6 is in preview." , Url = "https://aka.ms/aspnet/kestrel/http3reqs" ) ]
20
16
Http3 = 0x4 ,
21
- [ RequiresPreviewFeatures ( "Kestrel HTTP/3 support for .NET 6 is in preview." , Url = "https://aka.ms/aspnet/kestrel/http3reqs" ) ]
22
17
Http1AndHttp2AndHttp3 = Http1 | Http2 | Http3
23
18
}
24
19
}
Original file line number Diff line number Diff line change @@ -12,7 +12,6 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Transport.Quic
12
12
/// <summary>
13
13
/// Options for Quic based connections.
14
14
/// </summary>
15
- [ RequiresPreviewFeatures ( "Kestrel HTTP/3 support for .NET 6 is in preview." , Url = "https://aka.ms/aspnet/kestrel/http3reqs" ) ]
16
15
public class QuicTransportOptions
17
16
{
18
17
/// <summary>
Original file line number Diff line number Diff line change @@ -15,7 +15,6 @@ namespace Microsoft.AspNetCore.Hosting
15
15
/// </summary>
16
16
public static class WebHostBuilderQuicExtensions
17
17
{
18
- [ RequiresPreviewFeatures ( "Kestrel HTTP/3 support for .NET 6 is in preview." , Url = "https://aka.ms/aspnet/kestrel/http3reqs" ) ]
19
18
public static IWebHostBuilder UseQuic ( this IWebHostBuilder hostBuilder )
20
19
{
21
20
if ( QuicImplementationProviders . Default . IsSupported )
@@ -29,7 +28,6 @@ public static IWebHostBuilder UseQuic(this IWebHostBuilder hostBuilder)
29
28
return hostBuilder ;
30
29
}
31
30
32
- [ RequiresPreviewFeatures ( "Kestrel HTTP/3 support for .NET 6 is in preview." , Url = "https://aka.ms/aspnet/kestrel/http3reqs" ) ]
33
31
public static IWebHostBuilder UseQuic ( this IWebHostBuilder hostBuilder , Action < QuicTransportOptions > configureOptions )
34
32
{
35
33
return hostBuilder . UseQuic ( ) . ConfigureServices ( services =>
You can’t perform that action at this time.
0 commit comments