如何发布/编译程序而不需要用户安装它
可能的重复:
编译为独立可执行文件 (.exe)视觉工作室
我完成了我的应用程序,但我想知道如何让用户直接从 .exe 运行它,而不需要运行 setup.exe 我正在使用 Visual Studio Ultimate 2010。
感谢您的帮助。我在谷歌上没有找到任何东西。
Possible Duplicate:
Compile to a stand-alone executable (.exe) in Visual Studio
I finished my application, but I would like to know how I can make the users run it directly from an .exe without needing to run a setup.exe
I am using visual studio ultimate 2010.
Thanks for the help. I didn't find anything on google.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您只需在构建输出文件夹中找到可执行文件(以及任何本地依赖项)(通常是
bin\release
,当配置为发布构建时,相对于项目目录。)取决于您的其他资源应用程序取决于,但是,简单地以这种方式部署可能意味着您的应用程序不能“正常工作”;在部署之前,请仔细了解您的应用程序需要在什么样的环境中运行,并采取所有必要的预防措施。
You can just locate the executable file (and any local dependencies) in the build output folder (generally
bin\release
, when configured to release build, relative to the project directory.)Depending on what other resources your application depends upon, simply deploying in this manner may mean your application doesn't "just work", though; be careful to understand what kind of environment your application needs to run in prior to deployment and take all necessary precautions.
您可以将解决方案输出复制粘贴到目录“
bin\Release
”文件中,但请注意,构建时您的项目中应该有发布配置,因此不要向用户提供调试版本“bin\debug
”。请注意,您不必复制发布目录中的整个文件,只需复制必要的资源(如果有)和
.dll
文件..并且不要' t 包括.pdb
文件和.exe.manifest
。您在这里的另一件事是假设用户在他的计算机中安装了框架,如果情况并非如此,那么您可以创建一个新的 安装项目
You can copy paste your solution outputs in a directory "
bin\Release
" file, but be aware that you should have the release configuration at your project when you build, so not give the user your debug version "bin\debug
".Note that you don't have to copy the whole files in the release directory, just the nessesary resources if any and the
.dll
files.. and don't include the.pdb
files, and.exe.manifest
.Another thing that you are here assumes that the user has the framework installed in his machine, if that is not the case then you can just create a new Setup Project