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)
474builder.Host.UseContentRoot(contentRoot + Path.DirectorySeparatorChar); 475builder.Host.UseContentRoot(contentRoot.ToUpperInvariant()); 476builder.Host.UseContentRoot(contentRoot.ToLowerInvariant()); 619builder.Host.UseContentRoot(AppContext.BaseDirectory); 620builder.Host.UseContentRoot(Path.TrimEndingDirectorySeparator(AppContext.BaseDirectory)); 621builder.Host.UseContentRoot(""); 1089Assert.Throws<NotSupportedException>(() => builder.Host.UseContentRoot(contentRoot));