Nant (0.86)가있는 dll에 .net 3.5 클래스 라이브러리를 컴파일하는 방법은 무엇입니까?Nant를 사용하여 클래스 라이브러리를 작성하는 방법
가 어떻게 GAC에 시스템 DLL을 참조 가야합니까 :
이것은 내가 지금까지 가지고 무엇인가? 이 행은 작동하는 것처럼 보입니다.
<?xml version="1.0"?>
<project name="MyCorp.Data" default="all">
<property name="debug" value="true" />
<target name="all"/>
<target name="clean" description="remove all build products">
<delete dir="build" if="${directory::exists('build')}" />
</target>
<target name="init">
<mkdir dir="build" />
</target>
<target name="compile"
depends="init"
description="compiles the application">
<csc target="library" output="build\${project::get-name()}.dll" debug="${debug}">
<sources>
<include name="src\MyCorp.Data\**\*.cs" />
</sources>
<references>
<include name="tools\subsonic\subsonic.dll"/>
<include name="lib\log4net\log4net.dll"/>
<include name="System.ComponentModel.DataAnnotations.dll"/>
</references>
</csc>
</target>
</project>
나는 당신이 목표로 닷넷의 버전 목록을 넣으십시오 JP Boodhoos post
정말요? Nant는 GAC에 액세스 할 수 없습니까? – Dan
이것은 아마도 좋은 일 이겠지만 코드가 더 이식성있게 만들어줍니다. GAC에서 누가 무엇을 가지고 있는지 보장 할 수는 없습니다. 동료가 System.ComponentModel.DataAnnotations을 가지고 있지 않을 수도 있습니다. –
인수가 시스템 dll에 적용된다고 생각하지 마십시오. – Dan