简体   繁体   English

我应该添加什么项目文件来部署.NET3.5 Windows应用程序?

[英]What files of my project should I add for deploying my .NET3.5 windows app?

I have developed a windows application via .NET 3.5 and now I want to deploy It for instalation , what I don't know is what files exaclty should I add in windows installer ? 我已经通过.NET 3.5开发了一个Windows应用程序,现在我想将其部署以进行安装,我不知道我应该在Windows Installer中添加哪些文件。 here is my project structure : - I have a folder named 'Images' which I have my images in that - I have several .dll files in my bin folder - My windows application uses a webservice that I have developed so I have a Web references folder in my project - My app.config file is in root directory - I have to .ico files in my root directory - the .exe file is in my bin folder 这是我的项目结构:-我有一个名为“图像”的文件夹,其中有我的图像-我的bin文件夹中有几个.dll文件-我的Windows应用程序使用了我开发的Web服务,所以我有一个Web参考项目中的文件夹-我的app.config文件位于根目录中-我必须在根目录中包含.ico文件-.exe文件位于bin文件夹中

Now which files shoul I add ? 现在我应该添加哪些文件? and I also want to precompile my project and deploy It as .dll files , please help me this is my first time deploying a win app project . 而且我还想预编译我的项目并将它部署为.dll文件,请帮我这是我第一次部署一个Win App项目。 thanks for your help 谢谢你的帮助

Generally speaking, you don't add files, you just add Project Output. 一般来说,您无需添加文件,而只需添加项目输出。 Visual Studio determines which files are needed. Visual Studio确定需要哪些文件。 (See documentation) http://msdn.microsoft.com/en-us/library/cc766795.aspx (请参阅文档) http://msdn.microsoft.com/en-us/library/cc766795.aspx

(Edit - this is better than the link above: http://www.dreamincode.net/forums/topic/58021-deploying-ac%23-application-visual-studio-setup-project/ ) (编辑-比上面的链接要好: http : //www.dreamincode.net/forums/topic/58021-deploying-ac%23-application-visual-studio-setup-project/

The exception is content files. 内容文件除外。 Suppose you have images, or pdf files that you want installed as part of your project. 假设您有要作为项目一部分安装的图像或pdf文件。 Even with these, however, you don't specify anything while defining the installer, you just ensure that "Copy Always" or "Copy If Newer" is selected for the content files in the original project. 但是,即使有了这些,您在定义安装程序时也无需指定任何内容,只需确保为原始项目中的内容文件选择了“始终复制”或“如果更新则复制”。

In YOUR case, the .dll files, web references, and actual code components should be included automatically, but you may need to specify the "copy" option on the images. 在您的情况下,.dll文件,Web参考和实际的代码组件应自动包括在内,但是您可能需要在图像上指定“复制”选项。 (See http://www.flatredball.com/frb/docs/index.php?title=Tutorials:Adding_files_to_your_project ) (请参阅http://www.flatredball.com/frb/docs/index.php?title=Tutorials:Adding_files_to_your_project

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

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