c# - msbuild does not compile all .cs files in project -
i have .net solution builds locally, on our build server fails build, errors like:
the type or namespace name 'xxx' not exist in namespace 'foo.bar' (are missing assembly referece?)
the strange thing i've noticed when inspect dll compiled locally decompile, type xxx exists in foo.bar.dll. when inspect foo.bar.dll compiled on build server type xxx not exist, in fact non of classes in foo.bar namespace exist in dll.
in example, namespace foo.bar contains classes attributed serializable, xmltypeattribute , xmlroot, affect way msbuild builds project?
check build generation order.(right click on project, project dependency, build generation order) seem project reference foo.bar.dll compiled before foo.bar.dll add foobar denpendency of project. compile in local because have compiled manually foobar before
Comments
Post a Comment