Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Set VersionPrefix/Suffix if normal Version/AssemblyVersion not found #5

Merged
merged 1 commit into from
Apr 19, 2019
Merged

Set VersionPrefix/Suffix if normal Version/AssemblyVersion not found #5

merged 1 commit into from
Apr 19, 2019

Conversation

seangwright
Copy link
Contributor

I updated the script to return early if the <Version> or <AssemblyVersion> property values are found as <VersionPrefix>/<VersionSuffix> are not used in that scenario.

Only if <Version>, <AssemblyVerison> and <VersionPrefix> are missing does the task throw an error.

I also edited this in vscode which did some auto-formatting with the Powershell extension installed (hence the open braces on the same line as the function/expression).

This is to solve #4

@conficient conficient merged commit 433a7b2 into conficient:master Apr 19, 2019
@conficient
Copy link
Owner

Thanks for the clarification and the pull request.

conficient added a commit that referenced this pull request Apr 19, 2019
@conficient
Copy link
Owner

Spotted a typo in line 46 which I've fixed:

        SetBuildVariable "VersionPrefix" $versionSuffix

I'm also going to remove the exception if no versions are found and use the default that appears in projects as 1.0.0. Version v1.15 should now be live.

@conficient conficient added the bug Something isn't working label Apr 19, 2019
@conficient conficient self-assigned this Apr 19, 2019
@seangwright seangwright deleted the feat/version-prefix-suffix branch April 19, 2019 14:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants