metadata C# VS2005

metadata C# VS2005

am 27.11.2007 19:36:08 von raulavi

Hope I am in the right place to ask this:
Why sometimes you get metada and sometimes you get the actual coding source?

I right click on a class Name on C# code and select "go to definition"

can this be handle on purpose (always get Metadata) ?

Thanks

RE: metadata C# VS2005

am 28.11.2007 14:49:01 von unknown

Hi raulavi,

VS.NET will take you to the actual code when 'Going To Definition' if the
code is either in the same project or in another project within the same
solution (and the reference to that project is 'by project' actually).

It will take you to metadata whenever the reference is to a DLL.

HTH,
--
_____________
Adam Bieganski
http://godevelop.blogspot.com


"raulavi" wrote:

> Hope I am in the right place to ask this:
> Why sometimes you get metada and sometimes you get the actual coding source?
>
> I right click on a class Name on C# code and select "go to definition"
>
> can this be handle on purpose (always get Metadata) ?
>
> Thanks

RE: metadata C# VS2005

am 28.11.2007 15:54:01 von raulavi

Thanks Adam at least is a clue:
any other cases.
my solution has at least two projects and the referenced class is within the
solution, but still, metadata is shown.



"Adam Bieganski" wrote:

> Hi raulavi,
>
> VS.NET will take you to the actual code when 'Going To Definition' if the
> code is either in the same project or in another project within the same
> solution (and the reference to that project is 'by project' actually).
>
> It will take you to metadata whenever the reference is to a DLL.
>
> HTH,
> --
> _____________
> Adam Bieganski
> http://godevelop.blogspot.com
>
>
> "raulavi" wrote:
>
> > Hope I am in the right place to ask this:
> > Why sometimes you get metada and sometimes you get the actual coding source?
> >
> > I right click on a class Name on C# code and select "go to definition"
> >
> > can this be handle on purpose (always get Metadata) ?
> >
> > Thanks

Re: metadata C# VS2005

am 29.11.2007 02:06:01 von obermd.

"Adam Bieganski" wrote in message
news:1C155250-0BD7-43DC-9349-8EBA12081C3C@microsoft.com...
> Hi raulavi,
>
> VS.NET will take you to the actual code when 'Going To Definition' if the
> code is either in the same project or in another project within the same
> solution (and the reference to that project is 'by project' actually).
>
> It will take you to metadata whenever the reference is to a DLL.
>

I have the same problem. If I "clean" and then "rebuild all" the solution,
I will get the source code sometimes. All other times I get the metadata.
The VB IDE doesn't seem to have this problem, so I would guess this is a
flaw in the C# IDE.

Mike Ober.


> HTH,
> --
> _____________
> Adam Bieganski
> http://godevelop.blogspot.com
>
>
> "raulavi" wrote:
>
>> Hope I am in the right place to ask this:
>> Why sometimes you get metada and sometimes you get the actual coding
>> source?
>>
>> I right click on a class Name on C# code and select "go to definition"
>>
>> can this be handle on purpose (always get Metadata) ?
>>
>> Thanks
>