Class Metadata

  • Thread starter Thread starter DBM
  • Start date Start date
D

DBM

I'm writing a relatively straight forward desktop CRUD application. The
design is a 4 layer model with individual layers decoupled by use of
interfaces and the source is under VSS control. As I've been debugging,
I've run into two issues that are causing me heartache.

The first issue is that when I write click on a pointer to another class
method to Go To Definition for that class or method, I'm sent to the class's
metadata. It also appears that after updating the actual class (add a
method or property), intellisence doesn't reflect the most recent changes,
the new method is not found and again I'm forwarded to the metadata.
The second issue is that when debugging, I get warnings on my breakpoints
indicating that the source code is different from the original version and I
need to set the properties on the breakpoint to allow the source code to be
different from the original version before the breakpoint will work.

Suggestions on either of these? Any help you could provide would be greatly
appreciated.

TIA

Brad
 
Witin the context of a single solution (.sln), you can solve this by
ensuring that project references are used instead of raw assembly
(.dll) references; try removing the references between the offending
projects, and re-add them, but from the projects tab (IIRC; no SV in
front of me...).

If you can't use project references, then investigate where the
references *are* pointing (look in the properties window with the
reference selected in the solution explorer); if your "Bar.dll"
assembly is referencing "Foo.dll", but Foo is referenced from
somewhere in Bar's tree, then you need to ensure that the reference
dll is manually updated. How to do this depends on the setup; for
example, one feasible way of working with VSS) would be to have {Foo}/
bin/Release/Foo.dll "shared" into {Bar}/Assemblies/Foo.dll (or
whatever), and Bar references Foo via Assemblies/Foo.dll; in this case
simply check-out Foo/bin/Release, do a Release build and check-in;
then get latest of Bar/Assemblies.

But again; it depends on the exact setup.

Marc
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top