Skip to content

I want to create an application using only the command prompt.

Latest

Choose a tag to compare

@matahino matahino released this 03 Feb 00:35
· 12 commits to main since this release
ad41c43

First find a compiler (translator: "csc.exe") to run windowsforms.

  1. start command prompt (cmd)
  2. where /r c:\ csc.exe
    スクリーンショット 2024-02-03 090225
    " where /r c:\ csc.exe" where command to find csc.exe from the c\ drive

*Find the machine language translator with this command. csc.exe is present by default without downloading

01
//// Choose a newer version

3 Compile when you find it
3.1 Move cmd to the program location
02
// In this case, create a test folder in C:\ and put the cs. file there.

  1. Translate to machine language
    image

Translate without console output with "path found with where command" and "/t:winexe(/target:winexe) command

You can also specify the path directly.
c:\Windows\Microsoft.NET\Framework64\v4.0.30319\csc.exe /t:winexe 01.cs

"c:\Windows\Microsoft.NET\Framework64\v4.0.30319\csc.exe" pass
"/t:winexe" command
"01.cs" program-name
image