|
27 | 27 | <PackageReadmeFilePath Condition="'$(PackageReadmeFilePath)' == '' and '$(EnableDefaultPackageReadmeFile)' == 'true'">PACKAGE.md</PackageReadmeFilePath>
|
28 | 28 | <BeforePack>$(BeforePack);ValidatePackageReadmeExists</BeforePack>
|
29 | 29 |
|
30 |
| - <!-- Non-shipping packages shouldn't incrementally serviced. --> |
31 |
| - <PackageUseIncrementalServicingVersion Condition="'$(IsShipping)' != 'true'">false</PackageUseIncrementalServicingVersion> |
32 | 30 | <!-- Generate packages for rid specific projects or for allconfigurations during build. -->
|
33 | 31 | <!-- A package isn't generated if in servicing or in runtimelab. Intended to be overridden at project level. -->
|
34 | 32 | <IsRIDSpecificProject Condition="$(MSBuildProjectName.StartsWith('runtime.')) and
|
|
37 | 35 | '$(BuildAllConfigurations)' == 'true' or
|
38 | 36 | '$(IsRIDSpecificProject)' == 'true'
|
39 | 37 | ) and
|
40 |
| - ( |
41 |
| - '$(PreReleaseVersionLabel)' != 'servicing' or |
42 |
| - '$(PackageUseIncrementalServicingVersion)' != 'true' |
43 |
| - ) and |
44 | 38 | '$(GitHubRepositoryName)' != 'runtimelab'">true</GeneratePackageOnBuild>
|
45 |
| - <!-- When in source-build we need to generate all packages when building for all configurations even in servicing. --> |
46 |
| - <GeneratePackageOnBuild Condition="'$(GeneratePackageOnBuild)' != 'true' and |
47 |
| - '$(BuildAllConfigurations)' == 'true' and |
48 |
| - '$(DotNetBuildSourceOnly)' == 'true'">true</GeneratePackageOnBuild> |
49 | 39 |
|
50 | 40 | <!-- During NoBuild pack invocations, skip project reference build. Necessary for the IncludeProjectReferencesWithPackAttributeInPackage target. -->
|
51 | 41 | <BuildProjectReferences Condition="'$(NoBuild)' == 'true'">false</BuildProjectReferences>
|
|
58 | 48 | <NoWarn>$(NoWarn);CP0003</NoWarn>
|
59 | 49 | </PropertyGroup>
|
60 | 50 |
|
61 |
| - <PropertyGroup Condition="'$(PreReleaseVersionLabel)' == 'servicing' and |
62 |
| - '$(PackageUseIncrementalServicingVersion)' == 'true'"> |
63 |
| - <!-- If no servicing version is set we need to default to 0 in order for dependency versions to |
64 |
| - be calculated properly, if we don't set it to 0, we would get the dependency version using the |
65 |
| - product Patch Version --> |
66 |
| - <ServicingVersion Condition="'$(ServicingVersion)' == ''">0</ServicingVersion> |
67 |
| - |
68 |
| - <!-- Always update the package version in servicing. --> |
69 |
| - <Version>$(MajorVersion).$(MinorVersion).$(ServicingVersion)</Version> |
70 |
| - <Version Condition="'$(VersionSuffix)' != ''">$(Version)-$(VersionSuffix)</Version> |
71 |
| - </PropertyGroup> |
72 |
| - |
73 | 51 | <ItemGroup>
|
74 | 52 | <!-- Add a marker to help the designer optimize & share .NET Core packages -->
|
75 | 53 | <None Include="$(PackageDesignerMarkerFile)"
|
|
327 | 305 | </ItemGroup>
|
328 | 306 | </Target>
|
329 | 307 |
|
330 |
| - <Target Name="ValidateServicingVersionIsProperlySet" |
331 |
| - Condition="'$(PreReleaseVersionLabel)' == 'servicing' and |
332 |
| - '$(PackageUseIncrementalServicingVersion)' == 'true' and |
333 |
| - '$(DotNetBuildSourceOnly)' != 'true'" |
334 |
| - AfterTargets="GenerateNuspec"> |
335 |
| - <Error Condition="'$(ServicingVersion)' == '0'" Text="ServicingVersion is set to 0 and it should be an increment of the patch version from the last released package." /> |
336 |
| - </Target> |
337 |
| - |
338 | 308 | <Target Name="ValidatePackageReadmeExists"
|
339 | 309 | Condition="'$(PackageReadmeFilePath)' != '' and
|
340 | 310 | !Exists('$(PackageReadmeFilePath)')">
|
|
0 commit comments