从命令行编译IronPython的最简单方法?

时间:2021-04-30 00:10:57

I've just started looking at IronPython, and I was hoping to build EXEs using NAnt. I'm not seeing much info on this... is it possible? Or, if not, is there a good alternative?

我刚开始看IronPython,我希望用NAnt构建EXE。我没有看到太多关于此的信息......这可能吗?或者,如果没有,是否有一个很好的选择?

2 个解决方案

#1


3  

If you want to build IronPython itself, use msbuild as recommended by Curt.

如果你想自己构建IronPython,请按照Curt的建议使用msbuild。

If you want to build IronPython program, use IronPython\Tools\Scripts\pyc.py, e.g.:

如果要构建IronPython程序,请使用IronPython \ Tools \ Scripts \ pyc.py,例如:

ipy.exe pyc.py /main:Program.py Form.py /target:winexe

#2


0  

In general, all C# projects and solutions can be built from the command line with msbuild.

通常,所有C#项目和解决方案都可以使用msbuild从命令行构建。

MSBuild Command Line Reference

MSBuild命令行参考

#1


3  

If you want to build IronPython itself, use msbuild as recommended by Curt.

如果你想自己构建IronPython,请按照Curt的建议使用msbuild。

If you want to build IronPython program, use IronPython\Tools\Scripts\pyc.py, e.g.:

如果要构建IronPython程序,请使用IronPython \ Tools \ Scripts \ pyc.py,例如:

ipy.exe pyc.py /main:Program.py Form.py /target:winexe

#2


0  

In general, all C# projects and solutions can be built from the command line with msbuild.

通常,所有C#项目和解决方案都可以使用msbuild从命令行构建。

MSBuild Command Line Reference

MSBuild命令行参考