This repository was archived by the owner on Jan 12, 2024. It is now read-only.
File tree Expand file tree Collapse file tree
src/Build/NuGet.Build.Packaging.Tasks Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -15,6 +15,8 @@ public class ApiIntersect : ToolTask
1515 [ Required ]
1616 public ITaskItem [ ] IntersectionAssembly { get ; set ; }
1717
18+ public ITaskItem [ ] ReferencePath { get ; set ; }
19+
1820 [ Required ]
1921 public ITaskItem RootOutputDirectory { get ; set ; }
2022
@@ -56,6 +58,12 @@ protected override string GenerateCommandLineCommands()
5658 builder . AppendFileNameIfNotNull ( assembly . ItemSpec ) ;
5759 }
5860
61+ foreach ( var referencePath in ReferencePath . NullAsEmpty ( ) )
62+ {
63+ builder . AppendSwitch ( "-r" ) ;
64+ builder . AppendFileNameIfNotNull ( referencePath . ItemSpec ) ;
65+ }
66+
5967 return builder . ToString ( ) ;
6068 }
6169
Original file line number Diff line number Diff line change @@ -521,6 +521,7 @@ Copyright (c) .NET Foundation. All rights reserved.
521521 Framework=" %(ReferenceAssemblyFramework.Identity)"
522522 RootOutputDirectory=" $(IntermediateOutputPath)"
523523 IntersectionAssembly=" @(IntersectionAssembly)"
524+ ReferencePath=" $(IntersectionAssemblyReferencePath)"
524525 ToolPath=" $(ApiIntersectToolPath)"
525526 ToolExe=" $(ApiIntersectToolExe)" >
526527 <Output TaskParameter =" OutputDirectory" ItemName =" _ReferenceAssemblyBuildInfo" />
You can’t perform that action at this time.
0 commit comments