Skip to content

Commit cbfef67

Browse files
[release/7.0.2xx-xcode14.3] [dotnet] Add a property to opt-out of the _CopyLocalBindingResources logic easily. (#18450)
It seems this target has more problems than at first I thought, so make it easier to opt-out of it by just setting a property in the csproj. More investigation is needed, but I'm keeping the target on by default for now, since it solves a real-world problem as well. Ref: #18445 Backport of #18443 Co-authored-by: Rolf Bjarne Kvinge <rolf@xamarin.com>
1 parent 849ab26 commit cbfef67

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

dotnet/targets/Xamarin.Shared.Sdk.targets

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1964,7 +1964,11 @@ global using nfloat = global::System.Runtime.InteropServices.NFloat%3B
19641964
</ItemGroup>
19651965
</Target>
19661966

1967-
<Target Name="_CopyLocalBindingResources" AfterTargets="ResolveAssemblyReferences" BeforeTargets="CopyFilesToOutputDirectory">
1967+
<Target Name="_CopyLocalBindingResources"
1968+
AfterTargets="ResolveAssemblyReferences"
1969+
BeforeTargets="CopyFilesToOutputDirectory"
1970+
Condition="'$(_DisableCopyLocalBindingResources)' != 'true'"
1971+
>
19681972
<!--
19691973
19701974
We need to copy binding resource packages (either zipped or as a

0 commit comments

Comments
 (0)