Skip to content

Commit 9e0fc69

Browse files
SimaTianCopilot
andcommitted
Add TaskEnvironment to ProduceContentAssets tests
ProduceContentAssets now uses TaskEnvironment.GetAbsolutePath() in ProduceContentAsset(). Tests must provide TaskEnvironment. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent 0784270 commit 9e0fc69

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

src/Tasks/Microsoft.NET.Build.Tasks/RunCsWinRTGenerator.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,11 @@ protected override string GenerateResponseFileCommands()
211211
{
212212
StringBuilder args = new();
213213

214+
<<<<<<< Updated upstream
214215
IEnumerable<string> referenceAssemblyPaths = ReferenceAssemblyPaths!.Select(static path => path.ItemSpec);
216+
=======
217+
IEnumerable<string> referenceAssemblyPaths = ReferenceAssemblyPaths!.Select(path => (string)TaskEnvironment.GetAbsolutePath(path.ItemSpec));
218+
>>>>>>> Stashed changes
215219
string referenceAssemblyPathsArg = string.Join(",", referenceAssemblyPaths);
216220

217221
AppendResponseFileCommand(args, "--reference-assembly-paths", referenceAssemblyPathsArg);

0 commit comments

Comments
 (0)