Skip to content
This repository has been archived by the owner on Oct 26, 2022. It is now read-only.

[Bug] Using VersionPrefix-VersionSuffix for Version always considers as new #36

Closed
Gigas002 opened this issue Jul 3, 2020 · 0 comments

Comments

@Gigas002
Copy link

Gigas002 commented Jul 3, 2020

I'm using VersionPrefix and VersionSuffix for my Version in .csproj. It looks like this:

<VersionPrefix>2.0.0</VersionPrefix>
<VersionSuffix>ci303</VersionSuffix>
<Version>$(VersionPrefix)-$(VersionSuffix)</Version>
<!--<Version>2.0.0-ci303</Version>-->

On my nuget page I already have version 2.0.0-ci303 published, but extension thinks it's a new version and tries to publish package (which, obviously, fails).
I used <Version>2.0.0-ci303</Version> before and it worked as it should, so I guess the issue is about VersionPrefix and VersionSuffix only.

I also tried to set Version back to 2.0.0-ci303 this way:

<!--<Version>$(VersionPrefix)-$(VersionSuffix)</Version>-->
<Version>2.0.0-ci303</Version>

But it also breaks CD the same way. I suppose, comments should not be proceeded by default?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant