GitTools / GitVersion

From git log to SemVer in no time
https://gitversion.net/docs/
MIT License
2.84k stars 650 forks source link

[ISSUE]: Fails with Net48 project #4189

Closed drewcassidy closed 3 weeks ago

drewcassidy commented 3 weeks ago

Prerequisites

GitVersion package

GitVersion.MsBuild

GitVersion version

6.0.2

Operating system

macOS

What are you seeing?

I attempted to add this to my project, and when I try to build I get this error

dotnet --roll-forward Major "/Users/drewcassidy/.nuget/packages/gitversion.msbuild/6.0.2/tools/net48/gitversion.dll" "/Users/drewcassidy/Code/Shabby/Source"  -output file -outputfile "obj/gitversion.json"
Could not execute because the specified command or file was not found.
Possible reasons for this include:
  * You misspelled a built-in dotnet command.
  * You intended to execute a .NET program, but dotnet---roll-forward does not exist.
  * You intended to run a global tool, but a dotnet-prefixed executable with this name could not be found on the PATH.

I can confirm that dll path does not exist, but does exist for other dotnet versions

What is expected?

Build succeeds

Steps to Reproduce

Clone this repo, attempt to build

RepositoryFixture Test

No response

Output log or link to your CI build (if appropriate).

https://github.com/KSPModdingLibs/Shabby/actions/runs/10642923789/job/29505883955
arturcic commented 3 weeks ago

Support for .net 4.8 was dropped https://github.com/GitTools/GitVersion/issues/2997