Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reset version specific fields after update #231

Merged
merged 6 commits into from
Mar 9, 2022

Conversation

ryfu-msft
Copy link
Contributor

@ryfu-msft ryfu-msft commented Mar 2, 2022

Resolves #229

Currently, WingetCreate preserves the values of version specific fields such as ReleaseDate, ReleaseNotes, and ReleaseUrl when updating manifests. The changes in this PR reset those values after each update so that newly-updated manifests do not get populated with outdated values.

Changes:

  • Added a helper method called ResetVersionSpecificFields() in the UpdateCommand.

Tests:

  • Added a unit test called UpdateResetsVersionSpecificFields() that verifies that ReleaseDate, ReleaseNotes, and ReleaseUrl are set to null across all manifests after an update.
Microsoft Reviewers: Open in CodeFlow

@ryfu-msft ryfu-msft requested a review from yao-msft March 2, 2022 00:07
@ryfu-msft ryfu-msft requested a review from a team as a code owner March 2, 2022 00:07
@ghost ghost added the Issue-Feature Complex enough to require an in depth planning process and actual budgeted, scheduled work. label Mar 2, 2022
@yao-msft
Copy link

yao-msft commented Mar 2, 2022

windows-2022 does not have sdk version 18360 installed. You could potentially update all projects under the solution to target 22000 to solve the build failure(22000 is the target version of our AppInstaller, 17763 is target min version).

@ryfu-msft
Copy link
Contributor Author

ryfu-msft commented Mar 3, 2022

windows-2022 does not have sdk version 18360 installed. You could potentially update all projects under the solution to target 22000 to solve the build failure(22000 is the target version of our AppInstaller, 17763 is target min version).

Thanks for letting me know, I will make that change.

Copy link

@yao-msft yao-msft left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

:shipit:

@ryfu-msft ryfu-msft merged commit 5cb51c0 into microsoft:main Mar 9, 2022
@ryfu-msft ryfu-msft deleted the ClearReleaseInfo branch May 27, 2022 22:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Issue-Feature Complex enough to require an in depth planning process and actual budgeted, scheduled work.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Clear/Update/Ask for ReleaseDate/ReleaseNotes/ReleaseNotesUrl
2 participants