c# - 有没有办法将 ClickOnce-Releases 推送到 Github 分支?

标签 c# git github tfs clickonce

我目前正在使用 visualstudio.com 来编译我的 Clickonce 应用程序,但我想自动将新版本部署到 Github,在那里我有一个单独的分支来推送版本。

我从 https://refactorsaurusrex.com/post/2015/how-to-host-a-clickonce-installer-on-github/ 得到了这个解决方法的想法它就像一个魅力。

有没有办法以某种方式使这个过程自动化?

最佳答案

目前无法直接将您的 Clickonce 应用程序发布到远程 github。

作为解决方法,您可以先发布到 TFS 服务器并复制文件,将它们推送到另一个远程 url (Github)。

There is an option to enable scripts to use the OAuth token created by the build. This also enables the peristence of the credentials for the Git repository to enable scripting of git commands.

你可以试试这个扩展 Git Build Tools 它使用提供的 OAuth token 重写远程 url,以支持访问远程存储库以执行 git push 等操作。

另一个示例供您引用:Synchronizing TFS 2015 and VSTS with GitHub

关于c# - 有没有办法将 ClickOnce-Releases 推送到 Github 分支?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/45026693/

相关文章:

c# - 是否可以在 Java 或 C# 中实例化泛型类型的对象?

git - Makefile中子模块的自动初始化和更新

github - 从注释文件中禁用 Github Actions 检查运行

Github 操作,使用 npm 或 yarn 安装 Github 包时出现 401 未授权

c# - 如何在 xamarin iOS 中更新 sqlite 数据库表

c# - 防止 WinForms PictureBox 动画 GIF 在处理过程中暂停?

c# - 如何在图像 map 上为 asp 热点着色?

git - 如何在 Visual Studio 中更改 GitHub URL?

git - 将包含所有历史记录的 git 存储库导入现有的 git 存储库

css - Github 存储库中 readme.md 的自定义 css 文件