File tree Expand file tree Collapse file tree 3 files changed +17
-3
lines changed
Expand file tree Collapse file tree 3 files changed +17
-3
lines changed Original file line number Diff line number Diff line change 4949 weak
5050[file "src/Directory.Build.props"]
5151 url = https://github.com/devlooped/oss/blob/main/src/Directory.Build.props
52- sha = 95b338b9780de6b8ed11f060fed2d300f136ec60
52+ sha = 0ff8b7b79a82112678326d1dc5543ed890311366
5353
54- etag = 5e73ffebd7aef6fecae5a73d4fb044bf46f3a593ee2858ff1648d9c337e546ad
54+ etag = 3ebde0a8630d526b80f15801179116e17a857ff880a4442e7db7b075efa4fd63
5555 weak
5656[file "src/Directory.Build.targets"]
5757 url = https://github.com/devlooped/oss/blob/main/src/Directory.Build.targets
Original file line number Diff line number Diff line change @@ -479,6 +479,7 @@ The versioning scheme for packages is:
479479<!-- sponsors.md -->
480480[](https://github.com/clarius)
481481[](https://github.com/MFB-Technologies-Inc)
482+ [](https://github.com/sandrock)
482483[](https://github.com/drivenet)
483484[](https://github.com/Keflon)
484485[](https://github.com/tbolon)
@@ -505,6 +506,8 @@ The versioning scheme for packages is:
505506[](https://github.com/Eule02)
506507[](https://github.com/torutek)
507508[](https://github.com/mccaffers)
509+ [](https://github.com/christoh)
510+ [](https://github.com/ADS-Fund)
508511
509512
510513<!-- sponsors.md -->
Original file line number Diff line number Diff line change 1- <Project >
1+ <Project TreatAsLocalProperty = " VersionPrefix " >
22 <!-- To extend/change the defaults, create a Directory.props alongside this file -->
33
44 <PropertyGroup Label =" CI" Condition =" '$(CI)' == ''" >
4545 <GeneratePathProperty >true</GeneratePathProperty >
4646 <!-- Avoid warnings for test projects when we run dotnet pack on the whole solution. -->
4747 <WarnOnPackingNonPackableProject >false</WarnOnPackingNonPackableProject >
48+ <!-- See https://learn.microsoft.com/en-us/nuget/consume-packages/package-references-in-project-files#prunepackagereference-specification -->
49+ <RestoreEnablePackagePruning >true</RestoreEnablePackagePruning >
4850 </PropertyGroup >
4951
5052 <PropertyGroup Label =" Build" >
136138 <VersionSuffix Condition =" !$(VersionLabel.Contains('refs/tags/'))" >$(_VersionLabel)</VersionSuffix >
137139 <!-- Special case for tags, the label is actually the version. Backs compat since passed-in value overrides MSBuild-set one -->
138140 <Version Condition =" $(VersionLabel.Contains('refs/tags/'))" >$(_VersionLabel)</Version >
141+
142+ <!-- In order for latest from main/master to always be greatest when using -prerelease switch on install/run,
143+ we change the scheme as follows:
144+ - main/master remain as today: VersionPrefix: 42.42.${{ github.run_number }} (from yaml)
145+ - others: VersionPrefix: 42.42.0-[label].${{ github.run_number }}
146+ -->
147+ <IsMaster Condition =" $(VersionLabel.Contains('refs/heads/main')) or $(VersionLabel.Contains('refs/heads/master'))" >true</IsMaster >
148+ <VersionPrefix Condition =" '$(IsMaster)' != 'true'" >42.42.0</VersionPrefix >
149+ <VersionSuffix Condition =" '$(IsMaster)' != 'true'" >$(VersionSuffix).$(GITHUB_RUN_NUMBER)</VersionSuffix >
139150 </PropertyGroup >
140151
141152 <ItemGroup Label =" ThisAssembly.Project" >
You can’t perform that action at this time.
0 commit comments