Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- @echo off && cls
- set WinDirNet=%WinDir%\Microsoft.NET\Framework
- IF EXIST "%WinDirNet%\v2.0.50727\csc.exe" set csc="%WinDirNet%\v2.0.50727\csc.exe"
- IF EXIST "%WinDirNet%\v3.5\csc.exe" set csc="%WinDirNet%\v3.5\csc.exe"
- IF EXIST "%WinDirNet%\v4.0.30319\csc.exe" set csc="%WinDirNet%\v4.0.30319\csc.exe"
- %csc% /nologo /out:"%~0.exe" %0
- "%~0.exe"
- del "%~0.exe"
- exit
- */
- class HelloWorld
- {
- static void Main()
- {
- System.Console.WriteLine("Hello, World!\r\nI am at " + System.Environment.Version);
- System.Console.ReadLine();
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement