Friday 15 May 2015

c# - ResolveAssemblyReference slowness -- msbuild speed? -



c# - ResolveAssemblyReference slowness -- msbuild speed? -

i have project maybe 200+ projects in it. it's old bird. create local builds faster, ran diagnostic build. seems resolving assembly , project references taking msbuild awhile. vs seems fast, there way msbuild utilize cache these references, or somehow resolve faster?

it seems msbuild wouldn't need resolve assembly reference(s) incremental build, right?

is there way msbuild study internal dependency tree this?

vs uses same msbuild engine perform build, whatever performance observe vs, should able accomplish starting build command line using msbuild.exe.

there couple of points maintain in mind, might explain difference in build speed between vs , command line:

if build "project only" in vs, i.e. right click on project node, select "build project (this)" "project only" menu, build skips building referenced projects. fastest way incremental build, have know ahead of time dependencies up-to-date.

if want replicate command line, pass parameter buildprojectreferences=false. e.g:

msbuild myproject.csproj /p:buildprojectreferences=false the defaults vs might set multi-proc build, in many cases increases build speed. on command line, defaults perform single-proc build, appear much slower vs. pass in /m msbuild command line. e.g.: msbuild mysolution.sln /m

c# msbuild incremental-build

No comments:

Post a Comment