Directory.Build.props 4.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <Project>
  3. <Import Project="$(MSBuildThisFileDirectory)..\Directory.Build.props" />
  4. <PropertyGroup>
  5. <ArtifactsPath>$(SolutionDirectory).artifacts/tests</ArtifactsPath>
  6. <ProjectCategory>tests</ProjectCategory>
  7. <GenerateDocumentationFile>false</GenerateDocumentationFile>
  8. <IsPackable>false</IsPackable>
  9. <NoWarn>CA1707</NoWarn>
  10. <AllowUnsafeBlocks>true</AllowUnsafeBlocks>
  11. </PropertyGroup>
  12. <!-- Define compilation constant for MonoGame 3.8.5+ preview builds -->
  13. <PropertyGroup Condition="'$(IsPreviewBuild)' == 'true'">
  14. <DefineConstants>$(DefineConstants);MONOGAME_385_OR_NEWER</DefineConstants>
  15. </PropertyGroup>
  16. <!--
  17. MonoGame Version Selection
  18. - Stable build (IsPreviewBuild=false): use MonoGame 3.8.4
  19. - Preview Build (IsPreviewBuild=true): Use MonoGame 3.8.5-preview.#
  20. MonogameVersion can be overridden via command line:
  21. dotnet build /p:MonoGameVersion=3.8.5-preview.3
  22. -->
  23. <PropertyGroup>
  24. <MonogameStableVersion>3.8.4.1</MonogameStableVersion>
  25. <MonoGamePreviewVersion Condition="'$(MonoGamePreviewVersion)' == ''">3.8.5-preview.3</MonoGamePreviewVersion>
  26. <!-- Select version based on build type -->
  27. <MonoGameVersion Condition="'$(MonoGameVersion)' == '' AND '$(IsPreviewBuild)' == 'true'">$(MonoGamePreviewVersion)</MonoGameVersion>
  28. <MonoGameVersion Condition="'$(MonoGameVersion)' == '' AND '$(IsPreviewBuild)' != 'true'">$(MonoGameStableVersion)</MonoGameVersion>
  29. </PropertyGroup>
  30. <!-- MonoGame Framework References (Standard) -->
  31. <ItemGroup
  32. Condition="!$(DefineConstants.Contains('FNA')) AND !$(DefineConstants.Contains('KNI'))">
  33. <PackageReference Include="MonoGame.Framework.DesktopGL"
  34. Version="$(MonoGameVersion)"
  35. PrivateAssets="All" />
  36. </ItemGroup>
  37. <!-- KNI Framework References -->
  38. <ItemGroup Condition="$(DefineConstants.Contains('KNI'))">
  39. <PackageReference Include="nkast.Xna.Framework"
  40. Version="4.0.9001" />
  41. <PackageReference Include="nkast.Xna.Framework.Content"
  42. Version="4.0.9001" />
  43. <PackageReference Include="nkast.Xna.Framework.Graphics"
  44. Version="4.0.9001" />
  45. <PackageReference Include="nkast.Xna.Framework.Audio"
  46. Version="4.0.9001" />
  47. <PackageReference Include="nkast.Xna.Framework.Input"
  48. Version="4.0.9001" />
  49. <PackageReference Include="nkast.Xna.Framework.Game"
  50. Version="4.0.9001" />
  51. </ItemGroup>
  52. <!-- FNA Framework References -->
  53. <ItemGroup Condition="$(DefineConstants.Contains('FNA'))">
  54. <ProjectReference Include="$(MSBuildThisFileDirectory)..\..\FNA\FNA.NetStandard.csproj" />
  55. </ItemGroup>
  56. <ItemGroup>
  57. <PackageReference Include="NSubstitute"
  58. Version="4.2.2" />
  59. <PackageReference Include="xunit"
  60. Version="2.6.2"
  61. IsImplicitlyDefined="true" />
  62. <PackageReference Include="Microsoft.NET.Test.Sdk"
  63. Version="17.6.0"
  64. IsImplicitlyDefined="true" />
  65. <PackageReference Include="xunit.runner.visualstudio"
  66. Version="2.5.6"
  67. IsImplicitlyDefined="true"
  68. IncludeAssets="runtime; build; native; contentfiles; analyzers; buildtransitive"
  69. PrivateAssets="all" />
  70. <PackageReference Include="coverlet.collector"
  71. Version="6.0.0"
  72. IsImplicitlyDefined="true"
  73. IncludeAssets="runtime; build; native; contentfiles; analyzers; buildtransitive"
  74. PrivateAssets="all" />
  75. </ItemGroup>
  76. <ItemGroup>
  77. <Using Include="Xunit" />
  78. </ItemGroup>
  79. </Project>