Skip to content

Commit 2ceca7f

Browse files
[master] Update dependencies from dotnet/efcore dotnet/runtime (#27845)
[master] Update dependencies from dotnet/efcore dotnet/runtime - Merge branch 'master' into darc-master-9396423e-d0e5-4256-b391-f59a31dec46d - Remove correct `...Version` property - Switch to net5.0. EFCore input dependencies switched to net5.0 - Fix up nullability errors - Fix nullability errors in anti-forgery tests - Temporarily revert target framework changes - Revert "Temporarily revert target framework changes" This reverts commit 3e3ec6a. - Don't target latest runtime for a few projs - Other property - Add to targeting pack version as well - oops - Try another combination - only two - Fix browser API usage - Merge remote-tracking branch 'upstream/master' into darc-master-9396423e-d0e5-4256-b391-f59a31dec46d - React to nullability breaks - Merge branch 'master' into darc-master-9396423e-d0e5-4256-b391-f59a31dec46d - Fixup after main branch merge - Fixup confusing merge - apply suggestions from code review - Don't reference internal transport in repotools - Merge branch 'master' into darc-master-9396423e-d0e5-4256-b391-f59a31dec46d - Test fixes - Disable watcher tests - nullable? - remove enable
1 parent 965eaff commit 2ceca7f

File tree

25 files changed

+306
-291
lines changed

25 files changed

+306
-291
lines changed

eng/Version.Details.xml

Lines changed: 146 additions & 146 deletions
Large diffs are not rendered by default.

eng/Versions.props

Lines changed: 73 additions & 73 deletions
Large diffs are not rendered by default.

eng/targets/ResolveReferences.targets

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -297,6 +297,7 @@
297297
If we have a ref/ assembly from dotnet/runtime for an Extension package, use that when compiling but do not reference its assemblies.
298298
-->
299299
<ItemGroup Condition=" '$(MSBuildProjectName)' != 'Microsoft.AspNetCore.App.Runtime' AND
300+
'$(MSBuildProjectName)' != 'RepoTasks' AND
300301
($(_CompileTfmUsingReferenceAssemblies) OR
301302
('$(IsTargetingPackBuilding)' != 'false' AND '$(MSBuildProjectName)' == 'Microsoft.AspNetCore.App.Ref')) ">
302303
<PackageReference Include="Microsoft.Extensions.Internal.Transport"

eng/tools/RepoTasks/RepoTasks.csproj

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@
88
<CopyLocalLockFileAssemblies>true</CopyLocalLockFileAssemblies>
99
<!-- Need to build this project in source build -->
1010
<ExcludeFromSourceBuild>false</ExcludeFromSourceBuild>
11+
<!-- Temporarily target the previous runtime until https://github.com/dotnet/sdk/pull/14574 is merged. -->
12+
<TargetLatestDotNetRuntime>false</TargetLatestDotNetRuntime>
1113
<!-- No need to track public APIs of these MSBuild tasks. -->
1214
<AddPublicApiAnalyzers>false</AddPublicApiAnalyzers>
1315
</PropertyGroup>

src/Antiforgery/test/DefaultAntiforgeryTest.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1186,7 +1186,7 @@ public void GetAndStoreTokens_DoesNotLogWarning_IfNoExistingCacheHeadersPresent(
11861186
var testSink = new TestSink();
11871187
var loggerFactory = new Mock<ILoggerFactory>();
11881188
loggerFactory
1189-
.Setup(lf => lf.CreateLogger(typeof(DefaultAntiforgery).FullName))
1189+
.Setup(lf => lf.CreateLogger(typeof(DefaultAntiforgery).FullName!))
11901190
.Returns(new TestLogger("test logger", testSink, enabled: true));
11911191
var services = new ServiceCollection();
11921192
services.AddSingleton(loggerFactory.Object);
@@ -1224,7 +1224,7 @@ public void GetAndStoreTokens_LogsWarning_NonNoCacheHeadersAlreadyPresent(string
12241224
var testSink = new TestSink();
12251225
var loggerFactory = new Mock<ILoggerFactory>();
12261226
loggerFactory
1227-
.Setup(lf => lf.CreateLogger(typeof(DefaultAntiforgery).FullName))
1227+
.Setup(lf => lf.CreateLogger(typeof(DefaultAntiforgery).FullName!))
12281228
.Returns(new TestLogger("test logger", testSink, enabled: true));
12291229
var services = new ServiceCollection();
12301230
services.AddSingleton(loggerFactory.Object);
@@ -1258,7 +1258,7 @@ public void GetAndStoreTokens_DoesNotLogsWarning_ForNoCacheHeaders_AlreadyPresen
12581258
var testSink = new TestSink();
12591259
var loggerFactory = new Mock<ILoggerFactory>();
12601260
loggerFactory
1261-
.Setup(lf => lf.CreateLogger(typeof(DefaultAntiforgery).FullName))
1261+
.Setup(lf => lf.CreateLogger(typeof(DefaultAntiforgery).FullName!))
12621262
.Returns(new TestLogger("test logger", testSink, enabled: true));
12631263
var services = new ServiceCollection();
12641264
services.AddSingleton(loggerFactory.Object);

src/Components/WebAssembly/Sdk/src/Microsoft.NET.Sdk.BlazorWebAssembly.csproj

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,9 @@
1515
<!-- No need to track public APIs of these MSBuild tasks. -->
1616
<AddPublicApiAnalyzers>false</AddPublicApiAnalyzers>
1717

18+
<!-- Temporarily target the previous runtime until https://github.com/dotnet/sdk/pull/14574 is merged. -->
19+
<TargetLatestDotNetRuntime>false</TargetLatestDotNetRuntime>
20+
1821
<IsShipping>false</IsShipping>
1922
</PropertyGroup>
2023

src/Components/WebAssembly/WebAssembly/src/Services/WebAssemblyConsoleLogger.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ public bool IsEnabled(LogLevel logLevel)
4848
return logLevel != LogLevel.None;
4949
}
5050

51-
public void Log<TState>(LogLevel logLevel, EventId eventId, TState state, Exception exception, Func<TState, Exception, string> formatter)
51+
public void Log<TState>(LogLevel logLevel, EventId eventId, TState state, Exception? exception, Func<TState, Exception?, string> formatter)
5252
{
5353
if (!IsEnabled(logLevel))
5454
{
@@ -68,7 +68,7 @@ public void Log<TState>(LogLevel logLevel, EventId eventId, TState state, Except
6868
}
6969
}
7070

71-
private void WriteMessage(LogLevel logLevel, string logName, int eventId, string message, Exception exception)
71+
private void WriteMessage(LogLevel logLevel, string logName, int eventId, string message, Exception? exception)
7272
{
7373
lock (_logBuilder)
7474
{
@@ -113,7 +113,7 @@ private void WriteMessage(LogLevel logLevel, string logName, int eventId, string
113113
}
114114
}
115115

116-
private void CreateDefaultLogMessage(StringBuilder logBuilder, LogLevel logLevel, string logName, int eventId, string message, Exception exception)
116+
private void CreateDefaultLogMessage(StringBuilder logBuilder, LogLevel logLevel, string logName, int eventId, string message, Exception? exception)
117117
{
118118
logBuilder.Append(GetLogLevelString(logLevel));
119119
logBuilder.Append(_loglevelPadding);

src/DataProtection/EntityFrameworkCore/src/Microsoft.AspNetCore.DataProtection.EntityFrameworkCore.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
<PropertyGroup>
44
<Description>Support for storing keys using Entity Framework Core.</Description>
5-
<TargetFramework>netstandard2.1</TargetFramework>
5+
<TargetFramework>net5.0</TargetFramework>
66
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
77
<GenerateDocumentationFile>true</GenerateDocumentationFile>
88
<PackageTags>aspnetcore;dataprotection;entityframeworkcore</PackageTags>

src/Framework/test/TestData.cs

Lines changed: 42 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -230,60 +230,60 @@ static TestData()
230230
{ "Microsoft.AspNetCore.StaticFiles", "6.0.0.0" },
231231
{ "Microsoft.AspNetCore.WebSockets", "6.0.0.0" },
232232
{ "Microsoft.AspNetCore.WebUtilities", "6.0.0.0" },
233-
{ "Microsoft.Extensions.Caching.Abstractions", "5.0.0.0" },
234-
{ "Microsoft.Extensions.Caching.Memory", "5.0.0.0" },
235-
{ "Microsoft.Extensions.Configuration", "5.0.0.0" },
236-
{ "Microsoft.Extensions.Configuration.Abstractions", "5.0.0.0" },
237-
{ "Microsoft.Extensions.Configuration.Binder", "5.0.0.0" },
238-
{ "Microsoft.Extensions.Configuration.CommandLine", "5.0.0.0" },
239-
{ "Microsoft.Extensions.Configuration.EnvironmentVariables", "5.0.0.0" },
240-
{ "Microsoft.Extensions.Configuration.FileExtensions", "5.0.0.0" },
241-
{ "Microsoft.Extensions.Configuration.Ini", "5.0.0.0" },
242-
{ "Microsoft.Extensions.Configuration.Json", "5.0.0.0" },
233+
{ "Microsoft.Extensions.Caching.Abstractions", "6.0.0.0" },
234+
{ "Microsoft.Extensions.Caching.Memory", "6.0.0.0" },
235+
{ "Microsoft.Extensions.Configuration", "6.0.0.0" },
236+
{ "Microsoft.Extensions.Configuration.Abstractions", "6.0.0.0" },
237+
{ "Microsoft.Extensions.Configuration.Binder", "6.0.0.0" },
238+
{ "Microsoft.Extensions.Configuration.CommandLine", "6.0.0.0" },
239+
{ "Microsoft.Extensions.Configuration.EnvironmentVariables", "6.0.0.0" },
240+
{ "Microsoft.Extensions.Configuration.FileExtensions", "6.0.0.0" },
241+
{ "Microsoft.Extensions.Configuration.Ini", "6.0.0.0" },
242+
{ "Microsoft.Extensions.Configuration.Json", "6.0.0.0" },
243243
{ "Microsoft.Extensions.Configuration.KeyPerFile", "6.0.0.0" },
244-
{ "Microsoft.Extensions.Configuration.UserSecrets", "5.0.0.0" },
245-
{ "Microsoft.Extensions.Configuration.Xml", "5.0.0.0" },
246-
{ "Microsoft.Extensions.DependencyInjection", "5.0.0.0" },
247-
{ "Microsoft.Extensions.DependencyInjection.Abstractions", "5.0.0.0" },
244+
{ "Microsoft.Extensions.Configuration.UserSecrets", "6.0.0.0" },
245+
{ "Microsoft.Extensions.Configuration.Xml", "6.0.0.0" },
246+
{ "Microsoft.Extensions.DependencyInjection", "6.0.0.0" },
247+
{ "Microsoft.Extensions.DependencyInjection.Abstractions", "6.0.0.0" },
248248
{ "Microsoft.Extensions.Diagnostics.HealthChecks", "6.0.0.0" },
249249
{ "Microsoft.Extensions.Diagnostics.HealthChecks.Abstractions", "6.0.0.0" },
250-
{ "Microsoft.Extensions.FileProviders.Abstractions", "5.0.0.0" },
251-
{ "Microsoft.Extensions.FileProviders.Composite", "5.0.0.0" },
250+
{ "Microsoft.Extensions.FileProviders.Abstractions", "6.0.0.0" },
251+
{ "Microsoft.Extensions.FileProviders.Composite", "6.0.0.0" },
252252
{ "Microsoft.Extensions.FileProviders.Embedded", "6.0.0.0" },
253-
{ "Microsoft.Extensions.FileProviders.Physical", "5.0.0.0" },
254-
{ "Microsoft.Extensions.FileSystemGlobbing", "5.0.0.0" },
255-
{ "Microsoft.Extensions.Hosting", "5.0.0.0" },
256-
{ "Microsoft.Extensions.Hosting.Abstractions", "5.0.0.0" },
257-
{ "Microsoft.Extensions.Http", "5.0.0.0" },
253+
{ "Microsoft.Extensions.FileProviders.Physical", "6.0.0.0" },
254+
{ "Microsoft.Extensions.FileSystemGlobbing", "6.0.0.0" },
255+
{ "Microsoft.Extensions.Hosting", "6.0.0.0" },
256+
{ "Microsoft.Extensions.Hosting.Abstractions", "6.0.0.0" },
257+
{ "Microsoft.Extensions.Http", "6.0.0.0" },
258258
{ "Microsoft.Extensions.Identity.Core", "6.0.0.0" },
259259
{ "Microsoft.Extensions.Identity.Stores", "6.0.0.0" },
260260
{ "Microsoft.Extensions.Localization", "6.0.0.0" },
261261
{ "Microsoft.Extensions.Localization.Abstractions", "6.0.0.0" },
262-
{ "Microsoft.Extensions.Logging", "5.0.0.0" },
263-
{ "Microsoft.Extensions.Logging.Abstractions", "5.0.0.0" },
264-
{ "Microsoft.Extensions.Logging.Configuration", "5.0.0.0" },
265-
{ "Microsoft.Extensions.Logging.Console", "5.0.0.0" },
266-
{ "Microsoft.Extensions.Logging.Debug", "5.0.0.0" },
267-
{ "Microsoft.Extensions.Logging.EventLog", "5.0.0.0" },
268-
{ "Microsoft.Extensions.Logging.EventSource", "5.0.0.0" },
269-
{ "Microsoft.Extensions.Logging.TraceSource", "5.0.0.0" },
262+
{ "Microsoft.Extensions.Logging", "6.0.0.0" },
263+
{ "Microsoft.Extensions.Logging.Abstractions", "6.0.0.0" },
264+
{ "Microsoft.Extensions.Logging.Configuration", "6.0.0.0" },
265+
{ "Microsoft.Extensions.Logging.Console", "6.0.0.0" },
266+
{ "Microsoft.Extensions.Logging.Debug", "6.0.0.0" },
267+
{ "Microsoft.Extensions.Logging.EventLog", "6.0.0.0" },
268+
{ "Microsoft.Extensions.Logging.EventSource", "6.0.0.0" },
269+
{ "Microsoft.Extensions.Logging.TraceSource", "6.0.0.0" },
270270
{ "Microsoft.Extensions.ObjectPool", "6.0.0.0" },
271-
{ "Microsoft.Extensions.Options", "5.0.0.0" },
272-
{ "Microsoft.Extensions.Options.ConfigurationExtensions", "5.0.0.0" },
273-
{ "Microsoft.Extensions.Options.DataAnnotations", "5.0.0.0" },
274-
{ "Microsoft.Extensions.Primitives", "5.0.0.0" },
271+
{ "Microsoft.Extensions.Options", "6.0.0.0" },
272+
{ "Microsoft.Extensions.Options.ConfigurationExtensions", "6.0.0.0" },
273+
{ "Microsoft.Extensions.Options.DataAnnotations", "6.0.0.0" },
274+
{ "Microsoft.Extensions.Primitives", "6.0.0.0" },
275275
{ "Microsoft.Extensions.WebEncoders", "6.0.0.0" },
276276
{ "Microsoft.JSInterop", "6.0.0.0" },
277277
{ "Microsoft.Net.Http.Headers", "6.0.0.0" },
278-
{ "Microsoft.Win32.Registry", "5.0.0.0" },
279-
{ "System.Diagnostics.EventLog", "5.0.0.0" },
280-
{ "System.IO.Pipelines", "5.0.0.0" },
281-
{ "System.Security.AccessControl", "5.0.0.0" },
282-
{ "System.Security.Cryptography.Cng", "5.0.0.0" },
283-
{ "System.Security.Cryptography.Xml", "5.0.0.0" },
284-
{ "System.Security.Permissions", "5.0.0.0" },
285-
{ "System.Security.Principal.Windows", "5.0.0.0" },
286-
{ "System.Windows.Extensions", "5.0.0.0" }
278+
{ "Microsoft.Win32.Registry", "6.0.0.0" },
279+
{ "System.Diagnostics.EventLog", "6.0.0.0" },
280+
{ "System.IO.Pipelines", "6.0.0.0" },
281+
{ "System.Security.AccessControl", "6.0.0.0" },
282+
{ "System.Security.Cryptography.Cng", "6.0.0.0" },
283+
{ "System.Security.Cryptography.Xml", "6.0.0.0" },
284+
{ "System.Security.Permissions", "6.0.0.0" },
285+
{ "System.Security.Principal.Windows", "6.0.0.0" },
286+
{ "System.Windows.Extensions", "6.0.0.0" }
287287
};
288288

289289
if (!VerifyAncmBinary())

src/Hosting/Hosting/src/Internal/HostingRequestFinishedLog.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ namespace Microsoft.AspNetCore.Hosting
1414

1515
internal class HostingRequestFinishedLog : IReadOnlyList<KeyValuePair<string, object?>>
1616
{
17-
internal static readonly Func<object, Exception, string> Callback = (state, exception) => ((HostingRequestFinishedLog)state).ToString();
17+
internal static readonly Func<object, Exception?, string> Callback = (state, exception) => ((HostingRequestFinishedLog)state).ToString();
1818

1919
private readonly HostingApplication.Context _context;
2020

0 commit comments

Comments
 (0)