summaryrefslogtreecommitdiff
path: root/.nuspec/Xamarin.Forms.Maps.targets
diff options
context:
space:
mode:
Diffstat (limited to '.nuspec/Xamarin.Forms.Maps.targets')
-rw-r--r--.nuspec/Xamarin.Forms.Maps.targets22
1 files changed, 22 insertions, 0 deletions
diff --git a/.nuspec/Xamarin.Forms.Maps.targets b/.nuspec/Xamarin.Forms.Maps.targets
new file mode 100644
index 00000000..d95dc3b7
--- /dev/null
+++ b/.nuspec/Xamarin.Forms.Maps.targets
@@ -0,0 +1,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>