New install of Radzen Blazor - Build errors = missing Nuget Config file

Downloaded trial, trying to do the CRM app walkthrough.

After analyzing the database and generating pages, I cannot get Radzen Blazor to build.

D:\ddrivecode\RadzenCRMWebAssembly\Client\RadzenCRMWebAssembly.Client.csproj : error NU1100: Unable to resolve 'Microsoft.AspNetCore.Components.WebAssembly (>= 7.0.0)' for 'net7.0'. [D:\ddrivecode\RadzenCRMWebAssembly\Server\RadzenCRMWebAssembly.Server.csproj]

I'm on Windows 10 Pro, and have the following installed:

.NET SDK 7.0.203 (x64)
ASP.NET Core 7.0.5 (x64 and x32)

After creating "nuget.config" in my Client folder, it now builds.

File:

<?xml version="1.0" encoding="utf-8"?>
<configuration>
  <packageSources>
    <!--To inherit the global NuGet package sources remove the <clear/> line below -->
    <clear />
    <add key="nuget" value="https://api.nuget.org/v3/index.json" />
  </packageSources>
</configuration>

Any idea why I need to do this? Do I need to do this to each new project?

No. This is relevant to your NuGet setup only.

Thanks for the reply.

Can you help me understand what other steps I should be using to setup Radzen Blazor Studio on a new machine without Visual Studio installed?

I also needed to install the Radzen.Blazor package in the Client folder:

dotnet add package Radzen.Blazor --version 4.10.0

For some reason on other projects I made after this one I don't need to create the nuget file.

You do not need Visual Studio at all. All you need to install is .NET 7 SDK.

Make sure your master nuget.config file hasn't changed the default nuget repository. This is likely to cause a lot of problems. The easiest way to check this is from Visual Studio.

Thanks, I think I have it figured out now.

The file with the global list of Nuget sources is C:\Users<user>\AppData\Roaming\NuGet\NuGet.Config

Add the source:

dotnet nuget add source https://api.nuget.org/v3/index.json

List sources to confirm:

dotnet nuget list source
1 Like