Skip to content

Commit

Permalink
Added support for FakeItEasy 8 (#1415)
Browse files Browse the repository at this point in the history
* Added support for FakeItEasy 8

* Added .NET Framework v4.6.2 target for AutoFakeItEasy
  • Loading branch information
aivascu authored Nov 27, 2023
1 parent 56830e8 commit cd940e2
Show file tree
Hide file tree
Showing 2 changed files with 43 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
<Project Sdk="Microsoft.NET.Sdk">
<Import Project="..\Common.props" />
<Import Project="..\Common.Test.props" />

<PropertyGroup>
<TargetFrameworks>net462;netcoreapp2.1</TargetFrameworks>
<AssemblyTitle>AutoFakeItEasy.FakeItEasy8.UnitTest</AssemblyTitle>
<AssemblyName>AutoFixture.AutoFakeItEasy.FakeItEasy8UnitTest</AssemblyName>
<RootNamespace>AutoFixture.AutoFakeItEasy.UnitTest</RootNamespace>

<DefineConstants>$(DefineConstants);CAN_FAKE_DELEGATES;HAS_A_CALL_TO_SET_SPECIFIER</DefineConstants>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="xunit" Version="2.4.1" />
<PackageReference Include="xunit.runner.visualstudio" Version="2.4.3">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>

<PackageReference Include="Microsoft.NET.Test.Sdk" Version="16.9.4" />
<PackageReference Include="FakeItEasy" Version="[8.0.0]" />
</ItemGroup>

<ItemGroup>
<Compile Include="..\AutoFakeItEasyUnitTest\**\*.cs" Link="%(RecursiveDir)%(Filename)%(Extension)" />
<Compile Remove="..\AutoFakeItEasyUnitTest\obj\**" />
</ItemGroup>

<ItemGroup>
<ProjectReference Include="..\AutoFakeItEasy\AutoFakeItEasy.csproj" />
<ProjectReference Include="..\AutoFixture\AutoFixture.csproj" />
<ProjectReference Include="..\TestTypeFoundation\TestTypeFoundation.csproj" />
</ItemGroup>

<ItemGroup>
<Service Include="{82a7f48d-3b50-4b1e-b82e-3ada8210c358}" />
</ItemGroup>

</Project>
5 changes: 3 additions & 2 deletions Src/AutoFakeItEasy/AutoFakeItEasy.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<Import Project="..\Common.props" />

<PropertyGroup>
<TargetFrameworks>net452;netstandard1.6;netstandard2.0</TargetFrameworks>
<TargetFrameworks>net452;net462;netstandard1.6;netstandard2.0</TargetFrameworks>
<AssemblyTitle>AutoFakeItEasy</AssemblyTitle>
<AssemblyName>AutoFixture.AutoFakeItEasy</AssemblyName>
<RootNamespace>AutoFixture.AutoFakeItEasy</RootNamespace>
Expand All @@ -21,8 +21,9 @@

<ItemGroup>
<PackageReference Include="FakeItEasy" Version="[1.7.4109.1,8.0.0)" Condition=" '$(TargetFramework)'=='net452' " />
<PackageReference Include="FakeItEasy" Version="[1.7.4109.1,9.0.0)" Condition=" '$(TargetFramework)'=='net462' " />
<PackageReference Include="FakeItEasy" Version="[3.0.0,7.0.0)" Condition=" '$(TargetFramework)'=='netstandard1.6' " />
<PackageReference Include="FakeItEasy" Version="[4.9.0,8.0.0)" Condition=" '$(TargetFramework)'=='netstandard2.0' " />
<PackageReference Include="FakeItEasy" Version="[4.9.0,9.0.0)" Condition=" '$(TargetFramework)'=='netstandard2.0' " />
</ItemGroup>

<ItemGroup>
Expand Down

0 comments on commit cd940e2

Please sign in to comment.