Skip to content

Commit 6516459

Browse files
committed
fixes #1458 - msbuild null ref issue
1 parent 570d7ba commit 6516459

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

src/GitVersionTask/GitVersionTask.csproj

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,8 +79,9 @@
7979
<PackageReference Include="YamlDotNet" Version="$(PackageVersion_YamlDotNet)">
8080
<PrivateAssets>All</PrivateAssets>
8181
</PackageReference>
82-
<PackageReference Include="Microsoft.Build.Utilities.Core" Version="15.1.548" />
83-
<PackageReference Include="Microsoft.Build.Framework" Version="15.1.548" />
82+
<!--See https://github.com/Microsoft/msbuild/issues/3671 for reason for the ExcludeAssets against msbuild packagerefernces -->
83+
<PackageReference Include="Microsoft.Build.Utilities.Core" Version="15.1.548" ExcludeAssets="runtime" />
84+
<PackageReference Include="Microsoft.Build.Framework" Version="15.1.548" ExcludeAssets="runtime" />
8485
<PackageReference Include="UtilPack.NuGet.MSBuild" Version="$(PackageVersion_UtilPackNuGetMSBuild)" />
8586
</ItemGroup>
8687

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<Project>
22
<PropertyGroup>
3-
<PackageVersion_UtilPackNuGetMSBuild>2.6.0</PackageVersion_UtilPackNuGetMSBuild>
3+
<PackageVersion_UtilPackNuGetMSBuild>2.7.0</PackageVersion_UtilPackNuGetMSBuild>
44
</PropertyGroup>
55
</Project>
66

0 commit comments

Comments
 (0)