Unable to run Blazor app In VS for Mac(17.4 Preview)

Ganesh Prabhu 1 Reputation point
2022-08-25T12:55:25.533+00:00

We have a Blazor project which includes web app and MAUI-Blazor project.

While running the MAUI-Blazor app, we have following error in one of the linked project(it is net6.0 project)
/usr/local/share/dotnet/sdk/6.0.203/Sdks/Microsoft.NET.Sdk/targets/Microsoft.PackageDependencyResolution.targets(5,5): Error NETSDK1005: Assets file '/Users/newuser/Documents/POC/Client/PT.Components/obj/project.assets.json' doesn't have a target for 'net6.0'. Ensure that restore has run and that you have included 'net6.0' in the TargetFrameworks for your project. (NETSDK1005) (PT.Components)

While checking came to know that there was error while restoring nuget packages.
It was failing for some packages and throws below error,
Restoring packages for .NETCoreApp,Version=v6.0...
Failed to retrieve information

I have tried clearing Nuget Cache, Clearing telerik credentials from keychain, updating nuget package, but everying failed.
Kindly help to resolve the issue.

Please find below details

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,369 questions
Blazor
Blazor
A free and open-source web framework that enables developers to create web apps using C# and HTML being developed by Microsoft.
1,386 questions
.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
2,862 questions
{count} votes