maui-linux/.nuspec/Xamarin.Forms.Maps.targets

23 строки
1.3 KiB
XML

<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<Target Name="Debug" BeforeTargets="BeforeBuild" >
<Message Text="TargetPlatformIdentifier - $(TargetPlatformIdentifier)" Importance="high"></Message>
</Target>
<Target Name="PlatformCheck" BeforeTargets="InjectReference"
Condition=" (('$(TargetPlatformIdentifier)' == 'Windows') AND ('$(Platform)' != 'x86') AND ('$(Platform)' != 'ARM') AND ('$(Platform)' != 'x64') )">
<Error Text="$(MSBuildThisFileName) does not work correctly on '$(Platform)'
platform. You need to specify platform (x86 / x64 or ARM)." />
</Target>
<Target Name="InjectReference" BeforeTargets="ResolveAssemblyReferences">
<ItemGroup Condition="'$(TargetPlatformIdentifier)' == 'Windows' AND ( '$(Platform)' == 'x86' or '$(Platform)' == 'x64' or '$(Platform)' == 'ARM')">
<Reference Include="Xamarin.Forms.Maps.WinRT.Tablet">
<HintPath>$(MSBuildThisFileDirectory)$(Platform)\Xamarin.Forms.Maps.WinRT.Tablet.dll</HintPath>
</Reference>
<Reference Include="Xamarin.Forms.Platform.WinRT.Tablet">
<HintPath>$(MSBuildThisFileDirectory)$(Platform)\Xamarin.Forms.Platform.WinRT.Tablet.dll</HintPath>
</Reference>
</ItemGroup>
</Target>
</Project>