我已经转换我的应用程序,从.NET 1.1到.NET 3.5,不幸的是恶性的标签不支持.NET 3.5。所以我试图用标签来直接揭开序幕的MSBuild。
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.
下面是我的.NET 1.1:
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.
我该怎么传递到MSBuild的复制功能?
What do i pass to msbuild to replicate the functionality?
我认为它可以用以下两种方式之一来完成。通过使用 AdditionalLibPaths 或 AssemblySearchPaths ,它们被描述 MSDN上的。
I think it can be done with one of two options. Either by using AdditionalLibPaths or AssemblySearchPaths, which are described on MSDN.
类似如下:
<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>