【问题标题】:Using Nant build project and run the NUnit使用 Nant 构建项目并运行 NUnit
【发布时间】:2012-04-20 03:35:41
【问题描述】:

我想用Nant建一个项目,导入dll文件来执行NUnit。

但我不知道如何编写 xml 代码来构建 csproj 文件。

这是我的 xml:


<?xml version="1.0"?>
<project name="Aaron.Guo.Second.Project" default="build" basedir=".">
  <property name="basename" value="A"/>
  <property name="debug" value="true"/>
  <target name="build">
    <csc target="library" debug="false" warnaserror="true" output="D:/A/bin/A1.dll">
      <sources basedir="D:/A">
        <include name="**/*.cs" />
      </sources>
      <references>
        <include name="D:/A/bin/*.dll"/>
      </references>
    </csc>
  </target>
</project>

我只知道“include name”可以建立cs文件

但它也显示无法引用 .us 的重复使用

我将参考文件放在 D:/A/bin/ 方向。

如何编写xml?

【问题讨论】:

    标签: reference nunit nant csproj


    【解决方案1】:
    猜你喜欢
    • 1970-01-01
    • 2010-09-10
    • 2010-11-15
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2010-11-16
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多