Hi,
I am running Version 8.0.50727.867 (vsvista.050727-8600) of
VS2005. In my C# program Find All References returns only a subset
of all references, the definition of the variable and where the
variable appears in a return statement. No other references to the
variable are shown, including either the right or left side of
assignments. How can I fix Find All References?
Thanks,
Mark
WenYuan Wang [MSFT] - 03 Oct 2007 08:04 GMT
Hello Mark,
According to your description, you noticed an issue that "Find All
Reference" feature cannot return the reference to the variable (either
right or left side of assignment). If I misunderstood anything here, please
correct me.
Vsvista.050727-8600 is fine. This means your VS 2005 has applied last
Service Pack.
I tried it on my Vista Machine (Vsvista.050727-8600), but I failed to
reproduce this issue on my side.
I have tried following code snippet on my test machine,
private void button1_Click(object sender, EventArgs e)
{
int a = 0;
a = 10; //right side of assignment
int b = a; //left side of assignment
}
After I right click on the line "int a=0","find all reference" return the
following result for me.it seems all variables (right/left of assignment)
have been caught. Am I missing something here?
C:\Users\v-wywang\Documents\Visual Studio
2005\Projects\ConsoleApplication56\WindowsApplication13\WindowsApplication13
\Form1.cs - (20, 17) : int a = 0;
C:\Users\v-wywang\Documents\Visual Studio
2005\Projects\ConsoleApplication56\WindowsApplication13\WindowsApplication13
\Form1.cs - (21, 13) : a = 10; //right side of assignment
C:\Users\v-wywang\Documents\Visual Studio
2005\Projects\ConsoleApplication56\WindowsApplication13\WindowsApplication13
\Form1.cs - (22, 21) : int b = a; //left side of assignment
For such VS IDE issue, it is necessary for us to reproduce the issue on our
side. Would you please give us detailed reproduce steps? Thereby, we can
perform further research and give you some advice. Thanks.
If you have any more cercen, please feel free to update here. It's my
pleasure to assist you.
Have a great day,
Best regards,
Wen Yuan
Microsoft Online Community Support
==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.
WenYuan Wang [MSFT] - 05 Oct 2007 13:28 GMT
Hello Mark
This is Wen Yuan again. Have you resolved the issue so far?
If the issue still persists, is it possible for you to paste a detailed
reproduce steps?
Thereby, I can perform further reseach. We are glad to assist you.
Have a great day,
Wen Yuan
Microsoft Online Community Support
==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.