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