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
I have searched issues to ensure it has not already been reported
GitVersion package
GitVersion.MsBuild
GitVersion version
6.0.0-rc.1
Operating system
Linux
What are you seeing?
After upgrading from 6.0.0-beta.3, My netstandard2.0 project doesn't work with GitVersion.MsBuild anymore. When doing a dotnet build I just get an error:
Build FAILED.
/home/albert/.nuget/packages/gitversion.msbuild/6.0.0-rc.1/tools/GitVersion.MsBuild.targets(21,9): error MSB3073: The command "dotnet --roll-forward Major "/home/albert/.nuget/packages/gitversion.msbuild/6.0.0-rc.1/tools/netstandard2.0/gitversion.dll" "/home/albert/source/SAL.Sandfield.Database.Migrator/src/Sandfield.Database.Migrator" -output file -outputfile "obj/gitversion.json"" exited with code 1. [/home/albert/source/SAL.Sandfield.Database.Migrator/src/Sandfield.Database.Migrator/Sandfield.Database.Migrator.csproj]
0 Warning(s)
1 Error(s)
Running the command standalone, I see it's looking for gitversion.dll in a netstandard2.0 directory but doesn't exist:
❯ dotnet --roll-forward Major "/home/albert/.nuget/packages/gitversion.msbuild/6.0.0-rc.1/tools/netstandard2.0/gitversion.dll" "/home/albert/source/SAL.Sandfield.Database.Migrator/src/Sandfield.Database.Migrator" -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.
My ~/.nuget/packages/gitversion.msbuild/6.0.0-rc.1/tools directory:
6.0.0-rc.1/tools:
total 24K
drwxr-xr-x 1 albert albert 136 Jun 24 12:09 ./
drwxr-xr-x 1 albert albert 370 Jun 24 12:09 ../
-rwxr--r-- 1 albert albert 6.6K May 23 21:43 GitVersion.MsBuild.props*
-rwxr--r-- 1 albert albert 13K May 23 21:43 GitVersion.MsBuild.targets*
drwxr-xr-x 1 albert albert 3.4K Jun 24 12:09 net6.0/
drwxr-xr-x 1 albert albert 3.4K Jun 24 12:09 net7.0/
drwxr-xr-x 1 albert albert 3.1K Jun 24 12:09 net8.0/
This was changed in beta.4. The reason for the change was the size of the resulting nuget package was too big.
Taking in consideration, and that targeting the netstandard2.0 is not recommended anymore, and also because we removed support for the .Net Framework, we decided to target only .net6 - .net8 and later to target LTS and STS version.
Prerequisites
GitVersion package
GitVersion.MsBuild
GitVersion version
6.0.0-rc.1
Operating system
Linux
What are you seeing?
After upgrading from
6.0.0-beta.3
, Mynetstandard2.0
project doesn't work with GitVersion.MsBuild anymore. When doing adotnet build
I just get an error:Running the command standalone, I see it's looking for
gitversion.dll
in anetstandard2.0
directory but doesn't exist:My
~/.nuget/packages/gitversion.msbuild/6.0.0-rc.1/tools
directory:My dotnet tools situation:
Thanks,
What is expected?
Should continue working.
Steps to Reproduce
Create a brand new netstandard2.0 Class Lib and install GitVersion.MsBuild 6.0.0-rc.1
And doing this with 6.0.0-beta.3 works:
dotnet new classlib --name GitVersion-RCTest -f netstandard2.0
cd GitVersion-RCTest
git init
git add .
git commit -m "Init"
dotnet build # WORKS
dotnet add package GitVersion.MsBuild --version 6.0.0-beta.3
dotnet build # WORKS
RepositoryFixture Test
No response
Output log or link to your CI build (if appropriate).
No response
The text was updated successfully, but these errors were encountered: