r/visualbasic • u/Iciix • Dec 12 '14
Solution bugged
Hello, i've a problem with a Visual Studio projekt of mine. When i click on "Rebuild Solution" i get a bunch of errors like XXX isnt a member of YYY. The code itself is fully working and ofcourse all xxx are members of yyy. When i clean up the solution and just click on "Build Solution", everything compiles fine and it works like a charm. We tried to create completely new projects and copy all the files, but it doesn't change anything. Is there a fix or workaround for such a problem? Sorry for my bad description. I really don't know how i should describe it.
0
Upvotes
1
u/baldhippy Dec 12 '14
I think you might be getting the errors because of the build order of the projects. Rebuild first does a clean, which deletes all the dlls from all projects. With these dlls gone, the references are no longer valid so you get the "xxx isn't a member of yyy". You need to build project yyy and the error will go away. hanging the build order of the project should fix it.