middt_blazor-framework/Sample/Middt.Sample.BlazorServer/Program.cs

using Microsoft.AspNetCore.Builder;
using Middt.Framework.Common.Licence;
using Middt.Sample.BlazorServer;
using System;

var builder = WebApplication.CreateBuilder(args);

#if DEBUG
Environment.SetEnvironmentVariable("ENVIRONMENT", "debug");
#elif RELEASE
      Environment.SetEnvironmentVariable("ENVIRONMENT","release");
#elif BUILD1
      Environment.SetEnvironmentVariable("ENVIRONMENT","build1");
#endif

Startup startup = new Startup();
// Add services to the container.
startup.ConfigureServices(builder.Services);

var app = builder.Build();

startup.ConfigureApplication(app);


app.Run();