Build net7.0- and net8.0-compatible versions of NuGetForUnity.CLI by atom-b · Pull Request #663 · GlitchEnzo/NuGetForUnity (original) (raw)
Some CI environments, such as Unity Cloud Build, only provide the dotnet 7.0 runtime, making a net8.0-targeted NuGetForUnity.Cli build unusable in them. With this change the NuGetForUnity.Cli.nupkg output by dotnet pack contains builds for both runtime versions.
I've confirmed that this fixes the runtime version errors the net8.0-only builds was causing in Unity Cloud Build.