Referenced namespaces not recognized during compile


(Theo) #1

I have the problem now again in a project; this is getting really annoying.
I will leave the project open, and hope that the problem does not go away.


image

But Goto Definition works perfectly …

The references it can not find are all in Oxygene projects.

@ck can you debug it on my computer on Monday?


(marc hoffman) #2

an I see the complete build log?

(What’s this obsession with posting the most minimal part of a log possible, hiding all that could be relevant).

It seems the compiler is either not getting a source file or a reference that defines buildIT. Can I assume from the title that tis should come from a referenced dll or project? Is it a project reference or a .dll reference? Is other project being built with EBuild, or with the .Legacy.targets file? What build is this, 2313?

All important questions, most of which I could answer myself if, having the compete log instead of a cropped-to-death screenshot.

Note that EBuild will fail on failed references. So if this is EBuild, the reference is not unresolved, its not there (for whatever reasons). If this is Legacy.targets, i.e. MSBuild, it might have just failed to resolve quietly — why knows, MSBuild doesn’t tell us. One of the reasons why EBuild is stricter there.

Note also that if one of the projects uses EBuild and the other does not, you could be running in the same (open) issue we already discussed, where project references between MSBuild and EBuild don’t resolve properly (“80347: VS/EBuild: MSBuild project cannot see project reference to EBuild project”). That’s still open, so if that’s the scenario, it’s expected that that isn’t fixed yet. Go all-or-nothing EBuild or Legacy, to work around that.


(Theo) #3

So that means that I have to set all projects to legacy to compile the webservice?


(Theo) #4

That means I have to stay at 2309 until it is solved.


(Theo) #5

Workaround given in Bug: Can not publish webservice


(marc hoffman) #6

FWIW, I believe 80347 is fixed for todays build…


(Theo) #7

Fix confirmed - when I set the webservice to legacy (and the DLL’s not), everything works.