We’re implementing Team Build and know we need to write MSBuild scripts to build our legacy VB 6 app. It’s configured to use Binary Compatibility and we break Compatibility occassionally and we’d like our new automated build process to be able to Break Compatibility automatically.
Anyone know how to do this or if it’s even possible?
Alternatively, I know that the break just changes the compatibility to No Compatibility, compiles, changes to Binary and recompiles. If anyone knows how to just change Compatibility from the command line this would also be helpful.
Regarding changing from Compatibility to No Compatibility, I’ve done things like this by editing the project file with Unix-style tools (sed, awk, and/or perl). Do not change the original project file, but instead generate a new/temporary project file, and build with that. Here’s an example:
You can use this technique for other purposes, such as inserting a version number into the project file.