Skip to content

Pack with multiple TargetFrameworks does not use Build Packages correctly #4533

Description

@TFTomSun

I have created a build package that sets the Version property based on the current time. When I pack a project with TargetFramework .netcoreapp3.0, which reference this build package, the package version is applied correctly. When I pack the project with multiple TargetFrameworks (e.g. netcoreapp3.0;netcoreapp2.2;netcoreapp2.1) the build package is not loaded. The version of the package becomes 1.0.0 instead.

Edit:
Even if I use

<TargetFrameworks>netcoreapp3.0</TargetFrameworks>

The build package is not loaded

if I use

<TargetFramework>netcoreapp3.0</TargetFramework>

instead, everything works as expected.

Edit:
The build package targets netstandard1.1

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions