Skip to content

Commit bb243bc

Browse files
committed
(build) use different package versions for .net core 3.1
1 parent 8bb59e5 commit bb243bc

File tree

2 files changed

+13
-4
lines changed

2 files changed

+13
-4
lines changed

build/build/Tasks/Test/UnitTest.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ private static void TestProjectForTarget(BuildContext context, FilePath project,
8989

9090
if (string.Equals(framework, Constants.CoreFxVersion31))
9191
{
92-
settings.Filter = $"TestCategory!={Constants.NoNetCoreApp31}";
92+
// settings.Filter = $"TestCategory!={Constants.NoNetCoreApp31}";
9393
}
9494

9595
if (string.Equals(framework, Constants.FullFxVersion48))

src/GitVersion.MsBuild.Tests/GitVersion.MsBuild.Tests.csproj

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,20 @@
66
<IsTestProject>true</IsTestProject>
77
</PropertyGroup>
88

9-
<ItemGroup>
9+
<ItemGroup Condition=" '$(TargetFramework)' == 'netcoreapp3.1' ">
10+
<PackageReference Include="Buildalyzer" Version="3.2.2" />
11+
<PackageReference Include="MSBuild.ProjectCreation" Version="6.3.3" />
12+
<PackageReference Include="Microsoft.Build" Version="16.9.0" />
13+
</ItemGroup>
14+
15+
<ItemGroup Condition=" '$(TargetFramework)' != 'netcoreapp3.1' ">
1016
<PackageReference Include="Buildalyzer" Version="3.2.3" />
11-
<PackageReference Include="LibGit2Sharp" Version="$(PackageVersion_LibGit2Sharp)" />
12-
<PackageReference Include="Microsoft.Build" Version="$(PackageVersion_MsBuild)" />
1317
<PackageReference Include="MSBuild.ProjectCreation" Version="6.3.3" />
18+
<PackageReference Include="Microsoft.Build" Version="16.11.0" />
19+
</ItemGroup>
20+
21+
<ItemGroup>
22+
<PackageReference Include="LibGit2Sharp" Version="$(PackageVersion_LibGit2Sharp)" />
1423
</ItemGroup>
1524

1625
<ItemGroup>

0 commit comments

Comments
 (0)