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)
476
builder.Host.
UseContentRoot
(contentRoot + Path.DirectorySeparatorChar);
477
builder.Host.
UseContentRoot
(contentRoot.ToUpperInvariant());
478
builder.Host.
UseContentRoot
(contentRoot.ToLowerInvariant());
621
builder.Host.
UseContentRoot
(AppContext.BaseDirectory);
622
builder.Host.
UseContentRoot
(Path.TrimEndingDirectorySeparator(AppContext.BaseDirectory));
623
builder.Host.
UseContentRoot
("");
1091
Assert.Throws<NotSupportedException>(() => builder.Host.
UseContentRoot
(contentRoot));