VB.Net project throwing errors when executing Clean Solution

M

Mark

Hi...

We've got one vb project in our solution (most of our code is written in
C#). It references 5 other assemblies. For some reason, when we try to
Clean Solution, the VB project throws 43 errors and 1 spurrious warning.

The 43 errors all center around the other referenced assemblies (2 errors
for each assembly saying it can't find the dll, then 33 errors for every
class referenced in the other assemblies).

The warning is also weird. There's a little chunk of code that says
Dim foo As String = Object.GetItem("idstring")
If IsNumeric(foo) Then
....
End If

The warning is on the IsNumeric(foo) saying that it's been used before it
was initialized.

I assume this is a follow-on from the missing dll (and object) error, but it
still seems weird that it would make a Warning out of it. If it finds the
reference, the code clearly initializes the var before using.

Is there any way to get VB to shut up about all this spurrious stuff? Or is
this just another reason to move all the code to C#?

Thanks
Mark
 
W

WenYuan Wang [MSFT]

Hello Mark,

According to your description, VS IDE throw 45 errors and 1 warning when
you clean the solution. You want to get rid of them, correct? Please don't
hesitate to correct me if I misunderstood anything here.

"Clean Solution" doesn't compile the solution. It removes the
intermediary/temporary files the compiler created. In my opinion, I'm
suspect this issue is related to your particular project configuration. To
resolve this issue more quickly, is it possible for you to package the
solution and sent it to me ([email protected]). Thereby, I can
reproduce the issue on my side and drill into it. Otherwise, I suggest you
may try to remove the referenced assemblies one by one. Thereby, you can
check which project accused the issue.

Hope this helps. If you have anymore concern, please feel free to update
here again. It's my pleasure to assist you.
Have a great day,
Best regards,

Wen Yuan
Microsoft Online Community Support
==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.
 

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

Top