Reputation: 77
Severity Code Description Project File Line Suppression State Error CS0006 Metadata file 'F:\BlazorWebAssembly\BlazorProject\Client\obj\Debug\net6.0\ref\BlazorProject.Client.dll' could not be found BlazorProject.Server F:\BlazorWebAssembly\BlazorProject\Server\CSC 1 Active
Also, I delete the obj, bin folder, and rebuild the project but did not fix that. Are you know How to fix that case. Please help me...
Upvotes: 4
Views: 8536
Reputation: 3
In my case, I right-clicked on the ptoject I got the error for, and selected "Build". The error is gone.
Upvotes: 0
Reputation: 341
As per Link from Yiyi You above, the response by Heinz Kessler solved it for me. The problem was that there were build errors that were only visible in the Output Window.
Upvotes: 2
Reputation: 11
I had tha same issue. I removed the weatherforcast model and controller, but i forgat to remove the weatwerforcast page at the Client/Pages. Make sure your remove the weatherforcast stuff everywhere.
Upvotes: 1
Reputation: 349
i have same problem at publish time and many search in site but not found answer after 30 minutes tried i've re-new my publish profile after that my problem has solved
Upvotes: 1