Passing /nodereuse:false to msbuild

 

While evaluating final builder 7.0.0.515 I noticed that one of the msbuild.exe nodes (as microsoft calls them) was locking resources (a folder directory I believe) which was preventing the directory from being deleted.

I noticed the msbuild.exe documentation details a /nodereuse option which I believe is on by default (and I believe devenv.com explicitly enables it). This option leaves msbuild.exe instances around so that they can be reused but that's not the behaviour I would like.

I attempted to set 'ExtraCmdLineParams' to '/nodereuse:false' in the 'Build VS.NET solution' action (with the 'msbuild' flag both on/off) but it does not appear to be passed to msbuild.exe. Is this possible? Has anyone attempted this?

Thanks

Hi Simon

I just took a look at the code, and we are passing the ExtraCmdLineParams to msbuild. When I do that I see this in the log :

[code]Running C:\Windows\Microsoft.NET\Framework\v4.0.30319\MSBuild.exe with parameters : /nodereuse:false /t:Build /logger:FinalBuilderLogger,"I:\FBMainline\FinalBuilder\FinalBuilder.MSBuild.Logging.v3.5.dll" /noconlog /p:Configuration="Debug";Platform="x86" /v:normal /m "C:\Users\Vincent\Documents\Visual Studio 2010\Projects\ConsoleApplication3\ConsoleApplication3.sln"[/code]


Thanks,

I’ll retest. Seems that we have to use devenv.com anyways due to some issues with msbuild randomly not finding silverlight assemblies. I’m guessing that in this case we cannot override what it passes to msbuild.