简体   繁体   English

我应该在发行版中包括哪些VB.NET文件?

[英]Which VB.NET files should I include in a distribution?

I developed a vb.net application, named here as MyApp . 我开发了一个vb.net应用程序,在这里名为MyApp I would like to distribute the application; 我想分发该应用程序; only for users. 仅针对用户。 I see that the VS installer exported the following files. 我看到VS安装程序导出了以下文件。 I want only the EXE function normally on the target machine. 我只希望目标计算机上的EXE函数正常运行。

I made a search though this site and learned that the .vshost and .vshost.exe.manifest are not necessary to export. 我通过该站点进行了搜索,并了解到不必导出.vshost和.vshost.exe.manifest。 I guess the same might be true for .PDB and HML, is that right? 我想.PDB和HML可能也是如此,对吗? How about the Microsoft related dlls below? 下面的Microsoft相关dll如何? I inted to install the net framework on the target machine. 我设置为在目标计算机上安装net框架。 In that case, is it necessary to export the last three DLLs (below) - the Interop and the Hostingprocess DLLs? 在那种情况下,是否有必要导出最后三个DLL(如下)-Interop和Hostingprocess DLL?

MyAPP.EXE  
MyAPP.vshost  
MyAPP.vshost.exe.manifest  
MyAPP.PDB  
MyAPP.XML  
Microsoft.Office.Interop.Word.dll  
Microsoft.Vbe.Interop.dll  
Microsoft.VisualStudio.HostingProcess.Utilities.Sync.dll  

You need to distribute the exe file and all dll files that the application depends on (the references your project has in visual studio). 您需要分发该应用程序依赖的exe文件和所有dll文件(您的项目在Visual Studio中具有的引用)。 Alternatively you can ilmerge the dll:s into the exe in order to only have to distribute the exe. 另外,您可以ilmerge的DLL:■成exe文件,以只分发EXE。

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

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