Skip to content

Commit

Permalink
Fix passing assemblies using relative path (#107548)
Browse files Browse the repository at this point in the history
Co-authored-by: Jeremi Kurdek <jkurdek@gmail.com>
Co-authored-by: Jeff Schwartz <jeffschw@microsoft.com>
  • Loading branch information
3 people authored Sep 12, 2024
1 parent 24cd94c commit c13aac8
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/tasks/MonoTargetsTasks/ILStrip/ILStrip.cs
Original file line number Diff line number Diff line change
Expand Up @@ -127,13 +127,14 @@ private bool StripAssembly(ITaskItem assemblyItem)

try
{
if(!AssemblyStripper.AssemblyStripper.TryStripAssembly(assemblyFile, outputPath))
if (!AssemblyStripper.AssemblyStripper.TryStripAssembly(assemblyFile, outputPath))
{
Log.LogMessage(MessageImportance.Low, $"[ILStrip] Skipping {assemblyFile} because it is not a managed assembly.");
}
else
{
_processedAssemblies.GetOrAdd(assemblyItem.ItemSpec, GetTrimmedAssemblyItem(assemblyItem, outputPath, assemblyFile));
var fullPath = assemblyItem.GetMetadata("FullPath");
_processedAssemblies.GetOrAdd(fullPath, GetTrimmedAssemblyItem(assemblyItem, outputPath, assemblyFile));
}
}
catch (Exception ex)
Expand Down

0 comments on commit c13aac8

Please sign in to comment.