Skip to content

Commit 2286c46

Browse files
committed
Updated handler .csproj to exclude .NET Standard 2.0 files
1 parent 9134202 commit 2286c46

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

StandardSocketsHttpHandler/StandardSocketsHttpHandler.csproj

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,12 @@
77
<CopyLocalLockFileAssemblies>true</CopyLocalLockFileAssemblies>
88
</PropertyGroup>
99

10+
<ItemGroup Condition=" '$(TargetFramework)' == 'netstandard2.1' ">
11+
<Compile Remove="HashCode.cs" />
12+
<Compile Remove="Net\Security\SslApplicationProtocol.cs" />
13+
<Compile Remove="Net\Security\SslClientAuthenticationOptions.cs" />
14+
</ItemGroup>
15+
1016
<ItemGroup>
1117
<Compile Update="Net\Http\SR.Designer.cs">
1218
<DesignTime>True</DesignTime>
@@ -23,4 +29,20 @@
2329
</EmbeddedResource>
2430
</ItemGroup>
2531

32+
<ItemGroup Condition=" '$(TargetFramework)' == 'netstandard2.0' ">
33+
<Compile Update="Net\Security\SR.Designer.cs">
34+
<DesignTime>True</DesignTime>
35+
<AutoGen>True</AutoGen>
36+
<DependentUpon>SR.resx</DependentUpon>
37+
</Compile>
38+
</ItemGroup>
39+
40+
<ItemGroup Condition=" '$(TargetFramework)' == 'netstandard2.0' ">
41+
<EmbeddedResource Update="Net\Security\SR.resx">
42+
<Generator>PublicResXFileCodeGenerator</Generator>
43+
<LastGenOutput>SR.Designer.cs</LastGenOutput>
44+
<CustomToolNamespace>System.Net.Security</CustomToolNamespace>
45+
</EmbeddedResource>
46+
</ItemGroup>
47+
2648
</Project>

0 commit comments

Comments
 (0)