When creating a project with dotnet cli
/ em>dotnet new razor -o RazorPagesContacts
How do I change the environment variable to developer mode when running the application using dotnet run
.
Since no Startup.cs
I have
if (env.IsDevelopment())
{
app.UseDeveloperExceptionPage();
}
else
{
app.UseExceptionHandler("/Error");
}
And never enter app.UseDeveloperExceptionPage()
using dotnet run