Skip to content

Issue with .NET 4.7.2 and dependency on Microsoft.Extensions.DependencyInjection #2068

@KiLLeRRaT

Description

@KiLLeRRaT

I'm using .NET Framework 4.7.2 and I'm having an issue with this . The NuGet package says there is no dependency on Microsoft.Extensions.DependencyInjection but my builds fail.

I used NuGet to install Microsoft.Extensions.DependencyInjection manually but that doesn't resolve the problem either, it still fails to build.

I tried this with a new Console C# application and only installing GitVersionTask via NuGet.

I'm trying out GitVersionTask.5.1.4-beta1.99 since it contains new functionality I need to use.

GitVersionTask.5.1.4-beta1.99\build\GitVersionTask.targets(10,9): error : FileNotFoundException: Could not load file or assembly 'Microsoft.Extensions.DependencyInjection.Abstractions, Version=3.0.1.0, Culture=neutral, PublicKeyToken=adb9793829ddae60' or one of its dependencies. The system cannot find the file specified.
1>C:\Users\Albert\source\repos\GitVersionTaskTestApp\packages\GitVersionTask.5.1.4-beta1.99\build\GitVersionTask.targets(10,9): error :    at GitVersion.MSBuildTask.GitVersionTasks.BuildServiceProvider(GitVersionTaskBase task)
1>C:\Users\Albert\source\repos\GitVersionTaskTestApp\packages\GitVersionTask.5.1.4-beta1.99\build\GitVersionTask.targets(10,9): error :    at GitVersion.MSBuildTask.GitVersionTasks.ExecuteGitVersionTask[T](T task, Action`1 action) in D:\a\1\s\src\GitVersionTask\GitVersionTasks.cs:line 25

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