Fix certificate issue in CalculatorUnitTests#617
Merged
grochocki merged 1 commit intomicrosoft:masterfrom Aug 3, 2019
rudyhuyn:FixCertificate
Merged
Fix certificate issue in CalculatorUnitTests#617grochocki merged 1 commit intomicrosoft:masterfrom rudyhuyn:FixCertificate
grochocki merged 1 commit intomicrosoft:masterfrom
rudyhuyn:FixCertificate
Conversation
|
Thanks! Every master.👍💪 but in fact, I have to fully remove the certificate from the other project :\calculator\src\Calculator\Calculator.vcxproj we should check in the future . |
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.
Fixes #616
The problem reported by users regarding the impossibility to compile
CalculatorUnitTestsis due to a mismatch between the certificate and the certificate thumbprint value in the vcxproj..vcxproj
certificate info

This mismatch isn't new and has always been present in this repository, but Visual Studio has ignored it so far. It seems that the certificate thumbprint verification was introduced in Visual Studio 2019 16.2. (the project compiles correctly with 16.1).
3 ways to fix the issue
<PackageCertificateThumbprint>from .vcxproj, so Visual Studio won't verify the certificate thumbprint<PackageCertificateThumbprint>Because this project is for Unit Tests, I assume that it is never sideloaded using a msix and that therefore solution 3 is the most suitable, but in case it breaks the CI, the 2 others are also possible.
EDIT: Calculator-CI fails if one of these properties is missing, Solution 2 is the only fix possible.
How changes were validated: