2009-08-19 4 views
-1

シェル(cmdのような)をシミュレートするコンソールアプリケーションを作成するための.NETフレームワークを探しています。C#:シェル/コンソールフレームワーク

これを行うためのプログラミング例またはフレームワークを知っている人はいますか?

答えて

7

まあ、PowerShellは既に存在します。

+0

は、まあ、私は、ビルドに(C#の場合)私自身のコマンドで自分の殻を探しています、私はこれはPowerShellで行うことができますか? –

+1

確かに:http://technet.microsoft.com/en-a/scriptcenter/dd742419.aspx –

+2

C#またはスクリプト言語自体でコマンドを記述することができます(Cmdletとして認識)。 – x0n

-1

です。

-1

IronPythonを見ることができます。それはインタラクティブなシェルを持っており、そのソースコードを読むことができます。

0

私はこれのための小さなフレームワークを書いた。あなたはそれを見つけることができますhere

+0

リンクが壊れています! –

2

私はAdaptive Console Frameworkがあなたの請求書に完全に合っていると思います。

http://www.codeproject.com/Articles/29471/Adaptive-Console-Framework-Build-Your-Console-Appl

それはあなたが簡単にあなたのコンソールアプリケーションを構築することができますし、Microsoft.NETテクノロジーで構築されたコンソールアプリケーションに柔軟性とテスト容易性をもたらす、コンソールアプリケーションフレームワークです。 ACFで

、次のようなメリットを得ることができます:

* Automatic command line argument parsing and validation 
* Multiple command line syntax supported 
* Generate the command line syntax and argument description automatically 
* An command line argument can have many different aliases 
* Orderless command line argument parsing (Users do not need to input their arguments in the specific order when using your console application) 
* Test Driven Design is supported. ACF makes your console application testable 
* ACF brings the flexibility to your console application. You can add or remove the command line syntax just by simple configuration 
+0

あなたのリンクが壊れています! –