Directory.Build.props 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  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;CS0067;CS0168;CS0414;CS0618;CS0169;CS1591;CS1723;CS8632;CA2200;CS1574;CS1572;CS1573</NoWarn>
  9. <AllowUnsafeBlocks>true</AllowUnsafeBlocks>
  10. </PropertyGroup>
  11. <!--
  12. MonoGame Version Selection
  13. - Stable build (IsPreviewBuild=false): use MonoGame 3.8.4
  14. - Preview Build (IsPreviewBuild=true): Use MonoGame 3.8.5-preview.#
  15. MonogameVersion can be overridden via command line:
  16. dotnet build /p:MonoGameVersion=3.8.5-preview.3
  17. -->
  18. <PropertyGroup>
  19. <MonogameStableVersion>3.8.4.1</MonogameStableVersion>
  20. <MonoGamePreviewVersion Condition="'$(MonoGamePreviewVersion)' == ''">3.8.5-preview.3</MonoGamePreviewVersion>
  21. <!-- Select version based on build type -->
  22. <MonoGameVersion Condition="'$(MonoGameVersion)' == '' AND '$(IsPreviewBuild)' == 'true'">$(MonoGamePreviewVersion)</MonoGameVersion>
  23. <MonoGameVersion Condition="'$(MonoGameVersion)' == '' AND '$(IsPreviewBuild)' != 'true'">$(MonoGameStableVersion)</MonoGameVersion>
  24. </PropertyGroup>
  25. <!-- MonoGame Framework References (Standard) -->
  26. <ItemGroup
  27. Condition="!$(DefineConstants.Contains('FNA')) AND !$(DefineConstants.Contains('KNI'))">
  28. <PackageReference Include="MonoGame.Framework.DesktopGL"
  29. Version="$(MonoGameVersion)"
  30. PrivateAssets="All" />
  31. </ItemGroup>
  32. <!-- FNA Framework References -->
  33. <ItemGroup Condition="$(DefineConstants.Contains('FNA'))">
  34. <ProjectReference Include="$(MSBuildThisFileDirectory)..\..\FNA\FNA.NetStandard.csproj" />
  35. </ItemGroup>
  36. <!-- KNI Framework References -->
  37. <ItemGroup Condition="$(DefineConstants.Contains('KNI'))">
  38. <PackageReference Include="nkast.Xna.Framework"
  39. Version="4.0.9001" />
  40. <PackageReference Include="nkast.Xna.Framework.Content"
  41. Version="4.0.9001" />
  42. <PackageReference Include="nkast.Xna.Framework.Graphics"
  43. Version="4.0.9001" />
  44. <PackageReference Include="nkast.Xna.Framework.Audio"
  45. Version="4.0.9001" />
  46. <PackageReference Include="nkast.Xna.Framework.Input"
  47. Version="4.0.9001" />
  48. <PackageReference Include="nkast.Xna.Framework.Game"
  49. Version="4.0.9001" />
  50. </ItemGroup>
  51. </Project>