Skip to content

Commit 50ebf41

Browse files
committed
chore(deps): upgrade MinimalLambda and related dependencies to v2.6.0-beta.1
- Updated `MinimalLambda` and `MinimalLambda.Testing` package versions across templates and docs - Adjusted workflow to properly handle `Version` property updates - Improved Directory.Build.props version handling and warnings configuration
1 parent c320e32 commit 50ebf41

11 files changed

Lines changed: 26 additions & 22 deletions

File tree

.github/workflows/bump-version.yaml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ jobs:
3333
- name: Get current version
3434
id: current_version
3535
run: |
36-
VERSION=$(grep -oP '(?<=<VersionPrefix>)[^<]+' Directory.Build.props)
36+
VERSION=$(grep -oP '(?<=<Version>)[^<]+' Directory.Build.props)
3737
echo "version=$VERSION" >> $GITHUB_OUTPUT
3838
echo "Current version: $VERSION"
3939
@@ -66,7 +66,9 @@ jobs:
6666
;;
6767
prerelease)
6868
PATCH=$((PATCH + 1))
69-
echo "NEW_VERSION=$MAJOR.$MINOR.$PATCH-alpha.1" >> $GITHUB_OUTPUT
69+
NEW_VERSION="$MAJOR.$MINOR.$PATCH-alpha.1"
70+
echo "new_version=$NEW_VERSION" >> $GITHUB_OUTPUT
71+
echo "New version: $NEW_VERSION"
7072
exit 0
7173
;;
7274
esac
@@ -78,8 +80,8 @@ jobs:
7880
- name: Update version in Directory.Build.props
7981
run: |
8082
NEW_VERSION="${{ steps.new_version.outputs.new_version }}"
81-
sed -i "s/<VersionPrefix>[^<]*<\/VersionPrefix>/<VersionPrefix>$NEW_VERSION<\/VersionPrefix>/" Directory.Build.props
82-
cat Directory.Build.props | grep -A1 -B1 "VersionPrefix"
83+
sed -i "s/<Version>[^<]*<\/Version>/<Version>$NEW_VERSION<\/Version>/" Directory.Build.props
84+
cat Directory.Build.props | grep -A1 -B1 "Version"
8385
8486
- name: Commit version bump
8587
run: |

Directory.Build.props

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<Project>
22
<PropertyGroup>
3-
<Version>2.2.0-beta.1</Version>
3+
<Version>2.6.0-beta.1</Version>
44
<!-- SPDX license identifier for MIT -->
55
<PackageLicenseExpression>MIT</PackageLicenseExpression>
66
<!-- Other useful metadata -->
@@ -32,7 +32,9 @@
3232

3333
<PropertyGroup>
3434
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
35-
<!-- NU5104: preview TFM (net11.0) intentionally pulls preview dependencies -->
36-
<NoWarn>$(NoWarn);NU5104</NoWarn>
3735
</PropertyGroup>
38-
</Project>
36+
<PropertyGroup Condition="'$(TargetFramework)' == 'net11.0'">
37+
<!-- NU5104: preview TFM intentionally pulls preview dependencies -->
38+
<NoWarn>$(NoWarn);NU5104</NoWarn>
39+
</PropertyGroup>
40+
</Project>

docs/getting-started/templates.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -97,8 +97,8 @@ The templates emit versioned `PackageReference` items, matching built-in .NET an
9797

9898
```xml
9999
<ItemGroup>
100-
<PackageVersion Include="MinimalLambda" Version="2.2.0-beta.1" />
101-
<PackageVersion Include="MinimalLambda.Testing" Version="2.2.0-beta.1" />
100+
<PackageVersion Include="MinimalLambda" Version="2.6.0-beta.1" />
101+
<PackageVersion Include="MinimalLambda.Testing" Version="2.6.0-beta.1" />
102102
<PackageVersion Include="Microsoft.NET.Test.Sdk" Version="18.6.0" />
103103
<PackageVersion Include="xunit" Version="2.9.3" />
104104
<PackageVersion Include="xunit.runner.visualstudio" Version="3.1.5" />

skills/minimal-lambda/references/client-project-setup.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,8 @@ Required central versions for the generated app and test projects:
4343

4444
```xml
4545
<ItemGroup>
46-
<PackageVersion Include="MinimalLambda" Version="2.2.0-beta.1" />
47-
<PackageVersion Include="MinimalLambda.Testing" Version="2.2.0-beta.1" />
46+
<PackageVersion Include="MinimalLambda" Version="2.6.0-beta.1" />
47+
<PackageVersion Include="MinimalLambda.Testing" Version="2.6.0-beta.1" />
4848
<PackageVersion Include="Microsoft.NET.Test.Sdk" Version="18.6.0" />
4949
<PackageVersion Include="xunit" Version="2.9.3" />
5050
<PackageVersion Include="xunit.runner.visualstudio" Version="3.1.5" />

src/MinimalLambda.Templates/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -149,8 +149,8 @@ Add or update these package versions at the repository root:
149149

150150
```xml
151151
<ItemGroup>
152-
<PackageVersion Include="MinimalLambda" Version="2.2.0-beta.1" />
153-
<PackageVersion Include="MinimalLambda.Testing" Version="2.2.0-beta.1" />
152+
<PackageVersion Include="MinimalLambda" Version="2.6.0-beta.1" />
153+
<PackageVersion Include="MinimalLambda.Testing" Version="2.6.0-beta.1" />
154154
<PackageVersion Include="Microsoft.NET.Test.Sdk" Version="18.6.0" />
155155
<PackageVersion Include="xunit" Version="2.9.3" />
156156
<PackageVersion Include="xunit.runner.visualstudio" Version="3.1.5" />

src/MinimalLambda.Templates/templates/mlambda-aot/src/BlueprintBaseName.1/BlueprintBaseName.1.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,6 @@
2121
</PropertyGroup>
2222

2323
<ItemGroup>
24-
<PackageReference Include="MinimalLambda" Version="2.2.0-beta.1" />
24+
<PackageReference Include="MinimalLambda" Version="2.6.0-beta.1"/>
2525
</ItemGroup>
2626
</Project>

src/MinimalLambda.Templates/templates/mlambda-aot/src/BlueprintBaseName.1/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -95,8 +95,8 @@ Add or update these entries at the repository root:
9595

9696
```xml
9797
<ItemGroup>
98-
<PackageVersion Include="MinimalLambda" Version="2.2.0-beta.1" />
99-
<PackageVersion Include="MinimalLambda.Testing" Version="2.2.0-beta.1" />
98+
<PackageVersion Include="MinimalLambda" Version="2.6.0-beta.1" />
99+
<PackageVersion Include="MinimalLambda.Testing" Version="2.6.0-beta.1" />
100100
<PackageVersion Include="Microsoft.NET.Test.Sdk" Version="18.6.0" />
101101
<PackageVersion Include="xunit" Version="2.9.3" />
102102
<PackageVersion Include="xunit.runner.visualstudio" Version="3.1.5" />

src/MinimalLambda.Templates/templates/mlambda-aot/test/BlueprintBaseName.1.Tests/BlueprintBaseName.1.Tests.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
</PropertyGroup>
99

1010
<ItemGroup>
11-
<PackageReference Include="MinimalLambda.Testing" Version="2.2.0-beta.1" />
11+
<PackageReference Include="MinimalLambda.Testing" Version="2.6.0-beta.1"/>
1212
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="18.6.0" />
1313
<PackageReference Include="xunit.runner.visualstudio" Version="3.1.5">
1414
<PrivateAssets>all</PrivateAssets>

src/MinimalLambda.Templates/templates/mlambda/src/BlueprintBaseName.1/BlueprintBaseName.1.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,6 @@
1515
</PropertyGroup>
1616

1717
<ItemGroup>
18-
<PackageReference Include="MinimalLambda" Version="2.2.0-beta.1" />
18+
<PackageReference Include="MinimalLambda" Version="2.6.0-beta.1"/>
1919
</ItemGroup>
2020
</Project>

src/MinimalLambda.Templates/templates/mlambda/src/BlueprintBaseName.1/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,8 +60,8 @@ Add or update these entries at the repository root:
6060

6161
```xml
6262
<ItemGroup>
63-
<PackageVersion Include="MinimalLambda" Version="2.2.0-beta.1" />
64-
<PackageVersion Include="MinimalLambda.Testing" Version="2.2.0-beta.1" />
63+
<PackageVersion Include="MinimalLambda" Version="2.6.0-beta.1" />
64+
<PackageVersion Include="MinimalLambda.Testing" Version="2.6.0-beta.1" />
6565
<PackageVersion Include="Microsoft.NET.Test.Sdk" Version="18.6.0" />
6666
<PackageVersion Include="xunit" Version="2.9.3" />
6767
<PackageVersion Include="xunit.runner.visualstudio" Version="3.1.5" />

0 commit comments

Comments
 (0)