Skip to content

Commit

Permalink
Increment Microsoft.Azure.Functions.Worker.Extensions.WebPubSub versi…
Browse files Browse the repository at this point in the history
…on (#44880)

Also update version increment script to error on missing version
property.
  • Loading branch information
weshaggard authored Jul 9, 2024
1 parent 4a0ec10 commit d170d1b
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 6 deletions.
4 changes: 2 additions & 2 deletions doc/dev/Versioning.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,8 @@ They will use the following format which is also used by the .NET team:
```
FILEMAJOR.FILEMINOR.FILEPATCH.FILEREVISION
```
- `FILEMAJOR`: Specified in the first part of `VersionPrefix` property.
- `FILEMINOR`: Set to `MINOR * 100 + PATCH / 100`, where `MINOR` and `PATCH` are the 2nd and 3rd parts of `VersionPrefix` property.
- `FILEMAJOR`: Specified in the first part of `Version` property.
- `FILEMINOR`: Set to `MINOR * 100 + PATCH / 100`, where `MINOR` and `PATCH` are the 2nd and 3rd parts of `Version` property.
- `FILEPATCH`: Set to `(PATCH % 100) * 100 + yy`.
- `FILEREVISION`: Set to `(50 * mm + dd) * 100 + r`. This algorithm makes it easy to parse the month and date from `FILEREVISION` while staying in the range of a short which is what a version element uses.

Expand Down
5 changes: 5 additions & 0 deletions eng/scripts/Update-PkgVersion.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,11 @@ $csproj.Load($csprojPath)
$propertyGroup = ($csproj | Select-Xml "Project/PropertyGroup/Version").Node.ParentNode
$packageVersion = $propertyGroup.Version

if (!$packageVersion) {
Write-Error "Could not find the <Version> element in your project $csprojPath, be sure it has a Version property and not a VersionPrefix property."
exit 1
}

$packageSemVer = [AzureEngSemanticVersion]::new($packageVersion)
$packageOldSemVer = [AzureEngSemanticVersion]::new($packageVersion)
Write-Host "Current Version: ${PackageVersion}"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,15 @@
# Release History

## 1.8.0-beta.1 (Unreleased)

### Features Added

### Breaking Changes

### Bugs Fixed

### Other Changes

## 1.7.0 (2024-07-01)

### Features Added
Expand All @@ -13,4 +23,4 @@
## 1.5.0-beta.1 (2023-04-27)

### Features Added
- Initial beta release
- Initial beta release
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
<Project Sdk="Microsoft.NET.Sdk">
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<PackageId>Microsoft.Azure.Functions.Worker.Extensions.WebPubSub</PackageId>
<PackageTags>Azure, WebPubSub</PackageTags>
<Description>Azure Web PubSub Service extensions for .NET isolated functions</Description>
<TargetFrameworks>$(RequiredTargetFrameworks)</TargetFrameworks>
<Nullable>annotations</Nullable>
<!--Version information-->
<VersionPrefix>1.7.0</VersionPrefix>
<Version>1.8.0-beta.1</Version>
<!--The ApiCompatVersion is managed automatically and should not generally be modified manually.-->
<ApiCompatVersion>1.7.0</ApiCompatVersion>
<NoWarn>$(NoWarn);CA2227</NoWarn>
<IsExtensionClientLibrary>true</IsExtensionClientLibrary>
</PropertyGroup>
Expand Down

0 comments on commit d170d1b

Please sign in to comment.