Rider MVC .NET CORE Paths wwwroot

Rider's intellisense does not recognize that items in the "wwwroot" folder in a typical .NET Core (2.0) MVC app are actually served at the root of where Kestral is hosting.

For example:

    A file in the wwwroot folder physically at:  /wwwroot/images/img.jpg

is served at

    http://localhost:5000/images/img.jpg

 

Rider throws intellisense errors if I use the proper (served) path (though it works as expected in the browser).

How can I get Rider to recognize this and stop underlining everything in red?

 

Please sign in to leave a comment.