Skip to content

Commit

Permalink
Fix passing assemblies using relative path (dotnet#107536)
Browse files Browse the repository at this point in the history
  • Loading branch information
jkurdek authored and jtschuster committed Sep 17, 2024
1 parent a200330 commit 954c083
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 954c083

Please sign in to comment.