Skip to content

The target "GetTargetPath" does not exist in the project #820

@jmelosegui

Description

@jmelosegui

Hi @AArnott,
I am using this tool in a solution that contains a SqlServer project.
When building the database project, I receive the following error.

##[error]packages\nerdbank.gitversioning\3.5.109\build\PrivateP2PCaching.proj(0,0): Error MSB4057: The target "GetTargetPath" does not exist in the project.

If I modify the file PrivateP2PCaching.proj by adding the following

  <!-- database project wants to see this target -->
  <Target Name="GetTargetPath" />

The solution builds successfully.

I am not sure of the implication of this change.

The following are the logs for the failing build using msbuild structured log.

msbuild.binlog.zip

Is this something you can look into?

I really appreciate any help you can provide.

Update

I was using version 3.5.109. If I downgrade the version to 3.4.255, where the file PrivateP2PCaching.proj is not part of the referenced projects, then the build process ends successfully.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions