Home Upgrade Search Memberlist Extras Hacker Tools Award Goals Help Wiki Contact

C# 

cs to exe using comand prompt

Hi, after searching to compile c# program whitout visual studio I found :

"C:\Windows\Microsoft.NET\Framework\v4.0.30319\csc.exe somefile.cs"

And it worked well, but after I found :

"C:\Windows\Microsoft.NET\Framework\v4.0.30319\msbuild "C:\Projects\MyProject.csproj"
/p:Configuration=Debug;DeployOnBuild=True;PackageAsSingleFile=False;
outdir=C:\Projects\MyProjects\Publish\"

But it didn't worked, so I wanted to know if by any chance there is a possibility to combine and optain that :

"C:\Windows\Microsoft.NET\Framework\v4.0.30319\csc.exe somefile.cs /p:Configuration=Debug;"

Also I would like to add the parameter "output type" as a "Windows Application" wich is why I searched all of that for.

https :// zupimages.net/viewer.php?id=21/51/kdqb.png
Here you go this is the parameter documentation for the c compiler https://www.oreilly.com/library/view/net...pds06.html
[Image: Syr3DlV.png]
Basic example

C:\Windows\Microsoft.NET\Framework64\v4.0.30319\csc.exe /out:black-rocky.exe /target:winexe program.cs form1.cs Form1.Designer.cs

basic example:

github.com/ScriptsAndApps/Blackscreen.exe


you should also look to add .resources files

docs.microsoft.com/en-us/dotnet/core/extensions/create-resource-files


Possibly Related Threads...
Thread / Author Replies Views Last Post
[Python] by NZTApr 30, 2021 12:54 PM 9 346 Apr 30, 2021 12:54 PM
Last Post: Crackist
[Python] by qow.Jul 25, 2017 11:49 AM 8 227 Jul 25, 2017 11:49 AM
Last Post: icmp
[C#] by DaHaxorAug 11, 2015 11:43 PM 15 985 Aug 11, 2015 11:43 PM
Last Post: Geekie