I've converted my app from .NET 1.1 to .NET 3.5 and unfortunately NAnt's tag does not support .NET 3.5. So I am trying to use the tag to kick off msbuild directly.
Here is what I have for .NET 1.1:
<solution solutionfile="MyApp.sln"
configuration="ServerDebug" outputdir="MyApp\bin\ServerDebug">
<assemblyfolders>
<include name="Dependencies\Libs\bin\ServerDebug"/>
</assemblyfolders>
</solution>
I converted it to
<exec program="msbuild">
<arg value="MyApp.sln /p:Configuration=ServerDebug;OutDir=bin\ServerDebug\" />
</exec>
So everything is working fine, except that I can't figure out how to replicate the really convinient tag, which gives the compiler a hint as to where to look for dependecies.
What do i pass to msbuild to replicate the functionality?
I think it can be done with one of two options. Either by using AdditionalLibPaths or AssemblySearchPaths, which are described on MSDN.
Something like the following:
<exec program="msbuild.exe">
<arg line="/p:Configuration=ServerDebug"/>
<arg line="/p:OutDir=bin\ServerDebug\" />
<arg line="/p:AssemblySearchPaths=Dependencies\Libs\bin\ServerDebug" />
<arg line="MyApp.sln" />
</exec>
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With