Fix auto-updater loop by removing hardcoded FileVersion and AssemblyVersion - #17
Merged
Conversation
…nd AssemblyVersion
The auto-updater was stuck in a loop because FileVersion and AssemblyVersion were hardcoded to 0.2.0 in the csproj files, while the semantic Version was 0.3.0. Updatum reads the FileVersion/AssemblyVersion to determine the current version, so it always thought the app was on 0.2.0 even after updating.
By removing the hardcoded FileVersion and AssemblyVersion, they now automatically derive from the Version property. When CI builds with -p:Version={semVer}, all three version properties (Version, FileVersion, AssemblyVersion) will be set correctly.
Co-authored-by: shanselman <2892+shanselman@users.noreply.github.com>
Co-authored-by: shanselman <2892+shanselman@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Fix persistent auto update request for version 0.4.0
Fix auto-updater loop by removing hardcoded FileVersion and AssemblyVersion
Feb 10, 2026
shanselman
approved these changes
Feb 10, 2026
shanselman
marked this pull request as ready for review
February 10, 2026 08:17
This was referenced Jun 26, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Auto-updater repeatedly offered updates from 0.2.0 to 0.4.0 because Updatum reads
AssemblyVersionfrom the executable, which was hardcoded to 0.2.0 while semanticVersionwas 0.3.0.Changes
<FileVersion>0.2.0</FileVersion><AssemblyVersion>0.2.0</AssemblyVersion><Version>0.3.0</Version>When
FileVersionandAssemblyVersionare unspecified, .NET automatically derives them fromVersion. Since CI already passes-p:Version={semVer}during builds, all three properties will now stay synchronized:When CI builds with
-p:Version=0.4.0, the executable will correctly report 0.4.0 for all version properties.Documentation
Added
docs/VERSIONING.mdexplaining version management strategy and the relationship between GitVersion, csproj properties, and Updatum.Original prompt
💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.