Hi,
I use the following code to iterate thru the web project references. For
some reason, the collection contains assembly references, but no references
to projects.
Project vsproject;
VSWebSite vsWebSite = vsProject.Object as VSWebSite;
foreach (AssemblyReference ar in vsWebSite.References ) {}
If I susbscrie to the evens, I get all the notifications 'reference added'
if I add the reference manually from the solution explorer. But I cannot get
references, that exist in the solution at the moment of startup.
What am I doing wrong?

Signature
Sergey V. Coox
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"
Bryan Sullivan - 30 Aug 2005 21:27 GMT
The project references should show up as AssemblyReference objects with a
ReferenceKind value of AssemblyReferenceClientProject.
Project vsproject;
VSWebSite vsWebSite = vsProject.Object as VSWebSite;
foreach (AssemblyReference ar in vsWebSite.References )
{
if (ar.ReferenceKind ==
AssemblyReferenceType.AssemblyReferenceClientProject) { }
}
> I use the following code to iterate thru the web project references. For
> some reason, the collection contains assembly references, but no references
[quoted text clipped - 3 lines]
> VSWebSite vsWebSite = vsProject.Object as VSWebSite;
> foreach (AssemblyReference ar in vsWebSite.References ) {}