[英]How do you publish or deploy your C# desktop application?
I just finished my simple C# desktop application.我刚刚完成了我的简单 C# 桌面应用程序。 What I want to provide to my customer is an installer of the application(.exe).
我想提供给我的客户的是应用程序(.exe)的安装程序。 Also, I want the app to check for updates if ever I will do some updates without giving my customer the installer again.
此外,我希望该应用程序检查更新,如果我将进行一些更新而无需再次向我的客户提供安装程序。
I have read about the "ClickOnce" but I find it confusing especially the FTP part.我已经阅读了有关“ClickOnce”的信息,但我发现它特别令人困惑,尤其是 FTP 部分。 Do I need to have an FTP server to upload the application files?
我是否需要一个 FTP 服务器来上传应用程序文件? Aside from that, most of the tutorials are deploying in the local machine (I guess).
除此之外,大多数教程都部署在本地机器上(我猜)。
Please advise me on this one.请给我一个建议。
You can use a tool like Advanced Installer .您可以使用Advanced Installer 之类的工具。 It is free and easy to use.
它是免费且易于使用的。 But if you want to do automatic updates you can purchase a license for the professional version.
但是,如果您想进行自动更新,您可以购买专业版的许可证。
A direct quotation from MS documentation:来自 MS 文档的直接引用:
To specify a publishing location
指定发布位置
With a project selected in Solution Explorer, on the Project menu, click Properties.
在解决方案资源管理器中选择一个项目后,在“项目”菜单上,单击“属性”。
Click the Publish tab.
单击发布选项卡。
In the Publish Location field, enter the publishing location by using one of the > following formats:
在发布位置字段中,使用以下格式之一输入发布位置:
To publish to a file share or disk path, enter the path by using either a UNC path (\\Server\ApplicationName) or a file path (C:\Deploy\ApplicationName).
要发布到文件共享或磁盘路径,请使用 UNC 路径 (\\Server\ApplicationName) 或文件路径 (C:\Deploy\ApplicationName) 输入路径。
To publish to an FTP server, enter the path using the format ftp://ftp.microsoft.com/ .
要发布到 FTP 服务器,请使用格式ftp://ftp.microsoft.com/输入路径。
Note that text must be present in the Publishing Location box in order for the Browse (...) button to work.
请注意,必须在“发布位置”框中显示文本才能使“浏览 (...)”按钮起作用。
For more information please check the following link .欲了解更多信息,请查看以下链接。
Long story short, you can just use a publicly accessible file share on the intranet.长话短说,您可以在 Intranet 上使用可公开访问的文件共享。 Using an FTP server is just an alternative.
使用 FTP 服务器只是一种选择。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.