Skip to content

Instantly share code, notes, and snippets.

@bonjin6770
Last active June 13, 2016 13:22
Show Gist options
  • Save bonjin6770/3636aa671959649723b226bc7984684f to your computer and use it in GitHub Desktop.
Save bonjin6770/3636aa671959649723b226bc7984684f to your computer and use it in GitHub Desktop.
try-execute-csc
@echo off
rem
rem USAGE
rem about this script
rem
rem variable settings
set hoge = "変数の値"
rem change current directory to this file's directory
pushd %0\..
cls
rem main process
C:\Windows\Microsoft.NET\Framework\v4.0.30319\csc.exe /out:Program.exe /t:exe /r:MSCorLib.dll Program.cs
pause
exit
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Program
{
class Program
{
static void Main(string[] args)
{
Console.WriteLine("Hello! World!");
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment