简体   繁体   English

您如何发布或部署您的 C# 桌面应用程序?

[英]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指定发布位置

  1. With a project selected in Solution Explorer, on the Project menu, click Properties.在解决方案资源管理器中选择一个项目后,在“项目”菜单上,单击“属性”。

  2. Click the Publish tab.单击发布选项卡。

  3. 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.

相关问题 你怎么知道你的c#应用程序使用的是哪个dll? - How do you tell which dll your c# application is using? 您将如何在C#3.0中构建桌面应用程序 - How would you architect a desktop application in C# 3.0 使用 SQL Server 数据库发布 C# 桌面应用程序 - Publish C# Desktop Application with SQL Server database 如何在C#中为桌面应用程序创建activeX组件 - How do I create an activeX component for a desktop application in C# Visual Studio 2015 C#将应用程序部署到桌面 - Visual Studio 2015 C# Deploy Application to Desktop 如何在Visual Studio 2010中使用SQL Server 2012数据库打包和部署C#桌面应用程序? - How to package and deploy a C# desktop application with a SQL Server 2012 database in Visual Studio 2010? 按下任意键后,您将如何刷新应用程序? C# - How would you go about refreshing your application once you have pressed any key? C# 如何使用访问数据库发布C#应用程序 - how to publish C# application with the access database 您如何部署自己的 Authenticode 时间戳服务? - How do you deploy your own Authenticode Timestamping Service? 如何在 azure 上部署 api c# 并且发布时没有实体框架迁移? - How to deploy api c# on azure and there is no entity framework migration in publish?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM