【发布时间】:2020-03-30 14:38:14
【问题描述】:
我已申请更新我的其他应用程序。我正在使用 autoupdater.net 库来处理更新。我的问题是如何从另一个应用程序获取一个应用程序的版本?
<?xml version="1.0" encoding="UTF-8"?>
<item>
<version>1.0.1.0</version> // I would like to update this with the assembly version of another application
<url></url>
<changelog></changelog>
<mandatory mode="2">true</mandatory>
</item>
此应用程序所做的是删除当前 zip,压缩发布文件夹,然后最后一步是使用新版本号更新此 xml 文档。
【问题讨论】:
-
这能回答你的问题吗? Modify XML existing content in C#
-
@HereticMonkey 有助于编辑,但我需要能够获取其他程序集的版本号才能写入注释。
-
自己做一些研究会很好...Getting the Version of my C# app?
-
@HereticMonkey 阅读这个问题会很好......不要试图获取应用程序更新程序应用程序的版本号,只是它正在更新的应用程序的版本......
-
考虑到您的问题不包含代码,并且没有引用哪个应用程序在哪里获取哪个版本。这是一个艰难的过程。我不得不在搜索短语“如何获取另一个程序集的版本”中添加“另一个”:How to get Assembly Version (not File Version) for another EXE?
标签: c#