[dotnet] Remove any global usings added by the .NET 6 SDK pack.

This commit is contained in:
Rolf Bjarne Kvinge 2022-06-30 14:06:08 +02:00 коммит произвёл vs-mobiletools-engineering-service2
Родитель 731e15a9b8
Коммит be73bfadae
1 изменённых файлов: 14 добавлений и 0 удалений

Просмотреть файл

@ -1867,6 +1867,20 @@ global using nfloat = global::System.Runtime.InteropServices.NFloat%3B
</ItemGroup>
</Target>
<!--
The .NET 6 sdk pack will add a global using directive by adding to the
'Using' item group, but we don't want that anymore in .NET 7 (we
manually generate the global using to avoid a C# warning), so remove
any global using that may have been added by the .NET sdk pack. The
.NET 6 sdk pack will one day condition the inclusion on the current
target framework version, and at that point we can remove this
workaround (https://github.com/xamarin/xamarin-macios/pull/15385).
-->
<Target Name="RemoveGlobalnfloatUsingItemGroup" BeforeTargets="PrepareForBuild">
<ItemGroup>
<Using Remove="System.Runtime.InteropServices.NFloat" />
</ItemGroup>
</Target>
<!-- Import existing targets -->