summaryrefslogtreecommitdiff
path: root/.nuspec/Xamarin.Forms.Maps.targets
blob: d95dc3b7b08a1744036e9dcddf072f1ba1e651cc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
<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>