⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 cpp-managed-failures.build

📁 NUnit-2.4.1-net-2.0.rar NUnit 测试用例详细的步骤
💻 BUILD
字号:
<?xml version="1.0"?>
<project name="Cpp-Managed-Failures" default="build">

  <property name="output.dir" value="../../../bin" />
  <property name="output.dll" value="../../../bin/cpp-managed-failures.dll" />

  <target name="clean">
    <delete file="${output.dll}" />
  </target>

  <target name="build">

    <readregistry property="vs.2003.path" 
      key="Software\Microsoft\VisualStudio\7.1\InstallDir" 
      hive="LocalMachine" failonerror="false"
      unless="${property::exists( 'vs.2003.path' )}"/>

    <property name="build.config" value="Debug"
      unless="${property::exists('build.config')}" />

    <fail message="VS 2003 must be installed to build this sample"
      unless="${property::exists( 'vs.2003.path' )}"/>

    <mkdir dir="${output.dir}" unless="${directory::exists(output.dir)}" />
    <copy file="../../../../bin/nunit.framework.dll" todir="${output.dir}" 
      if="${file::exists('../../../../bin/nunit.framework.dll')}" />

    <exec program="devenv.exe" basedir="${vs.2003.path}" workingdir="."
      commandline="cpp-managed-failures.sln /build ${build.config} /out ${output.dll}" />

  </target>

  <target name="rebuild" depends="clean,build" />

  <target name="package">
    <copy todir="${package.samples.dir}/cpp/managed/failures">
      <fileset basedir=".">
        <include name="cpp-managed-failures.vcproj" />
        <include name="cpp-managed-failures.build" />
        <include name="AssemblyInfo.cpp" />
        <include name="cppsample.cpp" />
        <include name="cppsample.h" />
      </fileset>
    </copy>
  </target>

</project>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -