Visual Studio build successful, MSBuild fails -


i trying clean , rebuild solution file multiple projects command line using msbuild. reason build fails (about 10% of built projects fail) , multiple errors like:

error cs0234: type or namespace name 'foo' not exist in namespace 'bar' (are missing assembly reference?)

now if clean , rebuild same solution file visual studio 2010 exact same configurations build no errors.

is there difference in setup or configuration of msbuild visual studio needs changed not aware of?

i had deal issue , turns out msbuild likes move built binaries binaries\release directory , reference instead of projects when builds things. after building copies files directory. explains why works in visual studio , not msbuild (i'm using tfs 1010).

in case had old binary version of dll being referenced project being built after 1 should have generated correct file. old 1 (binary) overwriting new 1 (built source) solution referencing binary 1 being built later in build.


Comments

Popular posts from this blog

javascript - RequestAnimationFrame not working when exiting fullscreen switching space on Safari -

Python ctypes access violation with const pointer arguments -