Thanks for the update. I can't get it working with passing commandline arguments:
No matter what I do - when I pass commandline parameters to MSBuild (that is what I'm doing at TFS Buildserver) - the MSI installer later "forgets" and go to default values.
I tried it locally also with commands like:
msbuild /p:AssemblyMinorVersion=97 Deployment\Deployment.btdfproj
(I split the assemblyversion in Major and Minor in the above Target).
I also tried
msbuild /t:Installer /p:AssemblyMinorVersion=97 Deployment\Deployment.btdfproj
And the Installer does not pick up the AssemblyMinorVersion I supplied - but defaults to what i placed in the propertygroup:
I tried doing a simple test of passing arguments
<Message text="AssemblyMinor $(AssemblyMinorVersion)"></Message>
and running only that target from the commandline - and that works.
I'm thinking that I need to store the commandline arguments somewhere "inside", because the actual preprocessing is happening at install stage.
Maybe that could be the problem?