log4net.include
来自「SharpDevelop2.0.0 c#开发免费工具」· INCLUDE 代码 · 共 277 行 · 第 1/2 页
INCLUDE
277 行
<echo message="Cleaning the ${current.bin.dir} binaries directory." />
<delete dir="${current.bin.dir}" if="${directory::exists(current.bin.dir)}" />
<mkdir dir="${current.bin.dir}" />
</target>
<target name="clean-current-sdkdoc-dir" depends="check-current-sdkdoc-dir" description="cleaning the current SDK documentation directory">
<echo message="Cleaning the ${current.sdkdoc.dir} SDK documentation directory." />
<!--
Temporarily disabled SDK generation through NAnt build
<delete dir="${current.sdkdoc.dir}" if="${directory::exists(current.sdkdoc.dir)}" />
<mkdir dir="${current.sdkdoc.dir}" />
-->
</target>
<!-- Targets for setting up the environment -->
<target name="set-build-configuration" depends="check-current-build-config">
<if test="${not target::exists('set-' + current.build.config + '-build-configuration')}">
<fail message="The ${current.build.config} build configuration is not supported by log4net." />
</if>
<call target="set-${current.build.config}-build-configuration" />
</target>
<target name="set-debug-build-configuration">
<property name="build.debug" value="true" />
<property name="build.defines.csc" value="DEBUG,TRACE" />
<property name="build.defines.jsc" value="DEBUG,TRACE" />
<property name="build.defines.vbc" value="DEBUG=True,TRACE=True" />
<property name="build.defines.vjc" value="DEBUG,TRACE" />
<property name="build.defines.cl" value="/D _DEBUG" />
<property name="sdkdoc.debug" value="false" />
<property name="current.build.config" value="debug" />
<call target="set-build-configuration-flags" />
</target>
<target name="set-release-build-configuration">
<property name="build.debug" value="false" />
<property name="build.defines.csc" value="TRACE,STRONG" />
<property name="build.defines.jsc" value="TRACE,STRONG" />
<property name="build.defines.vbc" value="TRACE=True,STRONG=True" />
<property name="build.defines.vjc" value="TRACE,STRONG" />
<property name="build.defines.cl" value="/D STRONG" />
<property name="sdkdoc.debug" value="false" />
<property name="current.build.config" value="release" />
<call target="set-build-configuration-flags" />
</target>
<target name="set-build-configuration-flags" depends="check-current-build-config">
<property name="current.build.config.debug" value="false" />
<property name="current.build.config.release" value="false" />
<property name="current.build.config.${current.build.config}" value="true" />
</target>
<target name="set-framework-configuration" depends="check-current-build-config">
<if test="${not target::exists('set-' + framework::get-target-framework() + '-runtime-configuration')}">
<fail message="The current target framework (${framework::get-description(framework::get-target-framework())}) is not supported by log4net." />
</if>
<call target="set-${framework::get-target-framework()}-runtime-configuration" />
</target>
<target name="set-net-1.0-runtime-configuration" depends="check-bin-dir, check-sdkdoc-dir, check-sdkdoc-debug, check-current-build-config, check-build-debug, check-build-defines">
<property name="nant.settings.currentframework" value="net-1.0" />
<property name="current.build.debug" value="${build.debug}" dynamic="true" />
<property name="current.build.defines.csc" value="${build.defines.csc},NET,NET_1_0" dynamic="true" />
<property name="current.build.defines.jsc" value="${build.defines.jsc},NET,NET_1_0" dynamic="true" />
<property name="current.build.defines.vbc" value="${build.defines.vbc},NET=True,NET_1_0=True" dynamic="true" />
<property name="current.build.defines.vjc" value="${build.defines.vjc},NET,NET_1_0" dynamic="true" />
<property name="current.build.defines.cl" value="${build.defines.cl} /D NET /D NET_1_0" dynamic="true" />
<property name="current.bin.dir" value="${bin.dir}/${framework::get-family(framework::get-target-framework())}/${framework::get-version(framework::get-target-framework())}/${current.build.config}" />
<property name="current.sdkdoc.dir" value="${sdkdoc.dir}/${framework::get-family(framework::get-target-framework())}/${framework::get-version(framework::get-target-framework())}" />
<property name="current.sdkdoc.debug" value="${sdkdoc.debug}" dynamic="true" />
</target>
<target name="set-net-1.1-runtime-configuration" depends="check-bin-dir, check-sdkdoc-dir, check-sdkdoc-debug, check-current-build-config, check-build-debug, check-build-defines">
<property name="nant.settings.currentframework" value="net-1.1" />
<property name="current.build.debug" value="${build.debug}" dynamic="true" />
<property name="current.build.defines.csc" value="${build.defines.csc},NET,NET_1_1" dynamic="true" />
<property name="current.build.defines.jsc" value="${build.defines.jsc},NET,NET_1_1" dynamic="true" />
<property name="current.build.defines.vbc" value="${build.defines.vbc},NET=True,NET_1_1=True" dynamic="true" />
<property name="current.build.defines.vjc" value="${build.defines.vjc},NET,NET_1_1" dynamic="true" />
<property name="current.build.defines.cl" value="${build.defines.cl} /D NET /D NET_1_1" dynamic="true" />
<property name="current.bin.dir" value="${bin.dir}/${framework::get-family(framework::get-target-framework())}/${framework::get-version(framework::get-target-framework())}/${current.build.config}" />
<property name="current.sdkdoc.dir" value="${sdkdoc.dir}/${framework::get-family(framework::get-target-framework())}/${framework::get-version(framework::get-target-framework())}" />
<property name="current.sdkdoc.debug" value="${sdkdoc.debug}" dynamic="true" />
</target>
<target name="set-net-2.0-runtime-configuration" depends="check-bin-dir, check-sdkdoc-dir, check-sdkdoc-debug, check-current-build-config, check-build-debug, check-build-defines">
<property name="nant.settings.currentframework" value="net-2.0" />
<property name="current.build.debug" value="${build.debug}" dynamic="true" />
<property name="current.build.defines.csc" value="${build.defines.csc},NET,NET_2_0" dynamic="true" />
<property name="current.build.defines.jsc" value="${build.defines.jsc},NET,NET_2_0" dynamic="true" />
<property name="current.build.defines.vbc" value="${build.defines.vbc},NET=True,NET_2_0=True" dynamic="true" />
<property name="current.build.defines.vjc" value="${build.defines.vjc},NET,NET_2_0" dynamic="true" />
<property name="current.build.defines.cl" value="${build.defines.cl} /D NET /D NET_2_0" dynamic="true" />
<property name="current.bin.dir" value="${bin.dir}/${framework::get-family(framework::get-target-framework())}/${framework::get-version(framework::get-target-framework())}/${current.build.config}" />
<property name="current.sdkdoc.dir" value="${sdkdoc.dir}/${framework::get-family(framework::get-target-framework())}/${framework::get-version(framework::get-target-framework())}" />
<property name="current.sdkdoc.debug" value="${sdkdoc.debug}" dynamic="true" />
</target>
<target name="set-netcf-1.0-runtime-configuration" depends="check-bin-dir, check-sdkdoc-dir, check-sdkdoc-debug, check-current-build-config, check-build-debug, check-build-defines">
<property name="nant.settings.currentframework" value="netcf-1.0" />
<property name="current.build.debug" value="${build.debug}" dynamic="true" />
<property name="current.build.defines.csc" value="${build.defines.csc},NETCF,NETCF_1_0" dynamic="true" />
<property name="current.build.defines.jsc" value="${build.defines.jsc},NETCF,NETCF_1_0" dynamic="true" />
<property name="current.build.defines.vbc" value="${build.defines.vbc},NETCF=True" dynamic="true" />
<property name="current.build.defines.vjc" value="${build.defines.vjc},NETCF" dynamic="true" />
<property name="current.build.defines.cl" value="${build.defines.cl} /D NETCF /D NETCF_1_0" dynamic="true" />
<property name="current.bin.dir" value="${bin.dir}/${framework::get-family(framework::get-target-framework())}/${framework::get-version(framework::get-target-framework())}/${current.build.config}" />
<property name="current.sdkdoc.dir" value="${sdkdoc.dir}/${framework::get-family(framework::get-target-framework())}/${framework::get-version(framework::get-target-framework())}" />
<property name="current.sdkdoc.debug" value="${sdkdoc.debug}" dynamic="true" />
</target>
<target name="set-mono-1.0-runtime-configuration" depends="check-bin-dir, check-sdkdoc-dir, check-sdkdoc-debug, check-current-build-config, check-build-debug, check-build-defines">
<property name="nant.settings.currentframework" value="mono-1.0" />
<property name="current.build.debug" value="${build.debug}" dynamic="true" />
<property name="current.build.defines.csc" value="${build.defines.csc},MONO,MONO_1_0" dynamic="true" />
<property name="current.build.defines.jsc" value="${build.defines.jsc},MONO,MONO_1_0" dynamic="true" />
<property name="current.build.defines.vbc" value="${build.defines.vbc},MONO=True,MONO_1_0=True" dynamic="true" />
<property name="current.build.defines.vjc" value="${build.defines.vjc},MONO,MONO_1_0" dynamic="true" />
<property name="current.build.defines.cl" value="${build.defines.cl} /D MONO /D MONO_1_0" dynamic="true" />
<property name="current.bin.dir" value="${bin.dir}/${framework::get-family(framework::get-target-framework())}/${framework::get-version(framework::get-target-framework())}/${current.build.config}" />
<property name="current.sdkdoc.dir" value="${sdkdoc.dir}/${framework::get-family(framework::get-target-framework())}/${framework::get-version(framework::get-target-framework())}" />
<property name="current.sdkdoc.debug" value="${sdkdoc.debug}" dynamic="true" />
</target>
<target name="set-sscli-1.0-runtime-configuration" depends="check-bin-dir, check-sdkdoc-dir, check-sdkdoc-debug, check-current-build-config, check-build-debug, check-build-defines">
<property name="nant.settings.currentframework" value="sscli-1.0" />
<property name="current.build.debug" value="${build.debug}" dynamic="true" />
<property name="current.build.defines.csc" value="${build.defines.csc},SSCLI,SSCLI_1_0" dynamic="true" />
<property name="current.build.defines.jsc" value="${build.defines.jsc},SSCLI,SSCLI_1_0" dynamic="true" />
<property name="current.build.defines.vbc" value="${build.defines.vbc},SSCLI=True,SSCLI_1_0=True" dynamic="true" />
<property name="current.build.defines.vjc" value="${build.defines.vjc},SSCLI,SSCLI_1_0" dynamic="true" />
<property name="current.build.defines.cl" value="${build.defines.cl} /D SSCLI /D SSCLI_1_0" dynamic="true" />
<property name="current.bin.dir" value="${bin.dir}/${framework::get-family(framework::get-target-framework())}/${framework::get-version(framework::get-target-framework())}/${current.build.config}" />
<property name="current.sdkdoc.dir" value="${sdkdoc.dir}/${framework::get-family(framework::get-target-framework())}/${framework::get-version(framework::get-target-framework())}" />
<property name="current.sdkdoc.debug" value="${sdkdoc.debug}" dynamic="true" />
</target>
<target name="set-cli-1.0-configuration" depends="check-bin-dir">
<property name="nant.settings.currentframework" value="net-1.0" />
<property name="current.build.debug" value="${build.debug}" dynamic="true" />
<property name="current.build.defines.csc" value="${build.defines.csc},CLI,CLI_1_0" dynamic="true" />
<property name="current.build.defines.jsc" value="${build.defines.jsc},CLI,CLI_1_0" dynamic="true" />
<property name="current.build.defines.vbc" value="${build.defines.vbc},CLI=True,CLI_1_0=True" dynamic="true" />
<property name="current.build.defines.vjc" value="${build.defines.vjc},CLI,CLI_1_0" dynamic="true" />
<property name="current.build.defines.cl" value="${build.defines.cl} /D CLI /D CLI_1_0" dynamic="true" />
<property name="current.bin.dir" value="${bin.dir}/cli/1.0/${current.build.config}" />
<property name="current.sdkdoc.dir" value="${sdkdoc.dir}" />
<property name="current.sdkdoc.debug" value="${sdkdoc.debug}" dynamic="true" />
</target>
</project>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?