-
Notifications
You must be signed in to change notification settings - Fork 654
Issue #2257 Ensure Valid Wix Version File #2259
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
Merged
asbjornu
merged 2 commits into
GitTools:master
from
telecomsoftware:bugfix/fix-wix-version-file-generation
May 8, 2020
Merged
Changes from all commits
Commits
Show all changes
2 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
34 changes: 34 additions & 0 deletions
34
...onConverters/Approved/WixFileTests.UpdateWixVersionFileWhenFileAlreadyExists.approved.txt
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<Include xmlns="http://schemas.microsoft.com/wix/2006/wi"> | ||
<?define AssemblySemFileVer="1.2.3.0"?> | ||
<?define AssemblySemVer="1.2.3.0"?> | ||
<?define BranchName="develop"?> | ||
<?define BuildMetaData="5"?> | ||
<?define BuildMetaDataPadded="05"?> | ||
<?define CommitDate="2019-02-20"?> | ||
<?define CommitsSinceVersionSource="5"?> | ||
<?define CommitsSinceVersionSourcePadded="0005"?> | ||
<?define EscapedBranchName="develop"?> | ||
<?define FullBuildMetaData="5.Branch.develop.Sha.commitSha"?> | ||
<?define FullSemVer="1.2.3+5"?> | ||
<?define InformationalVersion="1.2.3+5.Branch.develop.Sha.commitSha"?> | ||
<?define LegacySemVer="1.2.3"?> | ||
<?define LegacySemVerPadded="1.2.3"?> | ||
<?define Major="1"?> | ||
<?define MajorMinorPatch="1.2.3"?> | ||
<?define Minor="2"?> | ||
<?define NuGetPreReleaseTag=""?> | ||
<?define NuGetPreReleaseTagV2=""?> | ||
<?define NuGetVersion="1.2.3"?> | ||
<?define NuGetVersionV2="1.2.3"?> | ||
<?define Patch="3"?> | ||
<?define PreReleaseLabel=""?> | ||
<?define PreReleaseNumber=""?> | ||
<?define PreReleaseTag=""?> | ||
<?define PreReleaseTagWithDash=""?> | ||
<?define SemVer="1.2.3"?> | ||
<?define Sha="commitSha"?> | ||
<?define ShortSha="commitShortSha"?> | ||
<?define VersionSourceSha="versionSourceSha"?> | ||
<?define WeightedPreReleaseNumber=""?> | ||
</Include> |
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
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
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should this always be deleted, unconditionally?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would say yes, as the entire file is fully re-created (no update). This way it is ensured that the written file does not contain garbage after the expected content.
Maybe one could check whether the file exists, which is in my opinion useless as Delete() does not throw when the file does not exist.