Semver metadata not supported in Assembly Info Patching
So I found this really useful discussion about the ability to strip the dash and everything after it for assembly versions that don't support it. But I've run into a small problem with it.
I'm following the Semver guidelines on metadata associated with
builds. This means that I should be able to do something like
x.y.z+metadata
. The problem is, the plus and
everything after it is not stripped out, and assembly patching
fails.
Short of doing something like the following (which I'm not sure event works), is there a solution to this?
environment:
core_version: 0.16.4
version: "$(core_version)+{branch}.{build}"
branches:
only:
- master
assembly_info:
patch: true
file: AssemblyInfo.*
assembly_version: "$(core_version)"
assembly_file_version: "$(core_version)"
assembly_informational_version: "{version}"
Comments are currently closed for this discussion. You can start a new one.
Keyboard shortcuts
Generic
? | Show this help |
---|---|
ESC | Blurs the current field |
Comment Form
r | Focus the comment reply box |
---|---|
^ + ↩ | Submit the comment |
You can use Command ⌘
instead of Control ^
on Mac
1 Posted by James Toyer on 18 Feb, 2015 05:54 PM
Ok, so that does work, but it leaves me with the rather messy
$(core_version)+master.7
as the build version number :(Support Staff 2 Posted by Feodor Fitsner on 18 Feb, 2015 05:57 PM
You mean
$(core_version)
is not expanded?3 Posted by James Toyer on 18 Feb, 2015 05:58 PM
Yeah, that's correct. It means every reference to it in the UI looks rather unhelpful
Support Staff 4 Posted by Feodor Fitsner on 18 Feb, 2015 05:59 PM
Could you drop a screenshot please?
Support Staff 5 Posted by Feodor Fitsner on 18 Feb, 2015 06:00 PM
Ah, I see what you mean - environment variables are not expanded in build version. Let me see if that scenario could be easily supported.
6 Posted by James Toyer on 18 Feb, 2015 06:01 PM
I've attached a screen shot if that helps too
Support Staff 7 Posted by Feodor Fitsner on 18 Feb, 2015 06:21 PM
We've added support for environment variables in build version format - will deploy an update today.
8 Posted by James Toyer on 18 Feb, 2015 06:22 PM
Awesome. Thank you :)
James Toyer closed this discussion on 28 Oct, 2015 04:42 PM.