Last active
August 29, 2015 14:01
-
-
Save paralleltree/d2f86b8467870da9d558 to your computer and use it in GitHub Desktop.
C#ソースファイルのコンパイル補助バッチ
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@echo off | |
echo C Sharp Compile Assistant | |
PATH="%WINDIR%\Microsoft.NET\Framework\v1.0.3705";%PATH% | |
PATH="%WINDIR%\Microsoft.NET\Framework\v1.1.4322";%PATH% | |
PATH="%WINDIR%\Microsoft.NET\Framework\v2.0.50727";%PATH% | |
PATH="%WINDIR%\Microsoft.NET\Framework\v3.0";%PATH% | |
PATH="%WINDIR%\Microsoft.NET\Framework\v3.5";%PATH% | |
PATH="%WINDIR%\Microsoft.NET\Framework\v4.0.30319";%PATH% | |
rem 引数判定 | |
if not "%~1" == "" goto file | |
rem 自由に実行 | |
:free | |
echo 実行ファイル: %~0 | |
echo. | |
echo コンパイル構文は次の通りです。 | |
echo csc(.exe) [パラメータ] | |
echo ex.) csc *.cs /target:winexe | |
echo. | |
cmd | |
goto end | |
rem 引数でファイル指定されていた場合 | |
:file | |
color 7 | |
echo. | |
echo %~nx1 のコンパイルを開始します。 | |
echo. | |
csc %~1 | |
color B | |
echo 実行完了 | |
set /p input="再コンパイルする場合はrを入力してください。 | |
if "%input%" == "r" goto file | |
:end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment