Skip to content

[Bug]Build error due to malformed file path obj\/gitversion.json #2534

@NameOfTheDragon

Description

@NameOfTheDragon

Describe the bug
GitVersion.MSBuild nuget package v5.6.3 uses a badly formed path that causes a build error.
The build log makes this clear:

C:\Users\Tim\.nuget\packages\gitversion.msbuild\5.6.3\tools\GitVersion.MsBuild.targets: The command "C:\Users\Tim\.nuget\packages\gitversion.msbuild\5.6.3\tools\net48/gitversion.exe C:\Users\Tim\AppData\Local\NCrunch\12004\2\TA.Ascom.ReactiveCommunications -output file -outputfile obj\/gitversion.json" exited with code 1.

Expected Behavior

Obviously, there should not be a build error

Steps to Reproduce

  1. Add NuGet packae GitVersion.MSBuild-5.3.6 to a NETStandard 2.1 class library project.
  2. Build the project
  3. Observe the build error.

Context

Showstopper! I can no longer build my code.

Your Environment

Windows 10
VS2019 Enterprise
.NETStandard 2.1 class library project
GitVersion.MSBuild nuget package v5.6.3

Here is a link to the minimal solution required to reproduce the issue (it is really just File/New Project)
https://github.com/NameOfTheDragon/TA.GitVersionIssue

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