发布vs.net 3.5控制台应用程序?

问题描述:

我有一个c#控制台应用程序,在vs.net 3.5中无法成功发布.

我希望将自己的应用程序编译到.net安装程序中进行发布,以便该应用程序可以在同事之间传递和安装.我将解决方案配置设置为发布",然后选择发布".它使我完成了发布应用程序的过程,并且似乎可以成功运行(它成功创建了一个"Setup.exe"安装文件,然后可以打开并运行该文件).

但是问题是,一旦应用程序在另一台计算机上运行并且用户尝试运行该应用程序,他们将收到与该应用程序无法找到所需的DLL文件有关的错误.

这些DLL文件是我包含在项目中的第三方DLL.它们在我的计算机上运行良好,但是当我将此应用程序发送到其他计算机时,该应用程序不知道这些DLL的位置.

我在发布过程中是否遗漏了一些东西,这些东西会阻止包含第三方DLL?

谢谢.

I have a c# console application that I''m having trouble publishing successfully in vs.net 3.5.

I''m looking to publish with the intent of compiling my app into the .net installer so the application can be passed around and installed by co-workers. I set my solution configuration to "Release", then select "Publish". It takes me through the process of publishing my application and seems to work successfully (it successfully creates a "Setup.exe" installation file which can then be opened and run).

The problem though is once the application is run on a different machine and the user tries to run the application, they receive errors basically related to the applications inability to locate required DLL files.

These DLL files are 3rd party DLL''s that I included into my project. They run fine on my machine but when I send this application to other machines, the application has no idea where these DLL''s are.

Am I missing something during the publishing process that would prevent 3rd party DLL''s from being included?

Thanks.

您需要为此创建一个安装项目.发布是指Click-Once部署,我认为这将是更好的选择.用户可以从一个位置进行安装,而无需安装程序,您可以更新文件并确保每个人都具有相同的版本.
You need to create a setup project for this. Publish refers to Click-Once deployment, which would be a better option I believe. Users can install from a single location, not pass around an installer, and you can update the files and be assured everyone will have the same version.