Visual Studio 2015 Debuggin软件不想合作 [英] Visual Studio 2015 Debuggin Software Doesnt Want To Cooperate

查看:94
本文介绍了Visual Studio 2015 Debuggin软件不想合作的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

所以我制作了一个软件,我调试了它并且当我在文件夹中按下它时它创建了一个Exe它工作正常,如果我移动exe文件,它说程序已停止工作,如果我创建了一个文件夹并添加两个dll文件与它工作的exe,如何合并这3个项目或如何发布一个人们可以使用的独立exe,即使他们没有我在我的计算机上做的所有文件。

So I've made a software, I debugged it & it created a Exe when I press it in the folder it works fine, if I move the exe outisde the folder it says the program has stopped working, if I create a folder and add the two dll files with the exe it works, how to I merge those 3 items together or how do I release a standalone exe that people can use even if they dont have all the files I do on my computer.

推荐答案

唯一可以说的是,如果您的应用程序引用外部库(例如控件,或者用于压缩和解压缩文件的库,或MVVM框架,或者无论如何,那么你必须与你的应用程序一起分配这些库。



如果你有权访问库的源代码,并且它的许可证允许你这样做所以,你可以在你自己的项目中包含库的源文件。

这将允许你摆脱对库的引用(dll);库对象将被编译成您自己的可执行文件,您将不再需要分发外部dll。



添加评论:

Microsoft Visual Studio 2015安装程序项目 [ ^ ]将是一个开始的好地方:)

[ /编辑]
The only thing that can be said is that if your application references external libraries (controls, for example, or a library to zip and unzip files, or a MVVM framework, or whatever), then you must ditribute these libraries along with your application.

If you have access to the source code of the library, and if its licence allows you to do so, you may instead include the source files of the library in your own project.
This would allow you to get rid of the reference to the library (dll); library objects will be compiled into your own executable, and you won't have to distribute external dlls anymore.

Added from comment:
Microsoft Visual Studio 2015 Installer Projects[^] would be a good place to start with :)
[/Edit]


谢谢Phil.o的答案!
Thank you Phil.o for the answer!


这篇关于Visual Studio 2015 Debuggin软件不想合作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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