dotnet / dotnet/msbuild

Pack with multiple TargetFrameworks does not use Build Packages correctly

Open
#4,533 4 comments 0 reactions 0 assignees View on GitHub
triaged
Dominant language
C#
Stars
5.5k
Forks
1.5k
Avg merge
1d 13h
Merged PRs (30d)
133

Description

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
```xml
netcoreapp3.0
```
The build package is not loaded

if I use
```xml
netcoreapp3.0
```

instead, everything works as expected.

**Edit:**
The build package targets netstandard1.1

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.