The name 'X' does not exist in the current context
See original GitHub issueHi. We’ve been having two problems with debugging our project, where we use Fody extensively.
First, which we have been living with for a long time, is that in watch/immediate window fully qualified type names must be used even if that. This is especially annoying with extension methods so that
System.Linq.Enumerable.Count(collection)
must be used instead of simple
collection.Count()
which fails saying that method Count
cannot be found. I managed to replicate this and it seem that it’s not exactly a PDB problem, because referencing a Fody-modified assembly works fine. The problem only occurs when the currently debugged code is built with Fody,.
The other problem seem to have started occuring very recently. Definitely in 1.23.x. For some local variables Visual Studio 2012 says that they are not in the current context much like in issue #120 though I was unable to replicate the issue just yet.
I’ve just updated to 1.24 and the problem is still there.
Would you like for me to supply some code to replicate the problems or is there something I could try first?
Issue Analytics
- State:
- Created 9 years ago
- Comments:22 (16 by maintainers)
havnt seen this one in a while so closing
@ptixed suggest u raise a new issue