P
Paul Hale
I am working on a large project using VS2008 and the 3.5 Framework.
Occasionally (and it seems to becoming more frequent) I get the dreaded
“Circular file references are not allowed†error when building my project. I
know this is related to user controls that reference each other. I have spent
many hours making sure that UC’s don’t reference back to each other and as
far as I can tell they don’t.
The trick I have been using to circumnavigate the error is to simply build
the project again. I normally find that on the 3rd or 4th build the project
builds fine with no errors. I also sometimes insert a blank line in my code
behind file to try and trick the compiler into thinking that the code has
changed and this sometimes seems to work!?!
This is all very disconcerting. I would prefer it if when I got a “Circular
file references are not allowed†error the project would not build full stop
as this would make it easier to try and find the problem. Im aware of turning
batch compiling off but would rather not do this as to tell the truth I don’t
fully understand what batch compiling is (yes I have Goggled it and am still
none the wiser).
Has anybody had similar problems? Can anybody give me any advice on how I
can fix this problem please?
Occasionally (and it seems to becoming more frequent) I get the dreaded
“Circular file references are not allowed†error when building my project. I
know this is related to user controls that reference each other. I have spent
many hours making sure that UC’s don’t reference back to each other and as
far as I can tell they don’t.
The trick I have been using to circumnavigate the error is to simply build
the project again. I normally find that on the 3rd or 4th build the project
builds fine with no errors. I also sometimes insert a blank line in my code
behind file to try and trick the compiler into thinking that the code has
changed and this sometimes seems to work!?!
This is all very disconcerting. I would prefer it if when I got a “Circular
file references are not allowed†error the project would not build full stop
as this would make it easier to try and find the problem. Im aware of turning
batch compiling off but would rather not do this as to tell the truth I don’t
fully understand what batch compiling is (yes I have Goggled it and am still
none the wiser).
Has anybody had similar problems? Can anybody give me any advice on how I
can fix this problem please?