Skip to content

Commit 449ab3b

Browse files
Copilotbaronfel
andauthored
Fix RunReadyToRunCompiler to use ItemSpec instead of ToString for assembly references (#50791)
Co-authored-by: copilot-swe-agent[bot] <[email protected]> Co-authored-by: baronfel <[email protected]>
1 parent 90b7879 commit 449ab3b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -232,11 +232,11 @@ private string GetAssemblyReferencesCommands()
232232

233233
if (UseCrossgen2 && !IsPdbCompilation)
234234
{
235-
result.AppendLine($"-r:\"{reference}\"");
235+
result.AppendLine($"-r:\"{reference.ItemSpec}\"");
236236
}
237237
else
238238
{
239-
result.AppendLine($"-r \"{reference}\"");
239+
result.AppendLine($"-r \"{reference.ItemSpec}\"");
240240
}
241241
}
242242
}

0 commit comments

Comments
 (0)