我们可以在C#中从Windows窗体应用程序构建一个EXE [英] Can we build an EXE from windows form application in C#

查看:84
本文介绍了我们可以在C#中从Windows窗体应用程序构建一个EXE的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Hello Experts,



我有一个问题,我的一个客户想要一个软件,他可以建立一个EXE,为了他的进一步使用,是有任何可能性为此,我们可以为此制作任何软件,需要指导,

谢谢



我尝试过的:



这是我的第一步,我现在正在寻求帮助

解决方案

< blockquote>嗯,我假设您愿意创建一个可以构建项目/解决方案/ .cs文件的Windows应用程序并创建一个可执行文件作为输出。



实现这个,您可以从Windows应用程序中调用以下命令行。示例:



 csc /out:My.exe File.cs 
devenv / build Debug Solution.sln





此命令将构建File.cs并创建和执行输出。在类似的行中你也可以创建DLL。



有关 csc.exe和msbuild 命令的更多信息/种类,请参阅下面的内容链接并选择满足您要求的链接:

使用csc进行命令行构建.exe [ ^ ]

如何使用C#解决方案编译命令提示符? [ ^ ]



另外,你可以参考

c# - 从C#代码堆栈溢出运行命令提示符命令 [ ^ ]


Hello Experts ,

I have a Question For You, One Of My Client Want a Software From That he Can Build an EXE, For his Further Use, is there Any Possibility For this , can We make any Software For this , Need Guidance,,
Thanks

What I have tried:

This Is My First Step , I am Just Looking for help Right Now

解决方案

Well, I assume you are willing to create a windows application which can Build your project/solution/.cs File and create an executable as output.

To achieve this, you can call below command lines from you windows application. Example:

csc /out:My.exe File.cs
devenv /build Debug Solution.sln



This command will build File.cs and create and executable output. In similar lines you can also create DLLs.

For more information/variety on csc.exe and msbuild commands, please refer to the below link and choose the one that suffice your requirement:
Command-line Building With csc.exe[^]
How to Compile C# Solution using command prompt ?[^]

Also, you can refer to
c# - Run Command Prompt Commands from C# Code- Stack Overflow[^]


这篇关于我们可以在C#中从Windows窗体应用程序构建一个EXE的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆