Skip to content

"Path is not relative" when GitVersionTask is used in ccproj files #1053

Closed
@AGBrown

Description

@AGBrown

Adding the Import

<Import Project="..\packages\GitVersionTask.3.6.3\build\portable-net+sl+win+wpa+wp\GitVersionTask.targets" Condition="Exists('..\packages\GitVersionTask.3.6.3\build\portable-net+sl+win+wpa+wp\GitVersionTask.targets')" />

into a ccproj (Azure cloud service) project results in the project not loading in Visual Studio with the error:

path is not relative

By a process of elimination, it is caused by this block of ncrunch-related ItemGroup None definitions. If those are commented out then the error does not occur. If the first one is left in, then the error comes back and the project will not load.

Workarounds:

Are these ncrunch definitions required in the targets file once it is deployed to the nupkg? If not could they be removed, and if so could we just add the condition to them (I'm not sure if that condition is correct, but it "Works On My MachineTM")?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions