Skip to content
#

aspnetcore

Here are 2,716 public repositories matching this topic...

lonix1
lonix1 commented Jun 1, 2022

Originally posted at StackOverflow, but there seems no way to control this. So I'm adding as a feature request. Thank you.

Is there an existing issue for this?

  • I have searched the existing issues

Is your feature request related to a problem? Please describe the problem.

I'm using RazorPages (on ASP.NET Core 6) and "css isola

help wanted enhancement area-mvc good first issue
FredCni
FredCni commented Jun 8, 2022

In the "Set the environment" section, the doc refers to setting the value of env variables w/o showing how to do it.
But the goal can be achieved that way. I suggest you add this code snippet:

protected override IHostBuilder CreateHostBuilder() =>
        base.CreateHostBuilder().ConfigureWebHost(x => x.UseEnvironment("integration"));

The derived WebApplicationFactory will therefor

Help wanted Good first issue Source - Docs.ms doc-enhancement

Improve this page

Add a description, image, and links to the aspnetcore topic page so that developers can more easily learn about it.

Curate this topic

Add this topic to your repo

To associate your repository with the aspnetcore topic, visit your repo's landing page and select "manage topics."

Learn more