mwpowellhtx/Code.Generation.Roslyn

Discovered a version bumping issue with multi-targeting

Opened this issue · 2 comments

The Bump Assembly Version action is apparently invoked for every target in the build. If there is one target, it happens one time only. If there are more than one targets, i.e. a multi-target, then is apparently occurs asynchronously, and we may see +N, or +N-1, depending on which target resolved last, either of which is incorrect for increment versions. Should be +1.

This is not a CGR issue, per se, but we can put a couple of ostensible workarounds in to circumvent the issue quite as much until there is a proper BumpAssemblyVersions resolution available. We will follow up along those channels accordingly.

Currently working around it by basically opting out of version number bumps for the multi-targeted project(s). This is not a great workaround, but it is all we have to work with at the moment. Questions pending in gitter as well as through the msbuild project.