question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

What action should I take when projects don't have matching metadata references?

See original GitHub issue

I got this for every solution, so I started running msbuild /t:Restore on each one first. Now this is only happening with a couple of solutions.

Does it result in degraded functionality? Where should I start looking to fix it?

Generating Some.sln
Workspace failed: Found project reference without a matching metadata reference: Some.csproj
Found project reference without a matching metadata reference: Some.csproj
Workspace failed: Found project reference without a matching metadata reference: Other.csproj
Found project reference without a matching metadata reference: Other.csproj

This warning occurs right after the error lines. Could it be related?

First chance exception System.IO.PathTooLongException: Path: C:\Users\jmusser.nuget\packages\microsoft.netcore.app.ref\5.0.0-rc.2.20475.5\ref\net5.0\C:\Program Files\dotnet\sdk\NuGetFallbackFolder\system.runtime.interopservices.runtimeinformation\4.3.0\ref\netstandard1.1\System.Runtime.InteropServices.RuntimeInformation.dll.dll exceeds the OS max path limit. The fully qualified file name must be less than 260 characters. at Microsoft.Build.Shared.FileUtilities.GetFullPath(String path)

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:9 (9 by maintainers)

github_iconTop GitHub Comments

1reaction
KirillOsenkovcommented, Apr 15, 2021

Building should be enough, but binlog is an absolute guarantee, in case your build is not exactly the same as the real one (say it needs environment variables etc)

1reaction
KirillOsenkovcommented, Apr 15, 2021

Yes there’s more of a chance that it will bring down the dlls so more of the types bind. Otherwise you get broken hyperlinks.

Read more comments on GitHub >

github_iconTop Results From Across the Web

What does "Found project reference without a matching ...
When I specific the -v=diag , I would get some Found project reference without a matching metadata reference from the output, ...
Read more >
Troubleshoot broken references - Visual Studio
If projects are shared on different computers, some references might not be found when a component is located in a different directory.
Read more >
Definition" in Visual Studio only brings up the Metadata
#2 · Remove all the references and add them back (make sure the path is correct) · Go to Solution properties, and recheck...
Read more >
Go To Definition (F12) goes to metadata.
If I go to the test project and find a reference, then I select F12 (Go To Definition), it takes me to the...
Read more >
Best practices for references - YouTube Help
Because of this, references must have complete and valid metadata. ... Match policies specify what action Content ID should take with claimed videos....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found