dotnet/Nerdbank.GitVersioning

PrivateP2PCaching.proj' could not be found

bkblie opened this issue · 4 comments

Getting this in my build log
The referenced component 'c:\code\myproject\packages\Nerdbank.GitVersioning.3.6.133\build\PrivateP2PCaching.proj' could not be found.

Is there a fix for this?

Probably ya. Wipe your packages directory and run nuget restore again. The nuget package does define that file at that location, which you can see by downloading the package yourself and unzipping it. So the fact that it's missing on your computer suggests that your package cache was corrupted somehow.

Removed all refrences to Nerdbank.GitVersioning from solution
Deleted my local nuget cache in my profile and solution packages directory
Added the Nerdbank.GitVersioning Nuget to one project in my solution and get this error once more.
image

image

image

Looks like this, not sure, #787

reference to this? dotnet/msbuild#6852

That additional context totally changes how I interpret your original report. I thought you were reporting a build failure, but I now see you're just reporting a Visual Studio UI glyph.
That's just Visual Studio misinterpreting an msbuild item. I think I've already done all I can to minimize those issues. You should probably use Report a Problem in VS to get the project system to stop reporting that, since NB.GV isn't doing anything wrong here.

Alternatively, upgrade your projects to SDK style, which switches you to a newer project system in VS that doesn't complain about this.