Skip to content

Commit

Permalink
Fix compilation for .NET Core 2.1 due to 8.0 SDK (#1106)
Browse files Browse the repository at this point in the history
  • Loading branch information
Shane32 committed Jan 12, 2024
1 parent 1fe23c2 commit 7e34ea3
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Directory.Build.targets
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@
<AssemblyOriginatorKeyFile>$(MSBuildThisFileDirectory)graphql.snk</AssemblyOriginatorKeyFile>
</PropertyGroup>

<PropertyGroup Condition="'$(TargetFramework)' == 'netcoreapp2.1'">
<RuntimeFrameworkVersion>2.1.30</RuntimeFrameworkVersion>
</PropertyGroup>

<ItemGroup Condition="'$(IsTestProject)' != 'true'">
<InternalsVisibleTo Condition="'$(SignAssembly)' == 'true'" Include="$(AssemblyName).Tests, $(_FriendAssembliesPublicKey)"/>
<InternalsVisibleTo Condition="'$(SignAssembly)' != 'true'" Include="$(AssemblyName).Tests"/>
Expand Down
4 changes: 4 additions & 0 deletions tests/Samples.Tests/Samples.Tests.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,8 @@
<PackageReference Include="GraphQL.SystemTextJson" Version="$(GraphQLVersion)" />
</ItemGroup>

<ItemGroup>
<Using Include="System.Net.Http"/>
</ItemGroup>

</Project>
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@
<Using Include="Moq" />
<Using Include="Moq.Protected" />
<Using Include="Shouldly" />
<Using Include="System.Net.Http"/>
<Using Include="System.Text" />
<Using Include="System.Threading" />
<Using Include="System.Threading.Tasks" />
Expand Down

0 comments on commit 7e34ea3

Please sign in to comment.