diff --git a/build/dependencies.props b/build/dependencies.props
index a1b8983e16..f7a5e471b3 100644
--- a/build/dependencies.props
+++ b/build/dependencies.props
@@ -94,14 +94,6 @@
2.2.0
2.2.0
-
- 2.2.0
- 2.2.0
- 2.2.0
- 2.2.0
- 2.2.0
- 2.2.0
-
2.2.0
2.2.0
@@ -167,10 +159,10 @@
5.3.0
5.3.0
2.1.1
- 1.0.12
- 1.1.9
+ 1.0.15
+ 1.1.12
2.0.9
- 2.1.3
+ 2.1.10
$(MicrosoftNETCoreApp21PackageVersion)
1.0.1
1.0.0-alpha-5
diff --git a/build/submodules.props b/build/submodules.props
index e9891e2224..4370c412c7 100644
--- a/build/submodules.props
+++ b/build/submodules.props
@@ -36,7 +36,7 @@
-
+
diff --git a/eng/PatchConfig.props b/eng/PatchConfig.props
index 250b506c12..c911a11dda 100644
--- a/eng/PatchConfig.props
+++ b/eng/PatchConfig.props
@@ -54,6 +54,8 @@ Later on, this will be checked using this condition:
Microsoft.AspNetCore.AspNetCoreModule;
Microsoft.AspNetCore.AspNetCoreModuleV2;
java:signalr;
+ Microsoft.AspNetCore.Mvc.Core;
+ Microsoft.AspNetCore.Mvc.RazorPages;
diff --git a/eng/scripts/CodeCheck.ps1 b/eng/scripts/CodeCheck.ps1
index 1146dabd3f..58deb32631 100644
--- a/eng/scripts/CodeCheck.ps1
+++ b/eng/scripts/CodeCheck.ps1
@@ -36,7 +36,7 @@ try {
$slnDir = Split-Path -Parent $_
$sln = $_
& dotnet sln $_ list `
- | ? { $_ -ne 'Project(s)' -and $_ -ne '----------' } `
+ | ? { $_ -like '*proj' } `
| % {
$proj = Join-Path $slnDir $_
if (-not (Test-Path $proj)) {
diff --git a/src/Framework/Framework.UnitTests/SharedFxTests.cs b/src/Framework/Framework.UnitTests/SharedFxTests.cs
index a541302b83..470a823af8 100644
--- a/src/Framework/Framework.UnitTests/SharedFxTests.cs
+++ b/src/Framework/Framework.UnitTests/SharedFxTests.cs
@@ -63,7 +63,7 @@ namespace Microsoft.AspNetCore
var localAssemblyVersion = AssemblyName.GetAssemblyName(file).Version;
var dllName = Path.GetFileName(file);
Assert.Contains(dllName, nugetAssemblyVersions.Keys);
- Assert.InRange(localAssemblyVersion.CompareTo(nugetAssemblyVersions[dllName]), 0, int.MaxValue);
+ Assert.True(localAssemblyVersion >= nugetAssemblyVersions[dllName], $"Expected {dllName} ({localAssemblyVersion}) to have assembly version >= {nugetAssemblyVersions[dllName]}");
}
catch (BadImageFormatException) { }
diff --git a/src/Mvc/Mvc.Core/src/Internal/MvcCoreLoggerExtensions.cs b/src/Mvc/Mvc.Core/src/Internal/MvcCoreLoggerExtensions.cs
index b4a223b8b2..eaf4185cec 100644
--- a/src/Mvc/Mvc.Core/src/Internal/MvcCoreLoggerExtensions.cs
+++ b/src/Mvc/Mvc.Core/src/Internal/MvcCoreLoggerExtensions.cs
@@ -32,6 +32,7 @@ namespace Microsoft.AspNetCore.Mvc.Internal
private static readonly double TimestampToTicks = TimeSpan.TicksPerSecond / (double)Stopwatch.Frequency;
private static readonly Action _actionExecuting;
+ private static readonly Action _controllerActionExecuting;
private static readonly Action _actionExecuted;
private static readonly Action _pageExecuting;
@@ -42,7 +43,7 @@ namespace Microsoft.AspNetCore.Mvc.Internal
private static readonly Action _contentResultExecuting;
private static readonly Action _actionMethodExecuting;
- private static readonly Action _actionMethodExecutingWithArguments;
+ private static readonly Action _actionMethodExecutingWithArguments;
private static readonly Action _actionMethodExecuted;
private static readonly Action _logFilterExecutionPlan;
@@ -160,6 +161,11 @@ namespace Microsoft.AspNetCore.Mvc.Internal
1,
"Route matched with {RouteData}. Executing action {ActionName}");
+ _controllerActionExecuting = LoggerMessage.Define(
+ LogLevel.Information,
+ 3,
+ "Route matched with {RouteData}. Executing controller action with signature {MethodInfo} on controller {Controller} ({AssemblyName}).");
+
_actionExecuted = LoggerMessage.Define(
LogLevel.Information,
2,
@@ -190,10 +196,10 @@ namespace Microsoft.AspNetCore.Mvc.Internal
1,
"Executing action method {ActionName} - Validation state: {ValidationState}");
- _actionMethodExecutingWithArguments = LoggerMessage.Define(
- LogLevel.Information,
- 1,
- "Executing action method {ActionName} with arguments ({Arguments}) - Validation state: {ValidationState}");
+ _actionMethodExecutingWithArguments = LoggerMessage.Define(
+ LogLevel.Trace,
+ 3,
+ "Executing action method {ActionName} with arguments ({Arguments})");
_actionMethodExecuted = LoggerMessage.Define(
LogLevel.Information,
@@ -714,13 +720,29 @@ namespace Microsoft.AspNetCore.Mvc.Internal
stringBuilder.Append($"{routeKeys[i]} = \"{routeValues[i]}\", ");
}
}
+
if (action.RouteValues.TryGetValue("page", out var page) && page != null)
{
_pageExecuting(logger, stringBuilder.ToString(), action.DisplayName, null);
}
else
{
- _actionExecuting(logger, stringBuilder.ToString(), action.DisplayName, null);
+ if (action is ControllerActionDescriptor controllerActionDescriptor)
+ {
+ var controllerType = controllerActionDescriptor.ControllerTypeInfo.AsType();
+ var controllerName = TypeNameHelper.GetTypeDisplayName(controllerType);
+ _controllerActionExecuting(
+ logger,
+ stringBuilder.ToString(),
+ controllerActionDescriptor.MethodInfo,
+ controllerName,
+ controllerType.Assembly.GetName().Name,
+ null);
+ }
+ else
+ {
+ _actionExecuting(logger, stringBuilder.ToString(), action.DisplayName, null);
+ }
}
}
}
@@ -859,21 +881,17 @@ namespace Microsoft.AspNetCore.Mvc.Internal
var actionName = context.ActionDescriptor.DisplayName;
var validationState = context.ModelState.ValidationState;
+ _actionMethodExecuting(logger, actionName, validationState, null);
- string[] convertedArguments;
- if (arguments == null)
+ if (arguments != null && logger.IsEnabled(LogLevel.Trace))
{
- _actionMethodExecuting(logger, actionName, validationState, null);
- }
- else
- {
- convertedArguments = new string[arguments.Length];
+ var convertedArguments = new string[arguments.Length];
for (var i = 0; i < arguments.Length; i++)
{
convertedArguments[i] = Convert.ToString(arguments[i]);
}
- _actionMethodExecutingWithArguments(logger, actionName, convertedArguments, validationState, null);
+ _actionMethodExecutingWithArguments(logger, actionName, convertedArguments, null);
}
}
}
diff --git a/src/Mvc/Mvc.Razor/src/Microsoft.AspNetCore.Mvc.Razor.csproj b/src/Mvc/Mvc.Razor/src/Microsoft.AspNetCore.Mvc.Razor.csproj
index 95d2855007..1ce9c60054 100644
--- a/src/Mvc/Mvc.Razor/src/Microsoft.AspNetCore.Mvc.Razor.csproj
+++ b/src/Mvc/Mvc.Razor/src/Microsoft.AspNetCore.Mvc.Razor.csproj
@@ -12,10 +12,9 @@
-
-
-
-
+
+
+
@@ -27,24 +26,11 @@
-
-
diff --git a/src/Mvc/Mvc.RazorPages/src/Internal/PageLoggerExtensions.cs b/src/Mvc/Mvc.RazorPages/src/Internal/PageLoggerExtensions.cs
index 1ff89f5512..ded77aa09b 100644
--- a/src/Mvc/Mvc.RazorPages/src/Internal/PageLoggerExtensions.cs
+++ b/src/Mvc/Mvc.RazorPages/src/Internal/PageLoggerExtensions.cs
@@ -15,8 +15,9 @@ namespace Microsoft.AspNetCore.Mvc.RazorPages.Internal
{
public const string PageFilter = "Page Filter";
- private static readonly Action _handlerMethodExecuting;
+ private static readonly Action _handlerMethodExecuting;
private static readonly Action _implicitHandlerMethodExecuting;
+ private static readonly Action _handlerMethodExecutingWithArguments;
private static readonly Action _handlerMethodExecuted;
private static readonly Action _implicitHandlerMethodExecuted;
private static readonly Action _pageFilterShortCircuit;
@@ -30,10 +31,15 @@ namespace Microsoft.AspNetCore.Mvc.RazorPages.Internal
{
// These numbers start at 101 intentionally to avoid conflict with the IDs used by ResourceInvoker.
- _handlerMethodExecuting = LoggerMessage.Define(
+ _handlerMethodExecuting = LoggerMessage.Define(
LogLevel.Information,
101,
- "Executing handler method {HandlerName} with arguments ({Arguments}) - ModelState is {ValidationState}");
+ "Executing handler method {HandlerName} - ModelState is {ValidationState}");
+
+ _handlerMethodExecutingWithArguments = LoggerMessage.Define(
+ LogLevel.Trace,
+ 103,
+ "Executing handler method {HandlerName} with arguments ({Arguments})");
_handlerMethodExecuted = LoggerMessage.Define(
LogLevel.Information,
@@ -87,23 +93,19 @@ namespace Microsoft.AspNetCore.Mvc.RazorPages.Internal
{
var handlerName = handler.MethodInfo.DeclaringType.FullName + "." + handler.MethodInfo.Name;
- string[] convertedArguments;
- if (arguments == null)
+ var validationState = context.ModelState.ValidationState;
+ _handlerMethodExecuting(logger, handlerName, validationState, null);
+
+ if (arguments != null && logger.IsEnabled(LogLevel.Trace))
{
- convertedArguments = null;
- }
- else
- {
- convertedArguments = new string[arguments.Length];
+ var convertedArguments = new string[arguments.Length];
for (var i = 0; i < arguments.Length; i++)
{
convertedArguments[i] = Convert.ToString(arguments[i]);
}
+
+ _handlerMethodExecutingWithArguments(logger, handlerName, convertedArguments, null);
}
-
- var validationState = context.ModelState.ValidationState;
-
- _handlerMethodExecuting(logger, handlerName, convertedArguments, validationState, null);
}
}
diff --git a/src/Mvc/Mvc.TagHelpers/src/Microsoft.AspNetCore.Mvc.TagHelpers.csproj b/src/Mvc/Mvc.TagHelpers/src/Microsoft.AspNetCore.Mvc.TagHelpers.csproj
index 0d120b8905..802b35ddcb 100644
--- a/src/Mvc/Mvc.TagHelpers/src/Microsoft.AspNetCore.Mvc.TagHelpers.csproj
+++ b/src/Mvc/Mvc.TagHelpers/src/Microsoft.AspNetCore.Mvc.TagHelpers.csproj
@@ -15,7 +15,7 @@
-
+
diff --git a/src/Mvc/Mvc/src/Microsoft.AspNetCore.Mvc.csproj b/src/Mvc/Mvc/src/Microsoft.AspNetCore.Mvc.csproj
index 56586c73e0..624f0ee892 100644
--- a/src/Mvc/Mvc/src/Microsoft.AspNetCore.Mvc.csproj
+++ b/src/Mvc/Mvc/src/Microsoft.AspNetCore.Mvc.csproj
@@ -20,12 +20,8 @@
-
- None
-
-
- None
-
+
+
diff --git a/src/Mvc/benchmarkapps/BasicViews/BasicViews.csproj b/src/Mvc/benchmarkapps/BasicViews/BasicViews.csproj
index 3ce5a742dc..4cc75b061f 100644
--- a/src/Mvc/benchmarkapps/BasicViews/BasicViews.csproj
+++ b/src/Mvc/benchmarkapps/BasicViews/BasicViews.csproj
@@ -28,7 +28,7 @@
-
+
diff --git a/src/Mvc/benchmarkapps/RazorRendering/RazorRendering.csproj b/src/Mvc/benchmarkapps/RazorRendering/RazorRendering.csproj
index 998cf3bd61..6333c22727 100644
--- a/src/Mvc/benchmarkapps/RazorRendering/RazorRendering.csproj
+++ b/src/Mvc/benchmarkapps/RazorRendering/RazorRendering.csproj
@@ -8,8 +8,7 @@
-
-
+
diff --git a/src/Mvc/samples/MvcSandbox/MvcSandbox.csproj b/src/Mvc/samples/MvcSandbox/MvcSandbox.csproj
index 9d0e2b9ceb..7c06df07cc 100644
--- a/src/Mvc/samples/MvcSandbox/MvcSandbox.csproj
+++ b/src/Mvc/samples/MvcSandbox/MvcSandbox.csproj
@@ -12,8 +12,6 @@
-
-
diff --git a/src/Mvc/shared/Mvc.Views.TestCommon/Microsoft.AspNetCore.Mvc.Views.TestCommon.csproj b/src/Mvc/shared/Mvc.Views.TestCommon/Microsoft.AspNetCore.Mvc.Views.TestCommon.csproj
index 5dbe2d12b7..3b0d42b958 100644
--- a/src/Mvc/shared/Mvc.Views.TestCommon/Microsoft.AspNetCore.Mvc.Views.TestCommon.csproj
+++ b/src/Mvc/shared/Mvc.Views.TestCommon/Microsoft.AspNetCore.Mvc.Views.TestCommon.csproj
@@ -8,9 +8,8 @@
-
-
-
+
+
diff --git a/src/Mvc/test/Mvc.FunctionalTests/Microsoft.AspNetCore.Mvc.FunctionalTests.csproj b/src/Mvc/test/Mvc.FunctionalTests/Microsoft.AspNetCore.Mvc.FunctionalTests.csproj
index a8b3348f8a..bc75810e55 100644
--- a/src/Mvc/test/Mvc.FunctionalTests/Microsoft.AspNetCore.Mvc.FunctionalTests.csproj
+++ b/src/Mvc/test/Mvc.FunctionalTests/Microsoft.AspNetCore.Mvc.FunctionalTests.csproj
@@ -25,6 +25,8 @@
+
+
diff --git a/src/Mvc/test/WebSites/ApplicationModelWebSite/ApplicationModelWebSite.csproj b/src/Mvc/test/WebSites/ApplicationModelWebSite/ApplicationModelWebSite.csproj
index 4036832380..9fb496e680 100644
--- a/src/Mvc/test/WebSites/ApplicationModelWebSite/ApplicationModelWebSite.csproj
+++ b/src/Mvc/test/WebSites/ApplicationModelWebSite/ApplicationModelWebSite.csproj
@@ -7,10 +7,9 @@
-
-
+
diff --git a/src/Mvc/test/WebSites/BasicWebSite/BasicWebSite.csproj b/src/Mvc/test/WebSites/BasicWebSite/BasicWebSite.csproj
index e0813b00db..dc9cb4eb48 100644
--- a/src/Mvc/test/WebSites/BasicWebSite/BasicWebSite.csproj
+++ b/src/Mvc/test/WebSites/BasicWebSite/BasicWebSite.csproj
@@ -29,6 +29,6 @@
-
+
diff --git a/src/Mvc/test/WebSites/ControllersFromServicesClassLibrary/ControllersFromServicesClassLibrary.csproj b/src/Mvc/test/WebSites/ControllersFromServicesClassLibrary/ControllersFromServicesClassLibrary.csproj
index 7cdef8f84b..2459bdf2c5 100644
--- a/src/Mvc/test/WebSites/ControllersFromServicesClassLibrary/ControllersFromServicesClassLibrary.csproj
+++ b/src/Mvc/test/WebSites/ControllersFromServicesClassLibrary/ControllersFromServicesClassLibrary.csproj
@@ -8,5 +8,7 @@
+
+
diff --git a/src/Mvc/test/WebSites/ControllersFromServicesWebSite/ControllersFromServicesWebSite.csproj b/src/Mvc/test/WebSites/ControllersFromServicesWebSite/ControllersFromServicesWebSite.csproj
index f081e46035..9ceee192ae 100644
--- a/src/Mvc/test/WebSites/ControllersFromServicesWebSite/ControllersFromServicesWebSite.csproj
+++ b/src/Mvc/test/WebSites/ControllersFromServicesWebSite/ControllersFromServicesWebSite.csproj
@@ -7,13 +7,13 @@
-
+
+
-
-
+
diff --git a/src/Mvc/test/WebSites/HtmlGenerationWebSite/HtmlGenerationWebSite.csproj b/src/Mvc/test/WebSites/HtmlGenerationWebSite/HtmlGenerationWebSite.csproj
index 122fa1997b..9fb496e680 100644
--- a/src/Mvc/test/WebSites/HtmlGenerationWebSite/HtmlGenerationWebSite.csproj
+++ b/src/Mvc/test/WebSites/HtmlGenerationWebSite/HtmlGenerationWebSite.csproj
@@ -10,7 +10,6 @@
-
-
+
diff --git a/src/Mvc/test/WebSites/RazorBuildWebSite/RazorBuildWebSite.csproj b/src/Mvc/test/WebSites/RazorBuildWebSite/RazorBuildWebSite.csproj
index c0c2643eae..bff063afbf 100644
--- a/src/Mvc/test/WebSites/RazorBuildWebSite/RazorBuildWebSite.csproj
+++ b/src/Mvc/test/WebSites/RazorBuildWebSite/RazorBuildWebSite.csproj
@@ -19,14 +19,7 @@
-
-
-
-
-
+
diff --git a/src/Mvc/test/WebSites/RazorPagesWebSite/RazorPagesWebSite.csproj b/src/Mvc/test/WebSites/RazorPagesWebSite/RazorPagesWebSite.csproj
index a73abb4f39..6a9ee00808 100644
--- a/src/Mvc/test/WebSites/RazorPagesWebSite/RazorPagesWebSite.csproj
+++ b/src/Mvc/test/WebSites/RazorPagesWebSite/RazorPagesWebSite.csproj
@@ -13,7 +13,6 @@
-
-
+
diff --git a/src/Mvc/test/WebSites/RazorWebSite/RazorWebSite.csproj b/src/Mvc/test/WebSites/RazorWebSite/RazorWebSite.csproj
index acb90b34b0..f5b73758b1 100644
--- a/src/Mvc/test/WebSites/RazorWebSite/RazorWebSite.csproj
+++ b/src/Mvc/test/WebSites/RazorWebSite/RazorWebSite.csproj
@@ -12,13 +12,13 @@
-
+
+
-
-
+
diff --git a/src/Mvc/test/WebSites/RoutingWebSite/RoutingWebSite.csproj b/src/Mvc/test/WebSites/RoutingWebSite/RoutingWebSite.csproj
index 1f4f19e625..42a328195a 100644
--- a/src/Mvc/test/WebSites/RoutingWebSite/RoutingWebSite.csproj
+++ b/src/Mvc/test/WebSites/RoutingWebSite/RoutingWebSite.csproj
@@ -14,7 +14,6 @@
-
-
+
diff --git a/src/Mvc/test/WebSites/SecurityWebSite/SecurityWebSite.csproj b/src/Mvc/test/WebSites/SecurityWebSite/SecurityWebSite.csproj
index fd66857b2b..d478037996 100644
--- a/src/Mvc/test/WebSites/SecurityWebSite/SecurityWebSite.csproj
+++ b/src/Mvc/test/WebSites/SecurityWebSite/SecurityWebSite.csproj
@@ -12,6 +12,6 @@
-
+
diff --git a/src/Mvc/test/WebSites/TagHelpersWebSite/TagHelpersWebSite.csproj b/src/Mvc/test/WebSites/TagHelpersWebSite/TagHelpersWebSite.csproj
index b837ded498..ca2a6cdfac 100644
--- a/src/Mvc/test/WebSites/TagHelpersWebSite/TagHelpersWebSite.csproj
+++ b/src/Mvc/test/WebSites/TagHelpersWebSite/TagHelpersWebSite.csproj
@@ -8,10 +8,9 @@
-
-
+
diff --git a/src/PackageArchive/Archive.CiServer.Patch.Compat/ArchiveBaseline.2.1.10.txt b/src/PackageArchive/Archive.CiServer.Patch.Compat/ArchiveBaseline.2.1.10.txt
new file mode 100644
index 0000000000..e69de29bb2
diff --git a/src/PackageArchive/Archive.CiServer.Patch/ArchiveBaseline.2.1.10.txt b/src/PackageArchive/Archive.CiServer.Patch/ArchiveBaseline.2.1.10.txt
new file mode 100644
index 0000000000..e69de29bb2