We have an Outlook add-in which is using ClickOnce deployment.
Once the developer check in the build, the PC queues a build and the application is published to a location on a shared drive.
The problem is that the build does not change the publish version to the current assembly version and therefore it publishes in the previous version's folder which results in a corrupted installer saying that the version cannot be installed.
I've read that article. And I set up [assembly: AssemblyVersion("1.0.*")]. Still nothing.
I figured out a way to work around this problem by incrementing the <ApplicationVersion></ApplicationVersion>
in the *.csproj file. But I want it to be automated.
The other workaround was when executing msbuild.exe:
/target:publish /property:PublishDir="\\sharedDir\\" /property:GenerateManifests=true
/property:ApplicationVersion=1.0.0.123
And still it is not automated. I really would like to pass the current build number either to the msbuild.exe or on every build replace the value in <ApplicationVersion></ApplicationVersion>
with the actual build number. Or is there another way?