You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Enables installing and running `CycloneDX` on runtimes/SDKs newer than those
that it targets when published. For instance, allows v4.0.0 to run with
.NET SDK 9.0 installed.
Fixes#908
Signed-off-by: nil4 <nil4@users.noreply.github.com>
CycloneDX
cannot be installed as a global tool on a .NET SDK version newer than the tool targeted when it was published.For instance, v4.0.0, which targets
net8.0
, does not install on .NET SDK 9.0:The error message is in fact misleading, the root cause is that
CycloneDX
hasn't been configured to run on newer .NET runtimes.This can be done by adding
<RollForward>Major</RollForward>
to the tool project file (ref. https://learn.microsoft.com/en-us/dotnet/core/whats-new/dotnet-core-3-0#major-version-runtime-roll-forward)Additional references:
dotnet-format
has this setting enabled: https://github.com/dotnet/format/blob/ad8125a6fc036fe1eb4e57aa604a79f2d98d5aa0/src/dotnet-format.csproj#L11 (added in dotnet/format@7a5df81)dotnet-ef
: https://github.com/dotnet/efcore/blob/486047c7422ec04530ca66c7c55256fa89b0ffc2/src/dotnet-ef/dotnet-ef.csproj#L24 (added in dotnet/efcore@11e7fc6)docfx
: https://github.com/dotnet/docfx/blob/dbd57048f68411fa39aeea9ccc6c00dc88ecde9f/src/docfx/docfx.csproj#L5 (added in dotnet/docfx@c641c03)dotnet-xdt
: https://github.com/nil4/dotnet-transform-xdt/blob/6272bb1152e8535ec40da5b0d68ff950bc13735b/dotnet-xdt/dotnet-xdt.csproj#L47 (added in Run with only .NET Core 3.x installed nil4/dotnet-transform-xdt#42)The text was updated successfully, but these errors were encountered: