Skip to content

Commit 0aea834

Browse files
github-actions[bot]Copilotbaronfel
authored
[release/10.0.1xx] Fix RunReadyToRunCompiler to use ItemSpec instead of ToString for assembly references (#50891)
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: baronfel <573979+baronfel@users.noreply.github.com>
1 parent 4cb156d commit 0aea834

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)