Add message when there are no differences, don't validate non-portable builds
This commit is contained in:
parent
3adb0cc25c
commit
97d8e4d2b6
1 changed files with 11 additions and 3 deletions
|
@ -6,7 +6,8 @@
|
||||||
<Target Name="ReportSdkArchiveDiffs"
|
<Target Name="ReportSdkArchiveDiffs"
|
||||||
AfterTargets="Build"
|
AfterTargets="Build"
|
||||||
DependsOnTargets="DetermineSourceBuiltSdkVersion"
|
DependsOnTargets="DetermineSourceBuiltSdkVersion"
|
||||||
Condition="'$(ShortStack)' != 'true'" >
|
Condition="'$(ShortStack)' != 'true' AND '$(PortableBuild)' == 'true'" >
|
||||||
|
<!-- ShortStack doesn't produce an SDK, and GetClosestOfficialSdk doesn't support finding non-portable SDKs -->
|
||||||
|
|
||||||
<Message Text="Comparing built SDK against closest official build"
|
<Message Text="Comparing built SDK against closest official build"
|
||||||
Importance="High"/>
|
Importance="High"/>
|
||||||
|
@ -34,9 +35,16 @@
|
||||||
ItemName="_ContentDifferences" />
|
ItemName="_ContentDifferences" />
|
||||||
</FindArchiveDiffs>
|
</FindArchiveDiffs>
|
||||||
|
|
||||||
<Message Text="Difference in sdk archive: %(_ContentDifferences.Kind): %(_ContentDifferences.Identity)"
|
<ItemGroup>
|
||||||
|
<_changedFiles Include="@(_ContentDifferences)" Condition="'%(_contentDifferences.Kind)' != 'Unchanged'" />
|
||||||
|
</ItemGroup>
|
||||||
|
|
||||||
|
<Message Text="Difference in sdk archive: %(_changedFiles.Kind): %(_changedFiles.Identity)"
|
||||||
Importance="High"
|
Importance="High"
|
||||||
Condition="'%(_ContentDifferences.Identity)' != '' AND '%(_ContentDifferences.Kind)' != 'Unchanged'"/>
|
Condition="'@(_changedFiles->Count())' != '0'"/>
|
||||||
|
<Message Text="No differences in sdk archive file contents"
|
||||||
|
Importance="High"
|
||||||
|
Condition="'@(_changedFiles->Count())' == '0'" />
|
||||||
|
|
||||||
<Delete Files="$(_ClosestOfficialSdkPath)"
|
<Delete Files="$(_ClosestOfficialSdkPath)"
|
||||||
Condition="'$(_ClosestOfficialSdkPath)' == ''"/>
|
Condition="'$(_ClosestOfficialSdkPath)' == ''"/>
|
||||||
|
|
Loading…
Reference in a new issue