为什么会出现错误“无法解析符号< symbolname>"在ReSharper中? [英] Why do I get an error 'Cannot resolve symbol <symbolname>' in ReSharper?

查看:84
本文介绍了为什么会出现错误“无法解析符号< symbolname>"在ReSharper中?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

使用VS2008和R#5,我遇到了一种奇怪的情况,在aspx页面上,我不断得到

 无法解析符号'symbolname' 

但是代码可以编译并正常运行.尽管对此进行修复将是不错的选择,但我只是想弄清楚自己是否迷失了方向.

CodeFile指令和Inherits指令很好.如果我编译应用程序,或者只是让devenv坐一会儿,它就会消失,但是一旦我保存 aspx [通过ctrl + s] R#突然遇到了Inherits属性的麻烦,并且翻转页面上的每种方法(OnClick等).

 //当然是匿名的,但完整无缺<%@页面AutoEventWireup ="true" CodeFile ="TestPage.aspx.cs" Inherits ="TestPage" Language ="C#" MasterPageFile =〜/MasterPage.master" Title =测试页面标题"%> 

这主要只是个不满,因为既然代码可以编译,但这不会阻止我执行我需要做的事情.

我会向JetBrains网站发布一个错误报告,但首先我想知道我并不孤单.可能是我的机器.也许当我在几周后使用VS2010时,它会消失吗?

解决方案

因此,尚无最终解决方案.根据技术支持,这是一个已知问题,并且正在研究中.目前尚未确定最终解决方案.如果您遇到类似的问题,请稍等.网址: http://youtrack.jetbrains.net/issue/RSRP-178681

Using VS2008 and R# 5 I'm running into an odd situation, where on an aspx page I keep getting

Cannot resolve symbol 'symbolname'

But the code compiles and runs fine. While having a fix for this would be great, I'm just trying to figure out if I'm losing my mind.

The CodeFile directive and Inherits directives are fine. If I compile the app or just let devenv sit for a bit it'll go away, but as soon as I save the aspx [via ctrl+s] R# suddenly has trouble with the Inherits attribute and flips out on every method in the page (OnClick etc).

// Anonymized of course but otherwise intact
<%@ Page AutoEventWireup="true" CodeFile="TestPage.aspx.cs" Inherits="TestPage" Language="C#" MasterPageFile="~/MasterPage.master" Title="Test Page Title" %>

This is mostly just a grievance, because since the code compiles it doesn't stop me from doing what I need.

I would post a bug report to the JetBrains site but first I would like to know I'm not alone. It could be my machine. Maybe when I roll to VS2010 in a couple weeks this will go away?

解决方案

So no final resolution yet. According to tech-support this is a known issue and is being researched. Final resolution undetermined at this time. If you're experiencing a similar issue, just hang tight. URL: http://youtrack.jetbrains.net/issue/RSRP-178681

这篇关于为什么会出现错误“无法解析符号&lt; symbolname&gt;"在ReSharper中?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆