问题
Here is my solution:
I want to import site.css
. I know the correct path is: <link rel="stylesheet" href="~/css/site.css" />
.
But as you can see, Resharper is suggesting me a different path. Follow Resharper intellisense, the path would be: <link rel="stylesheet" href="~/wwwroot/css/site.css" />
. This is a wrong path, and the file will not be imported.
So, my question is: how can I fix this in Resharper? How to let Reshaper know that it shouldn't include wwwroot
in the path?
I'm using Visual Studio 2015
, Resharper 9.2
. Thanks for your help.
回答1:
A bug has already been filed on their tracker and as per one of the developer:
R# 10.0.1 and 10.0.2 handles wwwroot setting correctly.
来源:https://stackoverflow.com/questions/34616208/resharper-intellisense-suggests-wrong-path-in-mvc-6