-
Notifications
You must be signed in to change notification settings - Fork 993
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bump runtime to dotnet 6 #1471
Bump runtime to dotnet 6 #1471
Changes from 4 commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
#if OS_WINDOWS | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. dotnet 6 introduced api platform check at compile time. |
||
#pragma warning disable CA1416 | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Not sure why this pragma is needed. I didn't experience any problems on my branch with these warnings There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Taking it back. This is within |
||
using System; | ||
using System.Collections; | ||
using System.Collections.Generic; | ||
|
@@ -1327,4 +1328,5 @@ public struct PROFILEINFO | |
public IntPtr hProfile; | ||
} | ||
} | ||
#pragma warning restore CA1416 | ||
#endif |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,13 @@ | ||
<Project Sdk="Microsoft.NET.Sdk"> | ||
|
||
<PropertyGroup> | ||
<TargetFramework>netcoreapp3.1</TargetFramework> | ||
<TargetFramework>net6.0</TargetFramework> | ||
<OutputType>Exe</OutputType> | ||
<RuntimeIdentifiers>win-x64;win-x86;linux-x64;linux-arm64;linux-arm;osx-x64</RuntimeIdentifiers> | ||
<TargetLatestRuntimePatch>true</TargetLatestRuntimePatch> | ||
<NoWarn>NU1701;NU1603</NoWarn> | ||
<Version>$(Version)</Version> | ||
<TieredCompilationQuickJit>true</TieredCompilationQuickJit> | ||
<PublishReadyToRun>true</PublishReadyToRun> | ||
<PublishReadyToRunComposite>true</PublishReadyToRunComposite> | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
|
||
</PropertyGroup> | ||
|
||
<ItemGroup> | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -833,20 +833,20 @@ protected async Task<HttpResponseMessage> SendAsync( | |
{ | ||
if (userState != null) | ||
{ | ||
message.Properties[UserStatePropertyName] = userState; | ||
message.Options.Set(new HttpRequestOptionsKey<object>(UserStatePropertyName), userState); | ||
} | ||
|
||
if (!message.Headers.Contains(Common.Internal.HttpHeaders.VssE2EID)) | ||
{ | ||
message.Headers.Add(Common.Internal.HttpHeaders.VssE2EID, Guid.NewGuid().ToString("D")); | ||
} | ||
VssHttpEventSource.Log.HttpRequestStart(traceActivity, message); | ||
message.Trace(); | ||
message.Properties[VssTraceActivity.PropertyName] = traceActivity; | ||
message.Options.Set(new HttpRequestOptionsKey<VssTraceActivity>(VssTraceActivity.PropertyName), traceActivity); | ||
|
||
// Send the completion option to the inner handler stack so we know when it's safe to buffer | ||
// and when we should avoid buffering. | ||
message.Properties[VssHttpRequestSettings.HttpCompletionOptionPropertyName] = completionOption; | ||
message.Options.Set(new HttpRequestOptionsKey<HttpCompletionOption>(VssHttpRequestSettings.HttpCompletionOptionPropertyName), completionOption); | ||
|
||
//ConfigureAwait(false) enables the continuation to be run outside | ||
//any captured SyncronizationContext (such as ASP.NET's) which keeps things | ||
|
@@ -872,7 +872,7 @@ protected virtual void HandleResponse(HttpResponseMessage response) | |
} | ||
|
||
protected virtual async Task HandleResponseAsync( | ||
HttpResponseMessage response, | ||
HttpResponseMessage response, | ||
CancellationToken cancellationToken) | ||
{ | ||
response.Trace(); | ||
|
@@ -1154,12 +1154,14 @@ private void SetServicePointOptions() | |
{ | ||
if (BaseAddress != null) | ||
{ | ||
#pragma warning disable SYSLIB0014 | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
|
||
ServicePoint servicePoint = ServicePointManager.FindServicePoint(BaseAddress); | ||
servicePoint.UseNagleAlgorithm = false; | ||
servicePoint.SetTcpKeepAlive( | ||
enabled: true, | ||
keepAliveTime: c_keepAliveTime, | ||
keepAliveInterval: c_keepAliveInterval); | ||
#pragma warning restore SYSLIB0014 | ||
} | ||
} | ||
|
||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -138,7 +138,7 @@ public static String ReplaceRouteValues( | |
|
||
if (routeReplacementOptions.HasFlag(RouteReplacementOptions.EscapeUri)) | ||
{ | ||
sbResult = new StringBuilder(Uri.EscapeUriString(sbResult.ToString())); | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
|
||
sbResult = new StringBuilder(Uri.EscapeDataString(sbResult.ToString())); | ||
} | ||
|
||
if (routeReplacementOptions.HasFlag(RouteReplacementOptions.AppendUnusedAsQueryParams) && unusedValues.Count > 0) | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is enabled by default since dotnet 5