【发布时间】:2012-09-26 11:54:05
【问题描述】:
如何正确使用 Nant 构建和部署使用 asp.net、vb.net 和 .net framework 1.1 开发的 asp.net 项目?
我尝试了这个构建文件:
<?xml version="1.0" ?>
<project name="MyWebProj" default="build" basedir=".">
<description>...</description>
<property name="debug" value="true" overwrite="false"
/>
<property name="basename" value="MyWebProj" />
<target name="build">
<mkdir dir="NantBIN" />
<vbc target="library" output="NantBIN/${basename}.dll" debug="${debug}">
<sources>
<include name="*.vb" />
</sources>
</vbc>
</target>
</project>
然后我运行这个 bat 文件:
@echo off bin\nant -t:net-1.1 -buildfile:.MyWebProjPath pause
【问题讨论】:
-
我尝试使用这个构建文件:
<?xml version="1.0"?> <project name="MyWebProj" default="build" basedir="."> <description>...</description> <property name="debug" value="true" overwrite="false" /> <property name="basename" value="MyWebProj"/> <target name="build"> <mkdir dir="NantBIN" /> <vbc target="library" output="NantBIN/${basename}.dll" debug="${debug}"> <sources> <include name="*.vb"/> </sources> </vbc> </target> </project>。 我运行这个 bat 文件:@echo off bin\nant -t:net-1.1 -buildfile:.MyWebProjPath pause -
@gardenunez 欢迎来到 SO。您应该编辑您的问题以包含将来的后续信息,以便人们更容易找到相关信息,特别是值得结构化的数据,例如 XML。我已经为你添加了这个。希望对您有所帮助。
-
@Scott 感谢您的帮助和推荐。
标签: asp.net .net vb.net build nant