【发布时间】:2023-03-19 08:54:01
【问题描述】:
我在 Mono 框架中运行 nant 脚本时遇到问题。
当我使用 mono-3.5 运行 nant scipt 时出现此错误。
这是我的 nant scipt。
<target name="compile-libs" depends="prepare" description="Compile the libraries">
<csc target ="library" output="${bin.lib.1}/lib.dll" debug="false">
<sources>
<include name="${src.lib.1}/${arg}/*"/>
</sources>
</csc>
</target>
这有什么问题?
然后,我改用bat文件编译c#。有用。但是,它只执行了第一个命令,然后就停止了。
echo compile lib1:
mcs /target:library /out:build\bin-lib-v1.0\lib.dll src-lib-v1.0\lib\%1\foo.cs
echo compile lib2:
mcs /target:library /out:build\bin-lib-v2.0\lib.dll src-lib-v2.0\lib\%1\foo.cs
bat 文件只生成了第一个库。它没有回显“编译 lib2”。
提前致谢!
【问题讨论】:
标签: c# batch-file mono nant