Skip to content

Commit cd940e2

Browse files
authored
Added support for FakeItEasy 8 (#1415)
* Added support for FakeItEasy 8 * Added .NET Framework v4.6.2 target for AutoFakeItEasy
1 parent 56830e8 commit cd940e2

2 files changed

Lines changed: 43 additions & 2 deletions

File tree

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
<Project Sdk="Microsoft.NET.Sdk">
2+
<Import Project="..\Common.props" />
3+
<Import Project="..\Common.Test.props" />
4+
5+
<PropertyGroup>
6+
<TargetFrameworks>net462;netcoreapp2.1</TargetFrameworks>
7+
<AssemblyTitle>AutoFakeItEasy.FakeItEasy8.UnitTest</AssemblyTitle>
8+
<AssemblyName>AutoFixture.AutoFakeItEasy.FakeItEasy8UnitTest</AssemblyName>
9+
<RootNamespace>AutoFixture.AutoFakeItEasy.UnitTest</RootNamespace>
10+
11+
<DefineConstants>$(DefineConstants);CAN_FAKE_DELEGATES;HAS_A_CALL_TO_SET_SPECIFIER</DefineConstants>
12+
</PropertyGroup>
13+
14+
<ItemGroup>
15+
<PackageReference Include="xunit" Version="2.4.1" />
16+
<PackageReference Include="xunit.runner.visualstudio" Version="2.4.3">
17+
<PrivateAssets>all</PrivateAssets>
18+
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
19+
</PackageReference>
20+
21+
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="16.9.4" />
22+
<PackageReference Include="FakeItEasy" Version="[8.0.0]" />
23+
</ItemGroup>
24+
25+
<ItemGroup>
26+
<Compile Include="..\AutoFakeItEasyUnitTest\**\*.cs" Link="%(RecursiveDir)%(Filename)%(Extension)" />
27+
<Compile Remove="..\AutoFakeItEasyUnitTest\obj\**" />
28+
</ItemGroup>
29+
30+
<ItemGroup>
31+
<ProjectReference Include="..\AutoFakeItEasy\AutoFakeItEasy.csproj" />
32+
<ProjectReference Include="..\AutoFixture\AutoFixture.csproj" />
33+
<ProjectReference Include="..\TestTypeFoundation\TestTypeFoundation.csproj" />
34+
</ItemGroup>
35+
36+
<ItemGroup>
37+
<Service Include="{82a7f48d-3b50-4b1e-b82e-3ada8210c358}" />
38+
</ItemGroup>
39+
40+
</Project>

Src/AutoFakeItEasy/AutoFakeItEasy.csproj

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<Import Project="..\Common.props" />
33

44
<PropertyGroup>
5-
<TargetFrameworks>net452;netstandard1.6;netstandard2.0</TargetFrameworks>
5+
<TargetFrameworks>net452;net462;netstandard1.6;netstandard2.0</TargetFrameworks>
66
<AssemblyTitle>AutoFakeItEasy</AssemblyTitle>
77
<AssemblyName>AutoFixture.AutoFakeItEasy</AssemblyName>
88
<RootNamespace>AutoFixture.AutoFakeItEasy</RootNamespace>
@@ -21,8 +21,9 @@
2121

2222
<ItemGroup>
2323
<PackageReference Include="FakeItEasy" Version="[1.7.4109.1,8.0.0)" Condition=" '$(TargetFramework)'=='net452' " />
24+
<PackageReference Include="FakeItEasy" Version="[1.7.4109.1,9.0.0)" Condition=" '$(TargetFramework)'=='net462' " />
2425
<PackageReference Include="FakeItEasy" Version="[3.0.0,7.0.0)" Condition=" '$(TargetFramework)'=='netstandard1.6' " />
25-
<PackageReference Include="FakeItEasy" Version="[4.9.0,8.0.0)" Condition=" '$(TargetFramework)'=='netstandard2.0' " />
26+
<PackageReference Include="FakeItEasy" Version="[4.9.0,9.0.0)" Condition=" '$(TargetFramework)'=='netstandard2.0' " />
2627
</ItemGroup>
2728

2829
<ItemGroup>

0 commit comments

Comments
 (0)