Skip to content

Instantly share code, notes, and snippets.

Last active July 5, 2019 17:29
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
What would you like to do?
<Project Sdk="MSBuild.Sdk.Extras/2.0.29">
<!--Update with your target such as: Xamarin.iOS10 or MonoAndroid80 or Xamarin.Mac20-->
<!--To Multi-target you can do this-->
<!--Assembly and Namespace info -->
<Product>$(AssemblyName) ($(TargetFramework))</Product>
<!--Don't auto add files for me, I will tell you -->
<!-- Helper to add defines-->
<!--Assembly and Namespace info -->
<!--Version of C# to use -->
<!-- Define what happens on build and release -->
<PropertyGroup Condition=" '$(Configuration)'=='Debug' ">
<PropertyGroup Condition=" '$(Configuration)'=='Release' ">
<!-- If we want a nuget package add this
<!-- 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" />
<!-- We will compile anything ending in .shared.cs You can change this -->
<Compile Include="**\*.shared.cs" />
<ItemGroup Condition=" $(TargetFramework.StartsWith('MonoAndroid')) ">
<Compile Include="**\*.android.cs" />
<!-- if you have resources add this
<AndroidResource Include="Resources\**\*.axml" />
<AndroidResource Include="Resources\**\*.xml" />
<AndroidResource Include="Resources\**\*.png" />
<ItemGroup Condition=" $(TargetFramework.StartsWith('Xamarin.iOS')) ">
<Compile Include="**\*.ios.cs" />
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment