3

What is the proper way to reconfigure the default "wwwroot" folder to something else or, additionally, default to an inner folder?

My current structure has wwwroot/dist as the root folder. I added the line

.UseWebRoot("wwwroot/dist")

to the WebHostBuilder() configuration and this works. However, Intellisense is now complaining throughout the application for my file paths. It's still expecting "wwwroot" to be the root folder.

Tseng
  • 61,549
  • 15
  • 193
  • 205
Jake Shakesworth
  • 3,335
  • 4
  • 29
  • 43
  • 1
    You got a bad habit of forcing tags into the question title. Please read http://stackoverflow.com/help/tagging on how to correctly use tags – Tseng Dec 04 '16 at 21:59
  • Is Intellisense the only issue here? Is `UseWebRoot` otherwise working fine? If so, I'm guessing this is a bug in Visual Studio. – Nate Barbettini Dec 06 '16 at 00:02

0 Answers0