简体   繁体   中英

Compiling c# code with icon using powershell or batch

I need to make a .exe file from c# code and also add an icon. But I have to do this using batch or powershell. I have looked all over the internet and have come to no conclusion. Would really like some help on how to do this. Thanks, CollinScripter

Tried /win32icon option?

csc /win32icon:rf.ico in.cs

http://msdn.microsoft.com/en-us/library/2aaxe43f.aspx

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM