It seems that the order of the files within a Group, and the order of the Groups within a Target matters to uVision: the build process always examines the files in order as they appear within the Group, and the Groups in order as they appear within the Target. So, If I need to add file(s) and/or Group(s), how do I get them into the right order? Similarly, how can I re-order files and/or Groups if this becomes necessary? I'm using uVision v2.23.
"I put my uVision project files (.uv2 and .opt) into version control..." Me too "You actually need to do this anyway for configuration management.." Absolutely. It is annoying that uVision doesn't give you the option to abandon changes to a Project. It is also annoying from the version-control perspective that uVision keeps user preferences in the same files as the "real" project configuration info. eg, this means that you have to remember to close all windows before you close a project to check it in to your version control system; otherwise the next guy to get it out of version control will be faced with all the open editor windows you last used!
uVision2 has two files. The *.UV2 file contains the project configuration. The *.OPT file the user preferences (local debugger settings, ect.). So it is enought to save the *.UV2 file under version control. The *.OPT file is not needed.