Select theme:
Radzen Blazor for Visual Studio builds your application in order to show it in design time. Sometimes this special build fails and you will see a message in the designer which asks you to check the Output window. The build could fail for two reasons:
Use the RADZEN
preprocessor constant if there is code you don't want Radzen Blazor Studio to include in design-time builds.
#if !RADZEN
// This code will not be included in Radzen Blazor Studio design-time builds
builder.Services.AddScoped<ITradeService, TradeService>();
#endif
@{ #if !RADZEN }
<RadzenButton Text="Hidden in design builds" />
@{ #endif }
Sometimes the design time build would fail with errors such as CS0246: The type or namespace name 'App' could not be found
. This isually means that you have installed a preview or release candidate version
of the .NET framework which Radzen Blazor for Visual Studio does not support. Visual Stidio 2022 Preview installs such .NET framework versions.
You can find the latest installed version by running dotnet --info
in command prompt.
To solve this problem you have two options:
{
"sdk": {
"version": "9.0.200"
}
}
Sometimes certain pages may fail to display.
Radzen Blazor for Visual Studio does not execute the Blazor lifecycle methods of your pages in order to prevent unwanted side effects such as database access, HTTP requests or file system access. Instead it adds code that initializes the page members (properties and fields) with sample data. This process could fail in some cases.
If you hit a problem with Radzen Blazor Studio you can report it by:
Radzen Blazor for Visual Studio will scan the _Host.cshtml
, App.razor
or index.html
files in your application for CSS and JS. It also supports component specific CSS files (*.razor.css
).
If you are including a CSS file by other means they may not display in design-time.
Radzen Blazor for Visual Studio does not execute the Blazor lifecycle methods of your pages in order to prevent unwanted side effects such as database access, HTTP requests or file system access. Instead it adds code that initializes the page members (properties and fields) with sample data.
Radzen is free to use. You can also test the premium features for 15 days.
Download NowSelect theme: