Create new blazor web application from Radzen Blazor Studio build failed

New Application -> Blazor Web Application .Net 8 -> ... -> Radzen Blazor Studio build project get error:

G:\Projects2023\Radzen\Program.cs(23,24): error CS0246: The type or namespace name 'App' could not be found (are you missing a using directive or an assembly reference?)

C:\Users\Honeybee>dotnet --version
8.0.200-preview.23624.5

Radzen Blazor Studio works only with official .NET versions. You should install .NET 8.0.101. This preview is probably installed with the latest VS2022 preview. I would recommend using the official VS2022 build too.

I am using Microsoft Visual Studio Community 2022 (64-bit) - Current
Version 17.9.4, .Net 8.0.4 Radzen 4.29.6 and just started to get same error as above.

How do I fix this?

D:\Development\Bickles CRM\Client\Pages\Tasks.razor.cs(71,33): error CS0311: The type 'BicklesCRM.Client.Pages.AddTask' cannot be used as type parameter 'T' in the generic type or method 'DialogService.OpenAsync(string, Dictionary<string, object>, DialogOptions)'. There is no implicit reference conversion from 'BicklesCRM.Client.Pages.AddTask' to 'Microsoft.AspNetCore.Components.ComponentBase'.

I also just tried to create a new app with Radzen and it failed as well. Same error: D:\Development\Bickles CRM New Version\Server\Program.cs(2,25): error CS0234: The type or namespace name 'Components' does not exist in the namespace 'BicklesCRM.Server' (are you missing an assembly reference?)

It seems a new version of .NET has been released (8.0.4). Radzen Blazor Studio will support it with the next release (tomorrow). A possible workaround is to uninstall it and install 8.0.3.

I may have spoken too soon. After installing 8.0.4 I found that it works as expected. Please show us the output of running dotnet --info from command prompt.

This is the version of the Radzen.Blazor component library. Are you using Radzen Blazor Studio at all?

Yes I use Radzen Studio

Please tell us what the output of executing dotnet --info in command prompt is. Also please confirm if you are using Radzen Studio (our old product) or Radzen Blazor Studio (our new one). A screenshot would also help.

Radzen Blazor Studio.

Microsoft Windows [Version 10.0.22631.3447]
(c) Microsoft Corporation. All rights reserved.

C:\Users\knars>dotnet --info
.NET SDK:
Version: 8.0.300-preview.24203.14
Commit: b7e38f457d
Workload version: 8.0.300-manifests.c4df6daf
MSBuild version: 17.10.0+4f6b1bb28

Runtime Environment:
OS Name: Windows
OS Version: 10.0.22631
OS Platform: Windows
RID: win-x64
Base Path: C:\Program Files\dotnet\sdk\8.0.300-preview.24203.14\

.NET workloads installed:
[wasm-tools-net7]
Installation Source: VS 17.10.34804.81, VS 17.9.34714.143
Manifest Version: 8.0.4/8.0.100
Manifest Path: C:\Program Files\dotnet\sdk-manifests\8.0.100\microsoft.net.workload.mono.toolchain.net7\8.0.4\WorkloadManifest.json
Install Type: Msi

[wasm-tools-net6]
Installation Source: VS 17.10.34804.81, VS 17.9.34714.143
Manifest Version: 8.0.4/8.0.100
Manifest Path: C:\Program Files\dotnet\sdk-manifests\8.0.100\microsoft.net.workload.mono.toolchain.net6\8.0.4\WorkloadManifest.json
Install Type: Msi

[maccatalyst]
Installation Source: VS 17.10.34804.81, VS 17.9.34714.143
Manifest Version: 17.2.8053/8.0.100
Manifest Path: C:\Program Files\dotnet\sdk-manifests\8.0.100\microsoft.net.sdk.maccatalyst\17.2.8053\WorkloadManifest.json
Install Type: Msi

[android]
Installation Source: VS 17.10.34804.81, VS 17.9.34714.143
Manifest Version: 34.0.95/8.0.100
Manifest Path: C:\Program Files\dotnet\sdk-manifests\8.0.100\microsoft.net.sdk.android\34.0.95\WorkloadManifest.json
Install Type: Msi

[ios]
Installation Source: VS 17.10.34804.81, VS 17.9.34714.143
Manifest Version: 17.2.8053/8.0.100
Manifest Path: C:\Program Files\dotnet\sdk-manifests\8.0.100\microsoft.net.sdk.ios\17.2.8053\WorkloadManifest.json
Install Type: Msi

[maui-windows]
Installation Source: VS 17.10.34804.81, VS 17.9.34714.143
Manifest Version: 8.0.7/8.0.100
Manifest Path: C:\Program Files\dotnet\sdk-manifests\8.0.100\microsoft.net.sdk.maui\8.0.7\WorkloadManifest.json
Install Type: Msi

Host:
Version: 8.0.4
Architecture: x64
Commit: 2d7eea2529

.NET SDKs installed:
5.0.408 [C:\Program Files\dotnet\sdk]
7.0.100-rc.2.22477.23 [C:\Program Files\dotnet\sdk]
8.0.104 [C:\Program Files\dotnet\sdk]
8.0.202 [C:\Program Files\dotnet\sdk]
8.0.300-preview.24203.14 [C:\Program Files\dotnet\sdk]

.NET runtimes installed:
Microsoft.AspNetCore.App 5.0.17 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
Microsoft.AspNetCore.App 6.0.27 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
Microsoft.AspNetCore.App 6.0.28 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
Microsoft.AspNetCore.App 7.0.0-rc.2.22476.2 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
Microsoft.AspNetCore.App 7.0.16 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
Microsoft.AspNetCore.App 7.0.17 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
Microsoft.AspNetCore.App 8.0.2 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
Microsoft.AspNetCore.App 8.0.3 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
Microsoft.AspNetCore.App 8.0.4 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
Microsoft.NETCore.App 5.0.17 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.NETCore.App 6.0.27 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.NETCore.App 6.0.28 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.NETCore.App 6.0.29 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.NETCore.App 7.0.0-rc.2.22472.3 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.NETCore.App 7.0.16 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.NETCore.App 7.0.17 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.NETCore.App 8.0.2 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.NETCore.App 8.0.3 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.NETCore.App 8.0.4 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.WindowsDesktop.App 5.0.17 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]
Microsoft.WindowsDesktop.App 6.0.27 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]
Microsoft.WindowsDesktop.App 6.0.28 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]
Microsoft.WindowsDesktop.App 6.0.29 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]
Microsoft.WindowsDesktop.App 7.0.0-rc.2.22472.13 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]
Microsoft.WindowsDesktop.App 7.0.16 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]
Microsoft.WindowsDesktop.App 7.0.17 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]
Microsoft.WindowsDesktop.App 8.0.2 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]
Microsoft.WindowsDesktop.App 8.0.3 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]
Microsoft.WindowsDesktop.App 8.0.4 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]

Other architectures found:
x86 [C:\Program Files (x86)\dotnet]
registered at [HKLM\SOFTWARE\dotnet\Setup\InstalledVersions\x86\InstallLocation]

Environment variables:
Not set

global.json file:
Not found

Learn more:
dotnet command - .NET CLI | Microsoft Learn

Download .NET:
.NET Downloads (Linux, macOS, and Windows)

C:\Users\knars>

This is a preview version which we do not support. Please install a non-preview one. If this .NET version it comes from a Visual Studio 2022 Preview we recommend using the official Visual Studio 2022 (the non-preview one).

I have both versions on my machine and use it to jump back and forth with the app I am working on. So are you saying uninstall VS 2022 preview and just have/use VS 2022?
And if so, will just uninstalling VS 2022 preview solve my issues?

You just need to have a non-preview version of .NET Framework installed as the latest one. This version however seems to be linked with the VS2022 preview so I suggest uninstalling it too. First try to uninstall the preview SDK and if this fails - uninstall VS2022 preview too.

Thanks, uninstalled VS2022 preview and installed .Net 8 SDK and everything works perfectly. :slight_smile: