-
Notifications
You must be signed in to change notification settings - Fork 4k
/
Publishing.props
35 lines (30 loc) · 1.37 KB
/
Publishing.props
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
<?xml version="1.0" encoding="utf-8"?>
<Project>
<PropertyGroup>
<PublishingVersion>3</PublishingVersion>
</PropertyGroup>
<PropertyGroup>
<PublishDependsOnTargets>_ResolvePublishRoslynNuGetPackages;$(PublishDependsOnTargets)</PublishDependsOnTargets>
</PropertyGroup>
<!--
During PR Validation we only need to publish symbols with Arcade,
since our packages are published separately to the CoreXT feed.
-->
<Target Name="_ResolvePublishRoslynNuGetPackages"
DependsOnTargets="BeforePublish"
BeforeTargets="PublishToAzureDevOpsArtifacts"
Condition=" '$(PreReleaseVersionLabel)' == 'pr-validation' ">
<ItemGroup>
<!-- Determine all NuGet packages being published -->
<_NuGetPackagesToPush Include="@(ItemsToPushToBlobFeed)"
Condition=" '%(Extension)' == '.nupkg' " />
<!-- Determine all symbol packages being published -->
<_SymbolPackagesToPush Include="@(_NuGetPackagesToPush)"
Condition="$([System.String]::Copy(%(FullPath)).EndsWith('.symbols.nupkg'))" />
<!-- Remove all NuGet packages from being published -->
<ItemsToPushToBlobFeed Remove="@(_NuGetPackagesToPush)" />
<!-- Include symbol packages for publishing -->
<ItemsToPushToBlobFeed Include="@(_SymbolPackagesToPush)" />
</ItemGroup>
</Target>
</Project>