9 references to UseContentRoot
GenericHostWebSite (1)
Program.cs (1)
14
.
UseContentRoot
(Directory.GetCurrentDirectory())
Microsoft.AspNetCore.OpenApi.Tests (1)
Integration\SampleAppFixture.cs (1)
11
builder.
UseContentRoot
(Directory.GetCurrentDirectory());
Microsoft.AspNetCore.Tests (7)
WebApplicationTests.cs (7)
474
builder.Host.
UseContentRoot
(contentRoot + Path.DirectorySeparatorChar);
475
builder.Host.
UseContentRoot
(contentRoot.ToUpperInvariant());
476
builder.Host.
UseContentRoot
(contentRoot.ToLowerInvariant());
619
builder.Host.
UseContentRoot
(AppContext.BaseDirectory);
620
builder.Host.
UseContentRoot
(Path.TrimEndingDirectorySeparator(AppContext.BaseDirectory));
621
builder.Host.
UseContentRoot
("");
1089
Assert.Throws<NotSupportedException>(() => builder.Host.
UseContentRoot
(contentRoot));