I'd like to set the ClickOnce publish revision to the Subversion revision of the code's repository — e.g. 3.1.9.2453 for version 3.1.9, based on SVN r2453.
Now, for the assembly version, I know I can use TortoiseSVN's SubWCRev.exe
to generate AssemblyInfo
classes that contain the build revision. However, it's not quite as simple with ClickOnce — for whatever reason, it stores its metadata (including the current revision) in the project file itself.
Perhaps, though, there is way to have it store the data in a different file (which I could then safely generate from a template using SubWCRev.exe
), or to modify the project file without overwriting VS's changes, and without making it think it has to reload the project?