Resharper intellisense在MVC 6中提出了错误的路径 [英] Resharper intellisense suggests wrong path in MVC 6
问题描述
这是我的解决方案:
我想要导入 site.css
。我知道正确的路径是:< link rel =stylesheethref =〜/ css / site.css/>
。
I want to import site.css
. I know the correct path is: <link rel="stylesheet" href="~/css/site.css" />
.
但是,正如您所看到的,Resharper正在为我提供一条不同的道路。按照Resharper intellisense,路径是:< link rel =stylesheethref =〜/ wwwroot / 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.
所以,我的问题是:如何在Resharper中修复此问题?如何让Reshaper知道它不应该在路径中包含 wwwroot
?
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?
我使用 Visual Studio 2015
, Resharper 9.2
。感谢您的帮助。
I'm using Visual Studio 2015
, Resharper 9.2
. Thanks for your help.
推荐答案
A bug has already been filed on their tracker and as per one of the developer:
R#10.0.1和10.0.2正确处理wwwroot设置。
R# 10.0.1 and 10.0.2 handles wwwroot setting correctly.
这篇关于Resharper intellisense在MVC 6中提出了错误的路径的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!