You can not select more than 25 topics Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.

Directory.Build.props 4.3 kB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <!-- Based on https://github.com/terrafx/terrafx/blob/master/Directory.Build.props -->
  3. <!-- Copyright © Tanner Gooding and Contributors -->
  4. <Project>
  5. <!--
  6. Directory.Build.props is automatically picked up and imported by
  7. Microsoft.Common.props. This file needs to exist, even if empty so that
  8. files in the parent directory tree, with the same name, are not imported
  9. instead. The import fairly early and only Sdk.props will have been imported
  10. beforehand. We also don't need to add ourselves to MSBuildAllProjects, as
  11. that is done by the file that imports us.
  12. -->
  13. <!-- Settings used for versioning -->
  14. <PropertyGroup>
  15. <PullRequestNumber Condition="$(GITHUB_REF.StartsWith('refs/pull'))">$([System.String]::Copy('$(GITHUB_REF)').Replace('refs/pull/', '').Replace('/merge', ''))</PullRequestNumber>
  16. </PropertyGroup>
  17. <!-- Default settings that are used by other settings -->
  18. <PropertyGroup>
  19. <BaseArtifactsPath>$(MSBuildThisFileDirectory)artifacts/</BaseArtifactsPath>
  20. <BaseArtifactsPathSuffix>$(DiscordNetProjectCategory)/$(MSBuildProjectName)</BaseArtifactsPathSuffix>
  21. <RepositoryUrl>https://github.com/discord-net/Discord.Net</RepositoryUrl>
  22. </PropertyGroup>
  23. <!-- Default settings that explicitly differ from the Sdk.props defaults -->
  24. <PropertyGroup>
  25. <AllowUnsafeBlocks>true</AllowUnsafeBlocks>
  26. <BaseIntermediateOutputPath>$(BaseArtifactsPath)obj/$(BaseArtifactsPathSuffix)/</BaseIntermediateOutputPath>
  27. <DebugType>embedded</DebugType>
  28. <EnableDefaultNoneItems>false</EnableDefaultNoneItems>
  29. <Nullable>enable</Nullable>
  30. <PackageRequireLicenseAcceptance>true</PackageRequireLicenseAcceptance>
  31. <SuppressNETCoreSdkPreviewMessage>true</SuppressNETCoreSdkPreviewMessage>
  32. <TreatWarningsAsErrors>true</TreatWarningsAsErrors>
  33. </PropertyGroup>
  34. <PropertyGroup Condition="'$(Configuration)' == 'Debug'">
  35. <CheckForOverflowUnderflow>true</CheckForOverflowUnderflow>
  36. </PropertyGroup>
  37. <!-- Default settings that explicitly differ from the Sdk.targets defaults-->
  38. <PropertyGroup>
  39. <Authors>Discord.Net Contributors</Authors>
  40. <BaseOutputPath>$(BaseArtifactsPath)bin/$(BaseArtifactsPathSuffix)/</BaseOutputPath>
  41. <Company>Discord-Net</Company>
  42. <PackageOutputPath Condition="'$(PlatformName)' == 'AnyCPU'">$(BaseArtifactsPath)pkg/$(Configuration)</PackageOutputPath>
  43. <PackageOutputPath Condition="'$(PlatformName)' != 'AnyCPU'">$(BaseArtifactsPath)pkg/$(Configuration)</PackageOutputPath>
  44. <Product>Discord.Net</Product>
  45. <VersionPrefix>3.0.0</VersionPrefix>
  46. <VersionSuffix>alpha</VersionSuffix>
  47. <VersionSuffix Condition="'$(PullRequestNumber)' != ''">pr$(PullRequestNumber)</VersionSuffix>
  48. </PropertyGroup>
  49. <!-- Default settings that are otherwise undefined -->
  50. <PropertyGroup>
  51. <Copyright>Copyright © Discord.Net Contributors.</Copyright>
  52. <Description>An asynchronous API wrapper for Discord.</Description>
  53. <Features>strict</Features>
  54. <GenerateDocumentationFile>true</GenerateDocumentationFile>
  55. <HighEntropyVA>true</HighEntropyVA>
  56. <LangVersion>preview</LangVersion>
  57. <MinClientVersion>4.3</MinClientVersion>
  58. <NeutralLanguage>en-US</NeutralLanguage>
  59. <OverwriteReadOnlyFiles>true</OverwriteReadOnlyFiles>
  60. <PackageIcon>PackageLogo.png</PackageIcon>
  61. <PackageLicenseExpression>MIT</PackageLicenseExpression>
  62. <PackageProjectUrl>$(RepositoryUrl)</PackageProjectUrl>
  63. <ProduceReferenceAssembly>true</ProduceReferenceAssembly>
  64. <PackageTags Condition="'$(PackageTags)' != ''">$(PackageTags);discord;discordapp</PackageTags>
  65. <PackageTags Condition="'$(PackageTags)' == ''">discord;discordapp</PackageTags>
  66. <RepositoryType>git</RepositoryType>
  67. <RestoreSources>
  68. https://api.nuget.org/v3/index.json
  69. </RestoreSources>
  70. <UseSharedCompilation>true</UseSharedCompilation>
  71. </PropertyGroup>
  72. <!-- Package icons -->
  73. <ItemGroup>
  74. <None Include="$(MSBuildThisFileDirectory)/docs/marketing/logo/PackageLogo.png" Pack="True" PackagePath="" />
  75. </ItemGroup>
  76. <!-- Package references which are consumed by all .NET projects -->
  77. <ItemGroup>
  78. <PackageReference Include="Microsoft.Net.Compilers.Toolset" IsImplicitlyDefined="true" PrivateAssets="all" />
  79. </ItemGroup>
  80. </Project>

No Description