How to execute a C # file

I have a .cs file, I need to execute this file. I have no experience in C # .. Please help .. Do I need to install any software to run it.

I am currently using Windows XP ..

Please help me...

+3
source share
8 answers

Take the .NET SDK (maybe not necessary, see comments) and see if you can compile your .cs file with CSC.exe Alternatively try Visual Studio Express Edition

But if you have NO software development experience, this may not be the best way to get started ...

+11
source

# - Script , .cs script ( vbs)

, , # - Script .

.NET Framework. .

+2
+2
+1

.NET framework Microsoft, - v3.5 SP1 .

, .NET SDK v3.5 . .

, , " SDK" . , .cs . , .cs , - (, DLL), . ( ):

csc /out:your_app_name.exe your_cs_filename.cs

.cs , .exe, . , StackOverflow ...

0

Windows .NET, #, Windows PowerShell.

As everything here has already been mentioned - in any case, you will need to first install the version of Microsoft.NET framework.

0
source

Use any C # compiler, but the best way is ms visual studio (or express express) ms visual studio here

-1
source

Source: https://habr.com/ru/post/1699259/


All Articles