Directory.Build.props 2.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <Project>
  3. <Import Project="$(MSBuildThisFileDirectory)..\Directory.Build.props" />
  4. <PropertyGroup>
  5. <ArtifactsPath>$(SolutionDirectory).artifacts/source</ArtifactsPath>
  6. <GenerateDocumentationFile>true</GenerateDocumentationFile>
  7. <IsPackable>true</IsPackable>
  8. <NoWarn>NU1701</NoWarn>
  9. <AllowUnsafeBlocks>true</AllowUnsafeBlocks>
  10. </PropertyGroup>
  11. <!-- Define compilation constant for MonoGame 3.8.5+ preview builds -->
  12. <PropertyGroup Condition="'$(IsPreviewBuild)' == 'true'">
  13. <DefineConstants>$(DefineConstants);MONOGAME_385_OR_NEWER</DefineConstants>
  14. </PropertyGroup>
  15. <!--
  16. MonoGame Version Selection
  17. - Stable build (IsPreviewBuild=false): use MonoGame 3.8.4
  18. - Preview Build (IsPreviewBuild=true): Use MonoGame 3.8.5-preview.#
  19. MonogameVersion can be overridden via command line:
  20. dotnet build /p:MonoGameVersion=3.8.5-preview.3
  21. -->
  22. <PropertyGroup>
  23. <MonogameStableVersion>3.8.4.1</MonogameStableVersion>
  24. <MonoGamePreviewVersion Condition="'$(MonoGamePreviewVersion)' == ''">3.8.5-preview.3</MonoGamePreviewVersion>
  25. <!-- Select version based on build type -->
  26. <MonoGameVersion Condition="'$(MonoGameVersion)' == '' AND '$(IsPreviewBuild)' == 'true'">$(MonoGamePreviewVersion)</MonoGameVersion>
  27. <MonoGameVersion Condition="'$(MonoGameVersion)' == '' AND '$(IsPreviewBuild)' != 'true'">$(MonoGameStableVersion)</MonoGameVersion>
  28. </PropertyGroup>
  29. <!-- MonoGame Framework References (Standard) -->
  30. <ItemGroup
  31. Condition="!$(DefineConstants.Contains('FNA')) AND !$(DefineConstants.Contains('KNI'))">
  32. <PackageReference Include="MonoGame.Framework.DesktopGL"
  33. Version="$(MonoGameVersion)"
  34. PrivateAssets="All" />
  35. </ItemGroup>
  36. <!-- FNA Framework References -->
  37. <ItemGroup Condition="$(DefineConstants.Contains('FNA'))">
  38. <ProjectReference Include="$(MSBuildThisFileDirectory)..\..\FNA\FNA.NetStandard.csproj" />
  39. </ItemGroup>
  40. <!-- KNI Framework References -->
  41. <ItemGroup Condition="$(DefineConstants.Contains('KNI'))">
  42. <PackageReference Include="nkast.Xna.Framework"
  43. Version="4.0.9001" />
  44. <PackageReference Include="nkast.Xna.Framework.Content"
  45. Version="4.0.9001" />
  46. <PackageReference Include="nkast.Xna.Framework.Graphics"
  47. Version="4.0.9001" />
  48. <PackageReference Include="nkast.Xna.Framework.Audio"
  49. Version="4.0.9001" />
  50. <PackageReference Include="nkast.Xna.Framework.Input"
  51. Version="4.0.9001" />
  52. <PackageReference Include="nkast.Xna.Framework.Game"
  53. Version="4.0.9001" />
  54. </ItemGroup>
  55. </Project>