diff options
author | github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> | 2021-09-25 01:52:40 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-09-25 01:52:40 +0300 |
commit | 74a09b0d0cead3f7c19f5752aca2c89b44ca1478 (patch) | |
tree | f664d083366f10c1e6a9227857d05f6e230ad93d /eng/packaging.targets | |
parent | 1a828eb9af2b834d80f3243d2c750b3b46d54031 (diff) |
[main] [Release/6.0] Throw error if assembly version for ref pack assemblies doesnot match assembly version shipped in 6.0.0 (#59583)
* throw errow if assembly version in the ref pack doesnot match last released version
* Fix the condition
* Update eng/Versions.props
Co-authored-by: Viktor Hofer <viktor.hofer@microsoft.com>
Co-authored-by: Anirudh Agnihotry <anagniho@microsoft.com>
Co-authored-by: Anirudh Agnihotry <anirudhagnihotry098@gmail.com>
Co-authored-by: Viktor Hofer <viktor.hofer@microsoft.com>
Diffstat (limited to 'eng/packaging.targets')
-rw-r--r-- | eng/packaging.targets | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/eng/packaging.targets b/eng/packaging.targets index 8bd6ccbaeb9..7f9707ab8d8 100644 --- a/eng/packaging.targets +++ b/eng/packaging.targets @@ -245,4 +245,10 @@ </ItemGroup> </Target> + <Target Name="ValidateAssemblyVersionsInRefPack" + Condition="$(_AssemblyInTargetingPack) == 'true' and '$(PreReleaseVersionLabel)' == 'servicing'" + AfterTargets="CoreCompile" > + <Error Condition="'$(AssemblyVersion)' != '$(LastReleasedStableAssemblyVersion)'" Text="AssemblyVersion should match last released assembly version $(LastReleasedStableAssemblyVersion)" /> + </Target> + </Project> |