Skip to content

Instantly share code, notes, and snippets.

@mattpodwysocki
Created June 9, 2020 19:38
Show Gist options
  • Save mattpodwysocki/75dbdb7fbbc38b634ae06076e4b3b5ae to your computer and use it in GitHub Desktop.
Save mattpodwysocki/75dbdb7fbbc38b634ae06076e4b3b5ae to your computer and use it in GitHub Desktop.
<Project Sdk="MSBuild.Sdk.Extras/2.0.54">
<PropertyGroup>
<OutputType>Library</OutputType>
<RootNamespace>Microsoft.Azure.NotificationHubs.Client</RootNamespace>
<AssemblyName>Microsoft.Azure.NotificationHubs.Client</AssemblyName>
<!-- Target both iOS and Android -->
<TargetFrameworks>Xamarin.iOS10;MonoAndroid80;netstandard2.0</TargetFrameworks>
<Product>$(AssemblyName) ($(TargetFramework))</Product>
<AssemblyVersion>1.0.0.0</AssemblyVersion>
<AssemblyFileVersion>1.0.0.0</AssemblyFileVersion>
<Version>1.0.0.0</Version>
<NeutralLanguage>en</NeutralLanguage>
<PackageTags>Azure;Push;NotificationHubs</PackageTags>
<!-- Explicit adding of files only -->
<EnableDefaultCompileItems>false</EnableDefaultCompileItems>
<!-- Helper to add defines-->
<DefineConstants>$(DefineConstants);</DefineConstants>
<!--Version of C# to use -->
<LangVersion>default</LangVersion>
<!-- NuGet info -->
<PublishRepositoryUrl>true</PublishRepositoryUrl>
<IncludeSymbols>true</IncludeSymbols>
<EmbedUntrackedSources>true</EmbedUntrackedSources>
<AllowedOutputExtensionsInPackageBuildOutputFolder>$(AllowedOutputExtensionsInPackageBuildOutputFolder);.pdb</AllowedOutputExtensionsInPackageBuildOutputFolder>
<PackOnBuild>true</PackOnBuild>
<PackageId>Microsoft.Azure.NotificationHubs.Client</PackageId>
<PackageVersion>1.0.0</PackageVersion>
<Authors>Microsoft</Authors>
<Owners>Microsoft</Owners>
<Description>Azure Notification Hubs SDK for Xamarin Forms</Description>
</PropertyGroup>
<!-- iOS PropertyGroup Settings -->
<PropertyGroup Condition=" '$(TargetFramework)' == 'Xamarin.iOS10' ">
<IPhoneResourcePrefix>Resources</IPhoneResourcePrefix>
</PropertyGroup>
<!-- Android PropertyGroup Settings -->
<PropertyGroup Condition=" '$(TargetFramework)' == 'MonoAndroid80' ">
<MonoAndroidResourcePrefix>Resources</MonoAndroidResourcePrefix>
<MonoAndroidAssetsPrefix>Assets</MonoAndroidAssetsPrefix>
</PropertyGroup>
<!-- Add Xamarin iOS bindings -->
<ItemGroup Condition=" '$(TargetFramework)' == 'Xamarin.iOS10' ">
<PackageReference Include="Xamarin.Azure.NotificationHubs.iOS" Version="3.0.0-preview2" />
</ItemGroup>
<!-- Add Xamarin Android bindings -->
<ItemGroup Condition=" '$(TargetFramework)' == 'MonoAndroid80' ">
<PackageReference Include="Xamarin.Azure.NotificationHubs.Android" Version="1.0.0-preview2" />
</ItemGroup>
<!-- Debug -->
<PropertyGroup Condition=" '$(Configuration)|$(Platform)'=='Debug|anycpu' ">
<DebugType>full</DebugType>
<DebugSymbols>true</DebugSymbols>
<GenerateDocumentationFile>false</GenerateDocumentationFile>
<OutputPath>bin\Debug</OutputPath>
<DefineConstants>DEBUG;</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<!-- iOS Debug -->
<PropertyGroup Condition=" '$(Configuration)|$(TargetFramework)|$(Platform)' == 'Debug|Xamarin.iOS10|anycpu' ">
<CodesignKey>iPhone Developer</CodesignKey>
<MtouchDebug>true</MtouchDebug>
<MtouchNoSymbolStrip>true</MtouchNoSymbolStrip>
<MtouchFastDev>true</MtouchFastDev>
<IOSDebuggerPort>54400</IOSDebuggerPort>
<MtouchHttpClientHandler>NSUrlSessionHandler</MtouchHttpClientHandler>
</PropertyGroup>
<!-- Android Debug -->
<PropertyGroup Condition=" '$(Configuration)|$(TargetFramework)|$(Platform)' == 'Debug|MonoAndroid80|anycpu' ">
<AndroidLinkMode>None</AndroidLinkMode>
</PropertyGroup>
<!-- Release -->
<PropertyGroup Condition=" '$(Configuration)|$(Platform)'=='Release|anycpu' ">
<DebugType>embedded</DebugType>
<GenerateDocumentationFile>true</GenerateDocumentationFile>
<OutputPath>bin\Release</OutputPath>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
</PropertyGroup>
<!-- iOS Release -->
<PropertyGroup Condition=" '$(Configuration)|$(TargetFramework)|$(Platform)' == 'Release|Xamarin.iOS10|anycpu' ">
<CodesignKey>iPhone Developer</CodesignKey>
<MtouchDebug>true</MtouchDebug>
<MtouchNoSymbolStrip>true</MtouchNoSymbolStrip>
<MtouchFastDev>true</MtouchFastDev>
<IOSDebuggerPort>54400</IOSDebuggerPort>
<MtouchHttpClientHandler>NSUrlSessionHandler</MtouchHttpClientHandler>
</PropertyGroup>
<!-- Android Release -->
<PropertyGroup Condition=" '$(Configuration)|$(TargetFramework)|$(Platform)' == 'Release|MonoAndroid80|anycpu' ">
<AndroidManagedSymbols>true</AndroidManagedSymbols>
<AndroidUseSharedRuntime>false</AndroidUseSharedRuntime>
</PropertyGroup>
<ItemGroup>
<!-- This None is here so the conditionally included files show up in the Solution Explorer -->
<None Include="**\*.cs;**\*.xml;**\*.axml;**\*.png" Exclude="obj\**\*.*;bin\**\*.*;bin;obj" />
<!-- Include only shared files by default -->
<Compile Include="**\*.shared.cs" />
</ItemGroup>
<!-- .NET Standard files have net.cs -->
<ItemGroup Condition=" $(TargetFramework.StartsWith('netstandard')) ">
<Compile Include="**\*.net.cs" />
</ItemGroup>
<!-- iOS files have ios.cs -->
<ItemGroup Condition=" $(TargetFramework.StartsWith('Xamarin.iOS')) ">
<Compile Include="**\*.ios.cs" />
</ItemGroup>
<!-- Android files have android.cs -->
<ItemGroup Condition=" $(TargetFramework.StartsWith('MonoAndroid')) ">
<Compile Include="**\*.android.cs" />
</ItemGroup>
<!-- Packaging and source linking -->
<ItemGroup>
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="1.0.0" PrivateAssets="All" />
</ItemGroup>
</Project>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment