Skip to content

Commit b8eaccd

Browse files
committed
.NET Framework 4.7.2
1 parent 512a7ed commit b8eaccd

File tree

5 files changed

+11
-11
lines changed

5 files changed

+11
-11
lines changed

LibGit2Sharp.Tests/LibGit2Sharp.Tests.csproj

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22

33
<PropertyGroup>
4-
<TargetFrameworks>net461;netcoreapp2.0</TargetFrameworks>
5-
<DefineConstants Condition=" '$(TargetFramework)' == 'net461' ">$(DefineConstants);DESKTOP</DefineConstants>
4+
<TargetFrameworks>netcoreapp2.0;net472</TargetFrameworks>
5+
<DefineConstants Condition=" '$(TargetFramework)' == 'net472' ">$(DefineConstants);DESKTOP</DefineConstants>
66
</PropertyGroup>
77

88
<ItemGroup>
99
<ProjectReference Include="..\LibGit2Sharp\LibGit2Sharp.csproj" />
10-
<ProjectReference Include="..\NativeLibraryLoadTestApp\x86\NativeLibraryLoadTestApp.x86.csproj" Condition="'$(TargetFramework)' == 'net461'" ReferenceOutputAssembly="false" OutputItemType="TestAppExe" />
11-
<ProjectReference Include="..\NativeLibraryLoadTestApp\x64\NativeLibraryLoadTestApp.x64.csproj" Condition="'$(TargetFramework)' == 'net461'" ReferenceOutputAssembly="false" OutputItemType="TestAppExe" />
10+
<ProjectReference Include="..\NativeLibraryLoadTestApp\x86\NativeLibraryLoadTestApp.x86.csproj" Condition="'$(TargetFramework)' == 'net472'" ReferenceOutputAssembly="false" OutputItemType="TestAppExe" />
11+
<ProjectReference Include="..\NativeLibraryLoadTestApp\x64\NativeLibraryLoadTestApp.x64.csproj" Condition="'$(TargetFramework)' == 'net472'" ReferenceOutputAssembly="false" OutputItemType="TestAppExe" />
1212
</ItemGroup>
1313

1414
<ItemGroup>
@@ -22,7 +22,7 @@
2222

2323
<ItemGroup>
2424
<Compile Include="..\LibGit2Sharp\Core\Platform.cs" Link="TestHelpers\Platform.cs" />
25-
<Compile Remove="desktop\**" Condition=" '$(TargetFramework)' != 'net461' " />
25+
<Compile Remove="desktop\**" Condition=" '$(TargetFramework)' != 'net472' " />
2626
</ItemGroup>
2727

2828
<ItemGroup>

LibGit2Sharp/Core/ManagedHttpSmartSubtransport.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -74,9 +74,9 @@ private HttpClientHandler CreateClientHandler()
7474
httpClientHandler.ServerCertificateCustomValidationCallback = CertificateValidationProxy;
7575

7676
#if !NETFRAMEWORK
77-
httpClientHandler.SslProtocols = SslProtocols.Tls12;
77+
httpClientHandler.SslProtocols |= SslProtocols.Tls12;
7878
#else
79-
ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls12;
79+
ServicePointManager.SecurityProtocol |= SecurityProtocolType.Tls12;
8080
#endif
8181

8282
return httpClientHandler;
@@ -235,7 +235,7 @@ public override int Read(Stream dataStream, long length, out long readTotal)
235235
if (responseStream == null)
236236
{
237237
HttpResponseMessage response = GetResponseWithRedirects();
238-
responseStream = (response.Content as StreamContent).ReadAsStreamAsync().Result;
238+
responseStream = response.Content.ReadAsStreamAsync().Result;
239239
}
240240

241241
while (length > 0)

LibGit2Sharp/LibGit2Sharp.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22

33
<PropertyGroup>
4-
<TargetFrameworks>netstandard2.0;net461</TargetFrameworks>
4+
<TargetFrameworks>netcoreapp2.0;net472</TargetFrameworks>
55
<GenerateDocumentationFile>true</GenerateDocumentationFile>
66
<Description>LibGit2Sharp brings all the might and speed of libgit2, a native Git implementation, to the managed world of .Net and Mono.</Description>
77
<Company>LibGit2Sharp contributors</Company>

NativeLibraryLoadTestApp/x64/NativeLibraryLoadTestApp.x64.csproj

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

33
<PropertyGroup>
44
<OutputType>Exe</OutputType>
5-
<TargetFramework>net461</TargetFramework>
5+
<TargetFramework>net472</TargetFramework>
66
<PlatformTarget>x64</PlatformTarget>
77
</PropertyGroup>
88

NativeLibraryLoadTestApp/x86/NativeLibraryLoadTestApp.x86.csproj

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

33
<PropertyGroup>
44
<OutputType>Exe</OutputType>
5-
<TargetFramework>net461</TargetFramework>
5+
<TargetFramework>net472</TargetFramework>
66
<PlatformTarget>x86</PlatformTarget>
77
</PropertyGroup>
88

0 commit comments

Comments
 (0)