简体   繁体   English

使用powershell或batch编译带有图标的c#代码

[英]Compiling c# code with icon using powershell or batch

I need to make a .exe file from c# code and also add an icon. 我需要从c#代码创建一个.exe文件,并添加一个图标。 But I have to do this using batch or powershell. 但我必须使用batch或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 谢谢,CollinScripter

Tried /win32icon option? 尝试/win32icon选项?

csc /win32icon:rf.ico in.cs

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

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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