将 Visual Basic .net 程序和资源打包在一起,使其成为独立的 exe
我正在 VB2010 Express 中开发一个非常简单的程序,它将根据远程数据库中的条目创建文件夹。我完全知道运行 exe 的最低要求是最新的 .net 框架,但是我在文件中添加了一些资源,当我尝试在另一台计算机上运行可执行文件时,它无法运行,并指出资源失踪了。
如何将 VB 代码和资源一起编译成仅需要安装 .net 框架的独立可执行文件?
我已经尝试用谷歌搜索这个问题,但是我找到的每个答案都与我最初的问题无关......
谢谢
I'm developing a very simple program in VB2010 Express that will create folders based on entries in a remote database. I am fully aware that the minimum requirement to run the exe is the latest .net framework, however I have a few added resources to the file, and when I try to run the executable on another computer, it fails to run stating that the resources are missing.
How do i compile my VB code AND the resources together into a stand-alone executable that only requires the .net framework to be installed?
I have already tried to google this issue, however every answer I find has nothing to do with my initial question...
Thanks
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
确保您在
Build Action
中将resx
文件(或其他资源文件,例如图像等)标记为嵌入式资源
。Make sure you mark your
resx
files (or other resource files such as images etc) asEmbedded Resource
in theirBuild Action
.