# Passing /nodereuse:false to msbuild

**URL:** <https://www.finalbuilder.com/forums/t/passing-nodereuse-false-to-msbuild/1567>\
**Category:** Discussion\
**Created:** [August 18, 2010, 1:13am UTC](https://www.finalbuilder.com/forums/t/passing-nodereuse-false-to-msbuild/1567 "2010-08-18T01:13:13Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![karmasponge](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/k/4491bb/32.png) [@karmasponge](https://www.finalbuilder.com/forums/u/karmasponge)\
**Post date:** [August 18, 2010, 1:13am UTC](https://www.finalbuilder.com/forums/t/passing-nodereuse-false-to-msbuild/1567/1 "2010-08-18T01:13:13Z")

</div>

&nbsp;

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

---

<div class="post-metadata">

**Author:** ![Vincent](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/vincent/32/938_2.png) [@Vincent](https://www.finalbuilder.com/forums/u/Vincent)\
**Post date:** [August 19, 2010, 11:51am UTC](https://www.finalbuilder.com/forums/t/passing-nodereuse-false-to-msbuild/1567/2 "2010-08-19T11:51:20Z")

</div>

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](http://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]

---

<div class="post-metadata">

**Author:** ![karmasponge](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/k/4491bb/32.png) [@karmasponge](https://www.finalbuilder.com/forums/u/karmasponge)\
**Post date:** [August 20, 2010, 1:35am UTC](https://www.finalbuilder.com/forums/t/passing-nodereuse-false-to-msbuild/1567/3 "2010-08-20T01:35:43Z")

</div>

Thanks,   
  
 I’ll retest. Seems that we have to use [devenv.com](http://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.
