Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Languages / C# / October 2007

Tip: Looking for answers? Try searching our database.

"go to definition" problem.  What changed?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Fred Hebert - 26 Oct 2007 14:24 GMT
I was thinking of switching to VS2005, so I sent off for and received a 120
evaluation kit.  This version was supposed to be the same as the full
version, but the key limits you to 120 days.  I installed it and began
learning how to use it.

I built several small C# test apps that use common classes in a dll that I
also wrote.  When I right click on a class that was defined in the dll and
select "go to definition" it would open the source file from the dll
project.  Great!

I decided to buy VS2005... After installation of the purchased version the
"go to definition" doesn't work the same way.  It always opens a meta data
fragment.  In most cases I am more interested in my comments in the actual
source, or something near the item I right clicked on.

According to the docs VS does this when it can not find the source.  I
don't quite understand this because I am opening the SAME solutions that
were created with the eval version and everything looks the same.

I have tried adding the dll to the current solution, not just the
reference, but I still won't find it.  Even if I have the source file open
in another tab.

If I right click on a class or variable in the "other tab" and select "go
to definition"  where the definition is elsewhere in the same file I get a
runtime error and VS closes!

If I run my app, I can trace into the actual source of the dll, so why cant
the "go to reference" find it?

This is very annoying.

Can anyone help?
Ignacio Machin ( .NET/ C# MVP ) - 26 Oct 2007 15:22 GMT
Hi,

If it does do that is cause it has no knowledge of where the source code is.

You can include the other's prject in your solution and it will work as
expected.

Signature

Ignacio Machin
http://www.laceupsolutions.com
Mobile & warehouse Solutions.

>I was thinking of switching to VS2005, so I sent off for and received a 120
> evaluation kit.  This version was supposed to be the same as the full
[quoted text clipped - 30 lines]
>
> Can anyone help?
Fred Hebert - 26 Oct 2007 15:48 GMT
Not to be picky, but I have already tried that...

> According to the docs VS does this when it can not find the source.  I
> don't quite understand this because I am opening the SAME solutions that
[quoted text clipped - 3 lines]
> reference, but I still won't find it.  Even if I have the source file open
> in another tab.

Initially I created the DLL as a stand alone solution.

Next I created a new Windows Form solution.  I added a reference to the
DLL (Add Reference>Browse and double click on the actual dll).  I got
this from an example...

I added a using MyDllNamespace statement and created some instances of a
couple of the classes in the dll.

Compiled and ran, all OK, and I could just right click and "go to
definition" and it would take me to the actual source in the dll
project.

After install of the full version, I open the SAME Windows Form solution
that was previously created and the "go to definition" gives me
metadata.

I tried to Add Existing Project to the solution and add the dll project,
but it did not fix the metadata problem.

I am new to VS (but not programming).  What am I missing?

If it matters it is VS2005 pro...

"Ignacio Machin \( .NET/ C# MVP \)" <machin TA laceupsolutions.com>
wrote in news:e3dVZu9FIHA.5752@TK2MSFTNGP02.phx.gbl:

> Hi,
>
[quoted text clipped - 3 lines]
> You can include the other's prject in your solution and it will work
> as expected.
Christof Nordiek - 26 Oct 2007 16:03 GMT
> Initially I created the DLL as a stand alone solution.
>
> Next I created a new Windows Form solution.  I added a reference to the
> DLL (Add Reference>Browse and double click on the actual dll).  I got
> this from an example...

<snip>

> Compiled and ran, all OK, and I could just right click and "go to
> definition" and it would take me to the actual source in the dll
> project.

I'm not sure, why this works. I wouldn't expect this.

> After install of the full version, I open the SAME Windows Form solution
> that was previously created and the "go to definition" gives me
> metadata.
>
> I tried to Add Existing Project to the solution and add the dll project,
> but it did not fix the metadata problem.

I suppose you still linking to the dll instead of the project.

Remove the reference, and then choose add reference and select the dll
project from the projects tab. That should work.

HTH
Christof
Fred Hebert - 26 Oct 2007 17:05 GMT
BINGO!

Thanks.

Sometimes it's the little things...

I am not sure why the other worked either.  The eval version did have
some other stuff like team source and other things.  The version I
bought was the Professional, not the enterprise...

I am just glad I have a solution, because I use that al lot.

I am developing/comverting a large app with 17 variants and putting the
common code in the dll.  So I am sort of building both projects in
parallel and go back and forth a lot.

Thanks.

"Christof Nordiek" <cn@nospam.de> wrote in news:ulfqwF#FIHA.4956
@TK2MSFTNGP06.phx.gbl:

>> Initially I created the DLL as a stand alone solution.
>>
[quoted text clipped - 24 lines]
> HTH
> Christof
Bob Powell [MVP] - 28 Oct 2007 17:31 GMT
You do realise that VS2008 is avaliable next month??

Signature

--
Bob Powell [MVP]
Visual C#, System.Drawing

Ramuseco Limited .NET consulting
http://www.ramuseco.com

Find great Windows Forms articles in Windows Forms Tips and Tricks
http://www.bobpowell.net/tipstricks.htm

Answer those GDI+ questions with the GDI+ FAQ
http://www.bobpowell.net/faqmain.htm

All new articles provide code in C# and VB.NET.
Subscribe to the RSS feeds provided and never miss a new article.

>I was thinking of switching to VS2005, so I sent off for and received a 120
> evaluation kit.  This version was supposed to be the same as the full
[quoted text clipped - 30 lines]
>
> Can anyone help?

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.