Replies: 6 comments 25 replies
-
Unfortunately we do not have people to maintain the codebase for the .net framework, so we decided to focus on LTS .NET only |
Beta Was this translation helpful? Give feedback.
-
I'm using GitVersion.MSBuild and I did hit a different problem with 6.0.2 not being able to build with Visual Studio. It may shed light. The build error was:
It did compile fine with dotnet cli. I found a work around of removing the following line from my csproj:
Rob |
Beta Was this translation helpful? Give feedback.
-
Hi @Szaamaan I've had a go at reproducing your issue and it seems that GitVersion is not running as So ... I enabled
I do not know why
|
Beta Was this translation helpful? Give feedback.
-
Ah, I see: #4116 |
Beta Was this translation helpful? Give feedback.
-
Digging a little more I notice that 5.12.0 show .NET Standard 2.0 dependency while 6.0.0 does not. I believe that .NET 2.0 works with both dotnet cli and VS. |
Beta Was this translation helpful? Give feedback.
-
I'm doing a pass of nuget upgrades in my project and noticed GitVersion.MsBuild stopped working too (my files became 1.0.0). What's the use of this nuget if it doesn't support Visual Studio? On my release build pipeline it's going through dotnet-gitversion and dotnet publish and it work, so this nuget is not required. But on a developer machine machine running the solution via Visual Studio, I was expecting the nuget task to run to stamp the version. Even had a "Condition="'$(Configuration)'=='Debug'" on the PackageReference. Is there any different workflow I could use, or should I simply remain on 5.12.0? |
Beta Was this translation helpful? Give feedback.
-
Is this intended?
I've created a simple console application, just one line of code:
Console.WriteLine(GitVersionInformation.Sha);
With an equally "simple" project file:
If I run
dotnet build
it'll compile. If I try to compile via Visual Studio it won't (GitVersionInformation
won't be available).This seems to be a deliberate change in v6 but... this can't be right, can it? You're effectively leaving every user of Visual Studio stranded at version 5...
Beta Was this translation helpful? Give feedback.
All reactions