[英]Visual Studio 2015 C# Deploy Application to Desktop
I have a C# application. 我有一个C#应用程序。 It has multiple forms and multiple classes. 它具有多种形式和多种类别。 I've been looking for ages on how to deploy my application and keep running into issues. 我一直在寻找如何部署应用程序并不断遇到问题的方法。
I've tried: 我试过了:
Right click on my solution -> Publish 右键单击我的解决方案->发布
This is the data I've entered: 这是我输入的数据:
Specify the location to publish this application:
C:\Users\$USER\Desktop
How will users install the application?
Here I just want to be able to get an installation file that will install the app and all the assets. 在这里,我只希望能够获得将安装应用程序和所有资产的安装文件。 This is purely for testing, but I just want to be able to send a friend the .exe install via email (or some other means) so they can play around with it. 这纯粹是为了测试,但是我只想能够通过电子邮件(或其他方式)向朋友发送.exe安装文件,以便他们可以试用。 I have not gotten any of these options to work thus can't continue. 我没有任何这些选择可以使用,因此无法继续。
I right click on Application folder -> add -> Project Output
我右键单击“ Application folder -> add -> Project Output
When doing this, it tells me I need to close my current solution (my application) and if I want to save. 这样做时,它告诉我需要关闭当前解决方案(我的应用程序)以及是否要保存。 It looks like other people are able to get this project output project to show in the solution explorer along with their main application, but I can't seem to do that. 看起来其他人可以使该项目输出项目及其主要应用程序显示在解决方案资源管理器中,但我似乎无法做到这一点。
The entire Add Project Output Group
is empty, including both dropdowns. 整个“ Add Project Output Group
为空,包括两个下拉列表。
I do also have my own website, and eventually I'd like users to install the application from a page on the website. 我也有自己的网站,最终我希望用户从网站上的页面安装应用程序。 If easier, I could set that up instead of dealing with just getting an install file, but I haven't looked into it as I assumed just getting this install file on my computer would be simpler. 如果更容易,我可以进行设置而不是仅获取安装文件,但我没有研究它,因为我认为仅在计算机上获取此安装文件会更简单。
Any help with this would be highly appreciated as I'm lost as of now. 到目前为止,我迷路了,对此提供的任何帮助将不胜感激。
So when I share my work with my a friend to review, what i generally do is send him them the .exe
located in bin\\Debug\\app.publish\\<name>.exe
folder inside the project folder. 所以,当我与我的朋友分享我的工作进行审查,我通常做的是送他他们.exe
位于bin\\Debug\\app.publish\\<name>.exe
的项目文件夹内的文件夹。 Take care to place all the .dll
, ie class libraries that you have written into that folder, zip it, and share! 注意将所有.dll
,即您已编写的类库放入该文件夹,将其压缩并共享! Your friend should be able to extract and run. 您的朋友应该能够提取并运行。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.