问题
I have a simple project in Delphi 10.1 Berlin. In the project settings, I have at one point checked on "Pre-Release".
Now I have two things that no matter how many times I change them, I come back and it's not saved. These are:
- Pre-Release checkbox (gets re-checked again)
- Module Version's
Release
number (changes from0
to1
)
Note in the screenshot that the "File Version" down below shows the correct version number from when I saved it, 0.2.0
. But above, the Release
number has changed to 1
.
In fact, I removed the option to include version settings in all other build configurations. It only exists under the Win32 - Release
build.
EDIT
It appears actually nothing is being saved! For example, I changed the "Auto increment build" option, and that did not stay either. And my entries also get lost if I so much as navigate to a different build configuration, and switch back again. The only thing that it retains is the grid on the bottom.
EDIT
Some more strange behavior - if I set the Release
to a larger number such as 2
, it saves it. But if I set it to 0
, it resets it back to 1
. As if it doesn't want it to be 0
(although that's the default on a new project).
回答1:
I do not know how or why this happened, but I was able to resolve this by re-enabling the version information on the "All Configurations" level. Once I activated that, now it's remembering whatever I change in the "Release" level.
来源:https://stackoverflow.com/questions/57010876/project-version-settings-keep-reverting-back