diff --git a/build/push.targets b/build/push.targets
index a766f7d43c..2b3ee0d92b 100644
--- a/build/push.targets
+++ b/build/push.targets
@@ -5,7 +5,7 @@
<_PackagesToPush Include="$(BuildDir)*.nupkg" />
<_PackagesToPush Include="$(ArtifactsDir)mirror\*.nupkg" />
- <_LineupPackagesToPush Include="$(BuildDir)*.nupkg" />
+ <_LineupPackagesToPush Include="$(LineupBuildDir)*.nupkg" />
-
+
<_MirroredPackageFiles Include="$(IntermediateMirrorPackageDir)*.nupkg" />
diff --git a/build/tasks/CopyPackagesToSplitFolders.cs b/build/tasks/CopyPackagesToSplitFolders.cs
index 682e50806c..ca5ebf3544 100644
--- a/build/tasks/CopyPackagesToSplitFolders.cs
+++ b/build/tasks/CopyPackagesToSplitFolders.cs
@@ -44,16 +44,26 @@ namespace RepoTasks
foreach (var file in Files)
{
+ var isSymbolsPackage = file.ItemSpec.EndsWith(".symbols.nupkg", StringComparison.OrdinalIgnoreCase);
+
PackageIdentity identity;
using (var reader = new PackageArchiveReader(file.ItemSpec))
{
identity = reader.GetIdentity();
}
- if (!expectedPackages.TryGetCategory(identity.Id, out var category))
+ PackageCategory category;
+ if (isSymbolsPackage)
{
- Log.LogError($"Unexpected package artifact with id: {identity.Id}");
- continue;
+ category = PackageCategory.Symbols;
+ }
+ else
+ {
+ if (!expectedPackages.TryGetCategory(identity.Id, out category))
+ {
+ Log.LogError($"Unexpected package artifact with id: {identity.Id}");
+ continue;
+ }
}
string destDir;
@@ -73,6 +83,9 @@ namespace RepoTasks
case PackageCategory.Mirror:
destDir = Path.Combine(DestinationFolder, "mirror");
break;
+ case PackageCategory.Symbols:
+ destDir = Path.Combine(DestinationFolder, "symbols");
+ break;
default:
throw new NotImplementedException();
}
diff --git a/build/tasks/ProjectModel/PackageCategory.cs b/build/tasks/ProjectModel/PackageCategory.cs
index e3869319f0..0baa60e7a4 100644
--- a/build/tasks/ProjectModel/PackageCategory.cs
+++ b/build/tasks/ProjectModel/PackageCategory.cs
@@ -11,5 +11,6 @@ namespace RepoTasks.ProjectModel
NoShip,
ShipOob,
Mirror,
+ Symbols,
}
}