ARTICLE AD BOX
My WPF app is Windows only.
I cleared my */Releases folder and build my project:
dotnet publish --self-contained -r win-x64 -o .\publishThen I created a release:
vpk pack --packId MyApp --packVersion 1.1.18 --packDir .\publish --icon .\Assets\app_icon.icoI installed this 1.1.18 version using the .exe file. Then I changed the project version to 1.1.19, rebuild it, and published again:
dotnet publish --self-contained -r win-x64 -o .\publishAfter that, I created a new release:
vpk pack --packId MyApp --packVersion 1.1.19 --packDir .\publish --icon .\Assets\app_icon.icoMy application searches for updates in the temp folder like this:
private async Task UpdateLocalAsync() { var tempFolder = Path.Combine(Path.GetTempPath(), "MyCompanyName", "Releases"); var updateManager = new UpdateManager(tempFolder); var newVersion = await updateManager.CheckForUpdatesAsync(); if (newVersion == null) { MessageBox.Show("VersionUpToDate"); return; } MessageBox.Show("UpdatingToVersion"); updateManager.ApplyUpdatesAndRestart(newVersion); }I tried copying fresh versions of the following files to the temp folder:
releases.win
full (1.1.19)
delta (1.1.19)
I got the message "UpdatingToVersion". The application closed, but in the update view, it showed that it was updating to the old version 1.1.18 (expected 1.1.19). After the update was finished and the application restarted, the version was still old 1.1.18 (expected 1.1.19).
How can I fix autoupdate of my app?
Also, if this problem is related to files which I downloaded to use for update, I need to say that I don't want to force every user to download all project versions for every single application update except actual files, for saving traffic.
