Skip to content

Commit

Permalink
Cleanup Riok.Mapperly.TestDependency.csproj
Browse files Browse the repository at this point in the history
  • Loading branch information
trejjam committed Jul 26, 2024
1 parent ac567aa commit 6a62492
Showing 1 changed file with 0 additions and 28 deletions.
Original file line number Diff line number Diff line change
@@ -1,31 +1,3 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<!-- setting the TargetFramework directly from the cli via -p:TargetFramework=netA.B does not work using a custom msbuild property seems to work -->
<MapperlyIntegrationTestsTargetFramework Condition="'$(MapperlyIntegrationTestsTargetFramework)' == ''">net8.0</MapperlyIntegrationTestsTargetFramework>
<TargetFramework>$(MapperlyIntegrationTestsTargetFramework)</TargetFramework>

<!-- Not supported in .NET Framework -->
<ImplicitUsings>disable</ImplicitUsings>

<!-- .NET Framework 4.8 defaults to lang version 7.3, but we want to test nullable features. These are available in 8.0.
To also use init-only properties, we upgrade to lang version 9.0, which is works, but is not officially supported. -->
<LangVersion Condition="'$(TargetFramework)' == 'net48'">9.0</LangVersion>
<IsTestProject>false</IsTestProject>
</PropertyGroup>

<!-- diffplex is only compatible with net7.0 up to 2.x-->
<ItemGroup Condition="'$(TargetFramework)' == 'net7.0' OR '$(TargetFramework)' == 'net6.0'">
<PackageReference Update="Verify.DiffPlex" Version="2.2.1" />
</ItemGroup>

<!-- cannot use source generated polyfills since they require language version 11 -->
<ItemGroup Condition="'$(TargetFramework)' == 'net48'">
<PackageReference Include="System.Collections.Immutable" Version="8.0.0" />
<PackageReference Include="Portable.System.DateTimeOnly" Version="8.0.0" />
<PackageReference Include="IsExternalInit" Version="1.0.3">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets>
</PackageReference>
</ItemGroup>

</Project>

0 comments on commit 6a62492

Please sign in to comment.