Skip to content

Instantly share code, notes, and snippets.

@rolfbjarne
Created January 16, 2023 14:01
Show Gist options
  • Save rolfbjarne/f0d54b7db1f4c402b5605780c2be7452 to your computer and use it in GitHub Desktop.
Save rolfbjarne/f0d54b7db1f4c402b5605780c2be7452 to your computer and use it in GitHub Desktop.
diff --git a/dotnet/targets/Xamarin.Shared.Sdk.targets b/dotnet/targets/Xamarin.Shared.Sdk.targets
index fd5c70e02ea..0c2216fbfed 100644
--- a/dotnet/targets/Xamarin.Shared.Sdk.targets
+++ b/dotnet/targets/Xamarin.Shared.Sdk.targets
@@ -741,7 +741,8 @@
<ItemGroup>
<_AssembliesToBeStripped Include="@(ResolvedFileToPublish)" Condition="'%(Extension)' == '.dll'">
<OutputPath Condition="'%(ResolvedFileToPublish.DestinationSubPath)' != ''">$(_StrippedAssemblyDirectory)\%(ResolvedFileToPublish.DestinationSubPath)</OutputPath>
- <OutputPath Condition="'%(ResolvedFileToPublish.DestinationSubPath)' == ''">$(_StrippedAssemblyDirectory)\%(Filename)%(Extension)</OutputPath>
+ <OutputPath Condition="'%(ResolvedFileToPublish.OutputPath)' == ''">$(_StrippedAssemblyDirectory)\%(ResolvedFileToPublish.TargetPath)</OutputPath>
+ <OutputPath Condition="'%(ResolvedFileToPublish.OutputPath)' == ''">$(_StrippedAssemblyDirectory)\%(Filename)%(Extension)</OutputPath>
</_AssembliesToBeStripped>
<!-- Use forward slashes in OutputPath, otherwise ILStrip will create filenames that resemble the part of
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment