Skip to content

GitVersion 6.0-beta.1 : Error on WriteVersionInfoToBuildLog with can't load System.Runtime 6.0.0.0 on a .NET 7 project #3450

@ebfortin

Description

@ebfortin

I have an older solution with 4 projects in it. They were all .net 5 and using an older (5.x) version of GitVersion. I upgraded to 6.0 and also the framework to 7.0. After resolving the breaking changes from GitVersion from 5.x to 6.x I stumbled on an error that I have no idea how to resolve. I get the following for my 4 projects in my solution:

The "WriteVersionInfoToBuildLog" task could not be loaded from the assembly C:\Users\efort.nuget\packages\gitversion.msbuild\6.0.0-beta.1\tools\net6.0/GitVersion.MsBuild.dll. Could not load file or assembly 'System.Runtime, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified. Confirm that the declaration is correct, that the assembly and all its dependencies are available, and that the task contains a public class that implements Microsoft.Build.Framework.ITask.

Would appreciate some help. If I should not post this kind of thing here please let me know. But since it's a Beta release it may be a bug or regression to fix so here I am :)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions