diff --git a/Directory.Build.props b/Directory.Build.props index eba7124b27..731ac74f32 100644 --- a/Directory.Build.props +++ b/Directory.Build.props @@ -30,7 +30,7 @@ MicrosoftNuGet true latest - net461 + net472 15.0 @@ -76,4 +76,4 @@ - \ No newline at end of file + diff --git a/build/repo.props b/build/repo.props index 55b6a1c32b..e74793176a 100644 --- a/build/repo.props +++ b/build/repo.props @@ -1,4 +1,5 @@ + @@ -26,4 +27,4 @@ - \ No newline at end of file + diff --git a/build/repo.targets b/build/repo.targets index a93ed87192..56fe00d55a 100644 --- a/build/repo.targets +++ b/build/repo.targets @@ -90,6 +90,6 @@ - + - \ No newline at end of file + diff --git a/src/Microsoft.AspNet.SignalR.Core/TaskAsyncHelper.cs b/src/Microsoft.AspNet.SignalR.Core/TaskAsyncHelper.cs index 250eb037d6..7d1db0db57 100644 --- a/src/Microsoft.AspNet.SignalR.Core/TaskAsyncHelper.cs +++ b/src/Microsoft.AspNet.SignalR.Core/TaskAsyncHelper.cs @@ -1039,7 +1039,7 @@ internal static Task ContinueWithPreservedCulture(this Task task, Action c #if NETSTANDARD1_3 // The Thread class is not available on .NET Standard 1.3 return task.ContinueWith(continuationAction, continuationOptions); -#elif NETSTANDARD2_0 || NET40 || NET45 || NET461 +#elif NETSTANDARD2_0 || NET40 || NET45 || NET461 || NET472 var preservedCulture = SaveCulture(); return task.ContinueWith(t => RunWithPreservedCulture(preservedCulture, continuationAction, t), continuationOptions); #else @@ -1052,7 +1052,7 @@ internal static Task ContinueWithPreservedCulture(this Task task, Action RunWithPreservedCulture(preservedCulture, continuationAction, t), continuationOptions); #else @@ -1066,7 +1066,7 @@ internal static Task ContinueWithPreservedCulture(this Task task, Action RunWithPreservedCulture(preservedCulture, continuationAction, t), continuationOptions); #else @@ -1366,7 +1366,7 @@ public static void Dispatch(Action action) { action(); }, state: null); -#elif NET45 || NETSTANDARD1_3 || NETSTANDARD2_0 || NET461 // Stress uses this component and builds on net461 +#elif NET45 || NETSTANDARD1_3 || NETSTANDARD2_0 || NET461 || NET472 // Stress uses this component and builds on net461 Task.Run(() => { action(); diff --git a/test/Microsoft.AspNet.SignalR.Client.JS.Tests/Microsoft.AspNet.SignalR.Client.JS.Tests.csproj b/test/Microsoft.AspNet.SignalR.Client.JS.Tests/Microsoft.AspNet.SignalR.Client.JS.Tests.csproj index 221a0b7567..722f055969 100644 --- a/test/Microsoft.AspNet.SignalR.Client.JS.Tests/Microsoft.AspNet.SignalR.Client.JS.Tests.csproj +++ b/test/Microsoft.AspNet.SignalR.Client.JS.Tests/Microsoft.AspNet.SignalR.Client.JS.Tests.csproj @@ -2,7 +2,7 @@ Exe - net461 + $(DefaultTestFrameworks)