17 implementations of ContentRootPath
Aspire.Dashboard.Tests (1)
Aspire.Hosting.Tests (1)
Microsoft.AspNetCore.Components.Endpoints.Tests (5)
Microsoft.AspNetCore.Grpc.Swagger.Tests (1)
Microsoft.AspNetCore.Hosting (1)
Microsoft.AspNetCore.Mvc.ApiExplorer.Test (1)
Microsoft.AspNetCore.Mvc.RazorPages.Test (1)
Microsoft.AspNetCore.Mvc.ViewFeatures.Test (1)
Microsoft.AspNetCore.OpenApi.Tests (1)
Microsoft.AspNetCore.Routing.Tests (1)
Microsoft.AspNetCore.Server.Kestrel.Tests (1)
Microsoft.AspNetCore.SpaServices.Extensions.Tests (1)
Microsoft.Extensions.Hosting (1)
1 write to ContentRootPath
Microsoft.AspNetCore.Hosting (1)
94 references to ContentRootPath
Aspire.Hosting (1)
Aspire.Hosting.Testing.Tests (2)
CatalogService (1)
CreateDefaultBuilderApp (2)
CreateDefaultBuilderOfTApp (2)
FilesWebSite (5)
IdentitySample.DefaultUI (1)
IdentitySample.Mvc (1)
InMemory.FunctionalTests (1)
Microsoft.AspNetCore (6)
Microsoft.AspNetCore.DataProtection (1)
Microsoft.AspNetCore.DataProtection.Tests (3)
Microsoft.AspNetCore.Hosting (6)
Microsoft.AspNetCore.Hosting.Tests (7)
Microsoft.AspNetCore.HttpLogging (2)
Microsoft.AspNetCore.Mvc.Razor.RuntimeCompilation (2)
Microsoft.AspNetCore.Mvc.Razor.RuntimeCompilation.Test (2)
Microsoft.AspNetCore.Server.Kestrel.Core (7)
Microsoft.AspNetCore.SpaServices.Extensions (1)
Microsoft.AspNetCore.StaticFiles (1)
Microsoft.AspNetCore.Tests (24)
WebApplicationTests.cs (24)
514Assert.Equal(contentRoot, builder.Environment.ContentRootPath);
543Assert.Equal(contentRoot, builder.Environment.ContentRootPath);
585Assert.Equal(contentRoot, builder.Environment.ContentRootPath);
627Assert.Equal(NormalizePath(AppContext.BaseDirectory), NormalizePath(builder.Environment.ContentRootPath));
651Assert.Equal(NormalizePath(Environment.CurrentDirectory), NormalizePath(builder.Environment.ContentRootPath));
676Assert.Equal(NormalizePath(AppContext.BaseDirectory), NormalizePath(builder.Environment.ContentRootPath));
810Assert.Equal(contentRoot, context.HostingEnvironment.ContentRootPath);
816Assert.Equal(contentRoot, builder.Environment.ContentRootPath);
859Assert.Equal(contentRoot, context.HostingEnvironment.ContentRootPath);
865Assert.Equal(contentRoot, builder.Environment.ContentRootPath);
905Assert.Equal(contentRoot, context.HostingEnvironment.ContentRootPath);
911Assert.Equal(contentRoot, builder.Environment.ContentRootPath);
1484Assert.Equal(env0.ContentRootPath, env1.ContentRootPath);
2260Assert.Equal(builder.Environment.ContentRootPath, hostEnv.ContentRootPath);
2264Assert.Equal(webHostEnv.ContentRootPath, hostEnv.ContentRootPath);
2268Assert.NotEqual(contentRoot, hostEnv.ContentRootPath);
2290Assert.Equal(builder.Environment.ContentRootPath, hostEnv.ContentRootPath);
2294Assert.Equal(webHostEnv.ContentRootPath, hostEnv.ContentRootPath);
2298Assert.Equal(Path.GetTempPath(), hostEnv.ContentRootPath);
Microsoft.Extensions.Hosting (10)
Microsoft.Extensions.Hosting.Abstractions (2)
Microsoft.Extensions.Hosting.Systemd (1)
Microsoft.Extensions.Hosting.WindowsServices (1)
StaticFilesAuth (2)