title: ContentRootPath different in Development and Azure web app
body: <p>When I deploy my Dot Net Core web app to Azure, the <code>Environment.ContentRootPath</code> variable is set to <code>[myproject]/wwwroot</code>.  However, in development, it is just <code>[myproject]</code>.</p>
  
  <p>Why does it change in Azure deployment?</p>
  
  <p>How can I make it consistent?</p>
  
  <p>For reference, this is my <code>IWebHost</code>.</p>
  
  <pre><code>public static IWebHost BuildWebHost(string[] args) =&gt;
              WebHost.CreateDefaultBuilder(args)
                  .ConfigureAppConfiguration((builderContext, config) =&gt;
                  {
                      var env = builderContext.HostingEnvironment;
  
                      config.AddJsonFile("appsettings.json", false, true)
                          .AddJsonFile($"appsettings.{env.EnvironmentName}.json", true, true);
  
                      if (env.IsDevelopment())
                          config.AddUserSecrets&lt;Startup&gt;();
  
                      config.AddEnvironmentVariables();
                  })
                  .UseSetting("detailedErrors", "true")
                  .UseApplicationInsights()
                  .UseStartup&lt;Startup&gt;()
                  .CaptureStartupErrors(true)
                  .Build();
  </code></pre>