builder.Configuration

I am using this line of code in my program.cs file

var port = builder.Configuration["ASPNETCORE_HTTPS_PORT"];

If I execute my program from visual studio it returns me proper port but if I execute my program from Radzen Blazor Studio I receive null value.

Why is that?

Hi @Djordje,

Radzen Blazor Studio does not set this environment variable when running the application.

Thanks. I found that if I defined those variables in lunchSettings.json then it is visible to my application also from Radzen Blazor Studio.