Skip to content
This repository was archived by the owner on Dec 24, 2022. It is now read-only.

Commit 3309ba3

Browse files
committed
re-write min dependency version
1 parent 337bd41 commit 3309ba3

File tree

3 files changed

+21
-0
lines changed

3 files changed

+21
-0
lines changed

build/build-pcl.proj

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
<Configuration Condition="$(Configuration) == ''">Release</Configuration>
1616
<NuGetPath>$(BuildSolutionDir)/src/.nuget/nuget.exe</NuGetPath>
1717
<NuGetPackageDir>$(BuildSolutionDir)/NuGet.Pcl/</NuGetPackageDir>
18+
<NuGetVersion>$(MajorVersion).$(MinorVersion).$(PatchVersion)</NuGetVersion>
1819
<Version>$(MajorVersion).$(MinorVersion).$(PatchVersion).0</Version>
1920
<UnstableTag Condition="$(RELEASE) == ''">-unstable</UnstableTag>
2021
<PackageVersion>$(MajorVersion).$(MinorVersion).$(PatchVersion)$(UnstableTag)</PackageVersion>
@@ -75,6 +76,13 @@
7576
<Find>ServiceStackVersion = \d+\.\d+m;</Find>
7677
<ReplaceWith>ServiceStackVersion = $(EnvVersion)m;</ReplaceWith>
7778
</RegexTransform>
79+
80+
<!--Update Min Dependency Version -->
81+
<RegexTransform Include="$(NuGetPackageDir)/**/*.nuspec">
82+
<Find>version="4.0"</Find>
83+
<ReplaceWith>version="$(NuGetVersion)"</ReplaceWith>
84+
</RegexTransform>
85+
7886
</ItemGroup>
7987

8088
<RegexTransform Items="@(RegexTransform)" />

build/build-sn.proj

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
<Configuration Condition="$(Configuration) == ''">Signed</Configuration>
1616
<NuGetPath>$(BuildSolutionDir)/src/.nuget/nuget.exe</NuGetPath>
1717
<NuGetPackageDir>$(BuildSolutionDir)/NuGet.Signed/</NuGetPackageDir>
18+
<NuGetVersion>$(MajorVersion).$(MinorVersion).$(PatchVersion)</NuGetVersion>
1819
<Version>$(MajorVersion).$(MinorVersion).$(PatchVersion).0</Version>
1920
<UnstableTag Condition="$(RELEASE) == ''">-unstable</UnstableTag>
2021
<PackageVersion>$(MajorVersion).$(MinorVersion).$(PatchVersion)$(UnstableTag)</PackageVersion>
@@ -74,6 +75,12 @@
7475
</RegexTransform>
7576
</ItemGroup>
7677

78+
<!--Update Min Dependency Version -->
79+
<RegexTransform Include="$(NuGetPackageDir)/**/*.nuspec">
80+
<Find>version="4.0"</Find>
81+
<ReplaceWith>version="$(NuGetVersion)"</ReplaceWith>
82+
</RegexTransform>
83+
7784
<RegexTransform Items="@(RegexTransform)" />
7885
</Target>
7986

build/build.proj

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
<Configuration Condition="$(Configuration) == ''">Release</Configuration>
1616
<NuGetPath>$(BuildSolutionDir)/src/.nuget/nuget.exe</NuGetPath>
1717
<NuGetPackageDir>$(BuildSolutionDir)/NuGet/</NuGetPackageDir>
18+
<NuGetVersion>$(MajorVersion).$(MinorVersion).$(PatchVersion)</NuGetVersion>
1819
<Version>$(MajorVersion).$(MinorVersion).$(PatchVersion).0</Version>
1920
<UnstableTag Condition="$(RELEASE) == ''">-unstable</UnstableTag>
2021
<PackageVersion>$(MajorVersion).$(MinorVersion).$(PatchVersion)$(UnstableTag)</PackageVersion>
@@ -75,6 +76,11 @@
7576
<Find>key="servicestack:license".*</Find>
7677
<ReplaceWith>key="servicestack:license" value="$([System.IO.File]::ReadAllText($(MSBuildProjectDirectory)/appsettings.license.txt))" /&gt;</ReplaceWith>
7778
</RegexTransform>
79+
<!--Update Min Dependency Version -->
80+
<RegexTransform Include="$(NuGetPackageDir)/**/*.nuspec">
81+
<Find>version="4.0"</Find>
82+
<ReplaceWith>version="$(NuGetVersion)"</ReplaceWith>
83+
</RegexTransform>
7884
</ItemGroup>
7985

8086
<RegexTransform Items="@(RegexTransform)" />

0 commit comments

Comments
 (0)