adamralph/minver

Packages are redundantly recreated

adamralph opened this issue · 2 comments

Version(s)

1.0.0 to 2.5.0.

To reproduce

Steps to reproduce the behaviour:

  1. Create a class library
  2. Add a package reference to MinVer 2.5.0
  3. Multi-target the class library. E.g. <TargetFrameworks>net5.0;net6.0</TargetFrameworks>
  4. Run dotnet build
  5. Run dotnet pack
  6. Run dotnet pack again

Expected behaviour

The package is created during the first dotnet pack but not during the second dotnet pack.

Actual behaviour

The package is created during both the first dotnet pack and the second dotnet pack.

Workarounds

Ignore the problem and live with the redundant resource usage.

Additional context

Thanks to @xoofx for raising the problem in #675.

fixed in #684

@xoofx I've released this in 3.0.0-rc.2. If all goes well I'll push out 3.0.0 soon.