Log version number in an app
- 5 years ago
I see your problem right away in your Version2.png.
You are using the property WPFControltext and the value you have in your mapping is the version number that keeps on changing.
I would do two things for your mapping.1) Rename the mapped object from TextblockVersija10740527226 to simply TextblockVersija. Be sure you also delete all other mappings of the object as they are, essentially, useless
2) Edit the properties. Delete the "Name" property. It's generally unecessary. And edit the WpfControlText property and, in the value, replace "1.0.7405.27226" with the asterisk (*) symbol. This wildcards the version number. The mapping will find the object based upon the ClrFullClassName and the Control text that contains the word Versija.
The general principle to learn is that, when mapping objects, you need to make sure that the properties you're using are not changing from one version to the next. If they are, you have two choices. Either select a different set of properties or wildcard the section of the property value that is changing.
Please let me know how this works.