How can I check for missing references in VB.NET?
Posted
by
Tea With Cookies
on Stack Overflow
See other posts from Stack Overflow
or by Tea With Cookies
Published on 2013-10-19T21:43:05Z
Indexed on
2013/10/19
21:54 UTC
Read the original article
Hit count: 225
vb.net
|vb.net-2010
I need to check if all the references in a project exist to avoid possible errors but I can't find anywhere how to do it in VB.NET. I can do it in VBA like this:
Dim vbProj As VBProject
Dim chkRef As Reference
Set vbProj = ThisWorkbook.VBProject
For Each chkRef In vbProj.References
If chkRef.IsBroken Then
Debug.Print chkRef.Name " reference doesn't exist!"
End If
Next
How do I accomplish this in VB.NET?
© Stack Overflow or respective owner