58 references to UseContentRoot
ApiExplorerWebSite (1)
Startup.cs (1)
56.UseContentRoot(Directory.GetCurrentDirectory())
ApplicationModelWebSite (1)
Startup.cs (1)
45.UseContentRoot(Directory.GetCurrentDirectory())
AutobahnTestApp (1)
Program.cs (1)
23.UseContentRoot(Directory.GetCurrentDirectory())
BasicWebSite (1)
Program.cs (1)
14.UseContentRoot(Directory.GetCurrentDirectory())
ControllersFromServicesWebSite (1)
Startup.cs (1)
72.UseContentRoot(Directory.GetCurrentDirectory())
CookiePolicySample (1)
Program.cs (1)
15.UseContentRoot(Directory.GetCurrentDirectory())
CookieSessionSample (1)
Program.cs (1)
15.UseContentRoot(Directory.GetCurrentDirectory())
CorsWebSite (1)
Program.cs (1)
18.UseContentRoot(Directory.GetCurrentDirectory())
ErrorPageMiddlewareWebSite (1)
Startup.cs (1)
35.UseContentRoot(Directory.GetCurrentDirectory())
FilesWebSite (1)
Startup.cs (1)
34.UseContentRoot(Directory.GetCurrentDirectory())
FormatterWebSite (1)
Program.cs (1)
18.UseContentRoot(Directory.GetCurrentDirectory())
HtmlGenerationWebSite (2)
Startup.cs (1)
59.UseContentRoot(Directory.GetCurrentDirectory())
StartupWithCultureReplace.cs (1)
36.UseContentRoot(Directory.GetCurrentDirectory())
Http2SampleApp (1)
Program.cs (1)
65.UseContentRoot(Directory.GetCurrentDirectory())
HttpsPolicySample (1)
Startup.cs (1)
60.UseContentRoot(Directory.GetCurrentDirectory()) // for the cert file
IdentitySample.Mvc (1)
Program.cs (1)
18.UseContentRoot(Directory.GetCurrentDirectory())
JwtSample (1)
Program.cs (1)
21.UseContentRoot(Directory.GetCurrentDirectory())
Kestrel.SampleApp (1)
Startup.cs (1)
169.UseContentRoot(Directory.GetCurrentDirectory())
LargeResponseApp (1)
Startup.cs (1)
51.UseContentRoot(Directory.GetCurrentDirectory())
Microsoft.AspNetCore (1)
WebHost.cs (1)
161builder.UseContentRoot(Directory.GetCurrentDirectory());
Microsoft.AspNetCore.Hosting.Tests (2)
WebHostBuilderTests.cs (2)
654.UseContentRoot("/") 673.UseContentRoot("testroot")
Microsoft.AspNetCore.Mvc.Testing (2)
WebApplicationFactory.cs (2)
229builder.UseContentRoot(contentRoot); 297builder.UseContentRoot(settingValue);
Microsoft.AspNetCore.Server.IIS (1)
WebHostBuilderIISExtensions.cs (1)
33hostBuilder.UseContentRoot(contentRoot);
Microsoft.AspNetCore.SignalR.Tests.Utils (1)
src\Shared\SignalR\InProcessTestServer.cs (1)
111.UseContentRoot(Directory.GetCurrentDirectory());
Microsoft.AspNetCore.TestHost (1)
WebHostBuilderExtensions.cs (1)
158builder.UseContentRoot(Path.GetFullPath(Path.Combine(directoryInfo.FullName, solutionRelativePath)));
Microsoft.AspNetCore.Tests (7)
WebApplicationTests.cs (7)
400Assert.Throws<NotSupportedException>(() => builder.WebHost.UseContentRoot(contentRoot)); 478builder.WebHost.UseContentRoot(contentRoot + Path.DirectorySeparatorChar); 479builder.WebHost.UseContentRoot(contentRoot.ToUpperInvariant()); 480builder.WebHost.UseContentRoot(contentRoot.ToLowerInvariant()); 623builder.WebHost.UseContentRoot(AppContext.BaseDirectory); 624builder.WebHost.UseContentRoot(Path.TrimEndingDirectorySeparator(AppContext.BaseDirectory)); 625builder.WebHost.UseContentRoot("");
Mvc.RoutingWebSite (1)
Program.cs (1)
18.UseContentRoot(Directory.GetCurrentDirectory())
MvcSandbox (1)
Startup.cs (1)
53.UseContentRoot(Directory.GetCurrentDirectory())
PlaintextApp (1)
Startup.cs (1)
46.UseContentRoot(Directory.GetCurrentDirectory())
RazorBuildWebSite (2)
Startup.cs (1)
30.UseContentRoot(Directory.GetCurrentDirectory())
StartupWithHostingStartup.cs (1)
45.UseContentRoot(Directory.GetCurrentDirectory())
RazorPagesWebSite (1)
Program.cs (1)
19.UseContentRoot(Directory.GetCurrentDirectory())
RazorWebSite (1)
Program.cs (1)
18.UseContentRoot(Directory.GetCurrentDirectory())
ResponseCachingSample (1)
Startup.cs (1)
38.UseContentRoot(Directory.GetCurrentDirectory())
RewriteSample (1)
Startup.cs (1)
56.UseContentRoot(Directory.GetCurrentDirectory());
RoutingSandbox (1)
Program.cs (1)
61.UseContentRoot(Environment.CurrentDirectory)
RoutingWebSite (1)
Program.cs (1)
63.UseContentRoot(Environment.CurrentDirectory)
SampleStartups (1)
StartupFullControl.cs (1)
30.UseContentRoot(Directory.GetCurrentDirectory()) // Override the content root with the current directory
SecurityWebSite (1)
Program.cs (1)
19.UseContentRoot(Directory.GetCurrentDirectory())
SignalR.Client.FunctionalTestApp (1)
Program.cs (1)
46.UseContentRoot(Directory.GetCurrentDirectory())
SignalRSamples (1)
Program.cs (1)
41.UseContentRoot(Directory.GetCurrentDirectory())
SimpleWebSite (1)
Startup.cs (1)
40.UseContentRoot(Directory.GetCurrentDirectory())
SocialWeather (1)
Program.cs (1)
21.UseContentRoot(Directory.GetCurrentDirectory())
Sockets.FunctionalTests (1)
src\Servers\Kestrel\test\FunctionalTests\MaxRequestBufferSizeTests.cs (1)
343.UseContentRoot(Directory.GetCurrentDirectory())
StaticFileSample (1)
Startup.cs (1)
35.UseContentRoot(Directory.GetCurrentDirectory())
SystemdTestApp (1)
Startup.cs (1)
73.UseContentRoot(Directory.GetCurrentDirectory())
TagHelpersWebSite (1)
Startup.cs (1)
34.UseContentRoot(Directory.GetCurrentDirectory())
VersioningWebSite (1)
Program.cs (1)
18.UseContentRoot(Directory.GetCurrentDirectory())
WsFedSample (1)
Program.cs (1)
27.UseContentRoot(Directory.GetCurrentDirectory())
XmlFormattersWebSite (1)
Startup.cs (1)
120.UseContentRoot(Directory.GetCurrentDirectory())