Resharper intellisense suggests wrong path in MVC 6

删除回忆录丶 提交于 2019-12-11 00:36:23

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!