溶液>来自以下的去;到<执行程序=的MSBuild>在南特 [英] Going from <solution> to <exec program=msbuild> in NAnt

查看:208
本文介绍了溶液>来自以下的去;到<执行程序=的MSBuild>在南特的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经转换我的应用程序,从.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>

这篇关于溶液&GT;来自以下的去;到&lt;执行程序=的MSBuild&GT;在南特的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆