Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
jmelosegui opened this issue Sep 20, 2022 · 1 comment
Closed

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

jmelosegui opened this issue Sep 20, 2022 · 1 comment
Milestone

Comments

@jmelosegui
Copy link

jmelosegui commented Sep 20, 2022

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.

@AArnott
Copy link
Collaborator

AArnott commented Sep 20, 2022

Thanks for reporting.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants