Skip to content

GitVersionTask should not have a package dependency on Microsoft.NETFramework.ReferenceAssemblies #2177

@bording

Description

@bording

As of the 5.2.0 release, the GitVersionTask package has a dependency on Microsoft.NETFramework.ReferenceAssemblies. This is incorrect because this package is for enabling compiling .NET Framework assemblies on Linux. It has no runtime impact.

The reason for the unneeded dependency is because the package reference is not marked with PrivateAssets="All" in your Directory.Build.props file.

Expected Behavior

The GitVersionTask package should have no dependencies.

Actual Behavior

The GitVersionTask package does have a dependency:
image

Possible Fix

Add PrivateAssets="All" to package reference in Directory.Build.props file.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions