一个蚂蚁/楠用C编写代码脚本#置换,通过CS脚本不需要手动编译。
资 源 简 介
Inspired by and intended to replace Ant/NAnt, the csAnt utility allows all scripts to be written in standard C# code and be executed via cs-script.
Scripts are written in the format of a standard C# console application and can utilize any standard C# code and any .NET library.
Scripts are compiled and executed on the fly by cs-script. Therefore scripts can be executed immediately after editing them without requiring a manual compilation step.
Example "Hello World" script
```
//css_ref ../lib/csAnt/bin/Release/SoftwareMonkeys.csAnt.dll;
using System;
using System.IO;
using Microsoft.CSharp;
using System.Diagnostics;
using SoftwareMonkeys.csAnt;
class HelloWorldScript : BaseScript
{
public static void Main(string[] args)
{
new HelloWorldScript().Start(args);
}
public override bool Run(string[] args)
{
Console.WriteLine("Hello world!");
AddSummary("Write the words "Hello world!" to the console
文 件 列 表
csAnt-standard-release--0-3-0-400-[2014-3-8--12-26-29]
lib
csAnt
bin
Release
scripts
Initialize
GetCSScript.py
csAnt-setup-local.sh
csAnt-setup.sh
csAnt.sh
csAnt.bat
csAnt-setup.vbs
lib
Libraries.node
csAnt
csAnt.zip
bin
Release
CSScriptLibrary.dll
HtmlAgilityPack.dll
ICSharpCode.SharpZipLib.dll
Newtonsoft.Json.dll
SoftwareMonkeys.FileNodes.dll
SoftwareMonkeys.csAnt.Contracts.dll
SoftwareMonkeys.csAnt.IO.Contracts.dll
SoftwareMonkeys.csAnt.IO.dll
SoftwareMonkeys.csAnt.InstallConsole.Tests.dll
SoftwareMonkeys.csAnt.Packages.Contracts.dll
SoftwareMonkeys.csAnt.Packages.dll
SoftwareMonkeys.csAnt.Projects.Tests.Scripting.dll
SoftwareMonkeys.csAnt.Projects.Tests.dll
SoftwareMonkeys.csAnt.Projects.dll
SoftwareMonkeys.csAnt.SetUp.Common.dll
SoftwareMonkeys.csAnt.Tests.Scripting.dll
SoftwareMonkeys.csAnt.Tests.dll
SoftwareMonkeys.csAnt.Versions.dll
SoftwareMonkeys.csAnt.dll
nunit.framework.dll
CreatePackage.exe
InstallPackage.exe
csAnt-SetUp.exe
csAnt-SetUpFromLocal.exe
csAnt.exe
csAntSetUp.exe
AssemblyInfo.cs
ReleaseScript.cs
ReleaseScript.csproj
ReleaseScript.sln
CSScriptLibrary.dll
CreatePackage.exe
CreatePackage.exe.mdb
HtmlAgilityPack.dll
ICSharpCode.SharpZipLib.dll
InstallPackage.exe
Newtonsoft.Json.dll
SoftwareMonkeys.FileNodes.dll
SoftwareMonkeys.csAnt.Contracts.dll
SoftwareMonkeys.csAnt.Contracts.dll.mdb
SoftwareMonkeys.csAnt.IO.Contracts.dll
SoftwareMonkeys.csAnt.IO.Contracts.dll.mdb
SoftwareMonkeys.csAnt.IO.dll
SoftwareMonkeys.csAnt.IO.dll.mdb
SoftwareMonkeys.csAnt.InstallConsole.Tests.dll
SoftwareMonkeys.csAnt.Packages.Contracts.dll
SoftwareMonkeys.csAnt.Packages.Contracts.dll.mdb
SoftwareMonkeys.csAnt.Packages.dll
SoftwareMonkeys.csAnt.Packages.dll.mdb
SoftwareMonkeys.csAnt.Projects.Tests.Scripting.dll
SoftwareMonkeys.csAnt.Projects.Tests.Scripting.dll.mdb
SoftwareMonkeys.csAnt.Projects.Tests.dll
SoftwareMonkeys.csAnt.Projects.Tests.dll.mdb
SoftwareMonkeys.csAnt.Projects.dll
SoftwareMonkeys.csAnt.Projects.dll.mdb
SoftwareMonkeys.csAnt.SetUp.Common.dll
SoftwareMonkeys.csAnt.SetUp.Common.dll.mdb
SoftwareMonkeys.csAnt.Tests.Scripting.dll
SoftwareMonkeys.csAnt.Tests.Scripting.dll.mdb
SoftwareMonkeys.csAnt.Tests.dll
SoftwareMonkeys.csAnt.Tests.dll.mdb
SoftwareMonkeys.csAnt.Versions.dll
SoftwareMonkeys.csAnt.Versions.dll.mdb
SoftwareMonkeys.csAnt.dll
SoftwareMonkeys.csAnt.dll.mdb
csAnt-SetUp.exe
csAnt-SetUp.exe.mdb
csAnt-SetUpFromLocal.exe
csAnt-SetUpFromLocal.exe.mdb
csAnt.exe
csAnt.exe.mdb
csAntSetUp.exe
csAntSetUp.exe.mdb
nunit.framework.dll
Newtonsoft.Json.dll
SoftwareMonkeys.FileNodes.Tests.dll
SoftwareMonkeys.FileNodes.dll
nunit.framework.dll