Directory.Build.props 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <Project>
  3. <PropertyGroup>
  4. <TargetFramework>net8.0</TargetFramework>
  5. <SolutionDirectory>$(MSBuildThisFileDirectory)</SolutionDirectory>
  6. </PropertyGroup>
  7. <!-- Version Configuration -->
  8. <PropertyGroup>
  9. <!-- Base version for stable releases -->
  10. <VersionPrefix>5.3.1</VersionPrefix>
  11. <!--
  12. IsPreviewBuild: Set to 'true' for preview builds targeting MonoGame 3.8.5
  13. Can be overridden via command line: dotnet build /p:IsPreviewBuild=true
  14. -->
  15. <IsPreviewBuild Condition="'$(IsPreviewBuild)' == ''">false</IsPreviewBuild>
  16. <!--
  17. PreviewLabel: The preview label to append (e.g., "preview.1", "alpha.1")
  18. Only used when IsPreviewBuild=true
  19. -->
  20. <PreviewLabel Condition="'$(PreviewLabel)' == ''">preview.1</PreviewLabel>
  21. <!-- Build the final version string -->
  22. <VersionSuffix Condition="'$(IsPreviewBuild)' == 'true'">$(PreviewLabel)</VersionSuffix>
  23. <Version Condition="'$(VersionSuffix)' != ''">$(VersionPrefix)-$(VersionSuffix)</Version>
  24. <Version Condition="'$(VersionSuffix)' == ''">$(VersionPrefix)</Version>
  25. </PropertyGroup>
  26. <PropertyGroup>
  27. <Authors>MonoGame Extended and contributors</Authors>
  28. <PackageProjectUrl>https://github.com/MonoGame-Extended/MonoGame-Extended</PackageProjectUrl>
  29. <RepositoryUrl>https://github.com/MonGame-Extended/MonoGame-Extended</RepositoryUrl>
  30. <RepositoryType>git</RepositoryType>
  31. <RepositoryBranch>develop</RepositoryBranch>
  32. <NeutralLanguage>en</NeutralLanguage>
  33. <PackageIcon>logo-nuget-128.png</PackageIcon>
  34. <PackageReadmeFile>README.md</PackageReadmeFile>
  35. <PackageLicenseExpression>MIT</PackageLicenseExpression>
  36. </PropertyGroup>
  37. <ItemGroup>
  38. <!-- path must be relative to the individual csproj's not this .targets file -->
  39. <None Include="../../logos/logo-nuget-128.png" Pack="true" PackagePath="" />
  40. <None Include="../../README.md" Pack="true" PackagePath="" />
  41. <None Include="../../CHANGELOG.md" Pack="false" />
  42. </ItemGroup>
  43. </Project>