Directory.build.props 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. <Project>
  2. <PropertyGroup>
  3. <Product>$(AssemblyName) ($(TargetFramework))</Product>
  4. <Copyright>Copyright (c) .NET Foundation and Contributors.</Copyright>
  5. <MinClientVersion>2.12</MinClientVersion>
  6. <GenerateDocumentationFile>true</GenerateDocumentationFile>
  7. <Authors>.NET Foundation and Contributors</Authors>
  8. <PackageIconUrl>https://raw.githubusercontent.com/dotnet/reactive/0f837d11385cfaf575861ccc5a5fbcafb22d888f/Rx.NET/Resources/Artwork/Logo.png</PackageIconUrl>
  9. <PackageProjectUrl>http://go.microsoft.com/fwlink/?LinkId=261273</PackageProjectUrl>
  10. <PackageLicenseExpression>Apache-2.0</PackageLicenseExpression>
  11. <PackageRequireLicenseAcceptance>true</PackageRequireLicenseAcceptance>
  12. <DebugType>embedded</DebugType>
  13. <SignAssembly>true</SignAssembly>
  14. <AssemblyOriginatorKeyFile>$(MSBuildThisFileDirectory)ReactiveX.snk</AssemblyOriginatorKeyFile>
  15. <NoWarn>$(NoWarn);1701;1702;CS1591</NoWarn>
  16. <DefaultLanguage>en-US</DefaultLanguage>
  17. <IncludeSymbols>false</IncludeSymbols>
  18. <IsTestProject>$(MSBuildProjectName.Contains('Tests'))</IsTestProject>
  19. <CodeAnalysisRuleSet>$(MSBuildThisFileDirectory)Rx.ruleset</CodeAnalysisRuleSet>
  20. <GeneratePackageOnBuild Condition=" '$(IsTestProject)' != 'true' and '$(CreatePackage)' == 'true' ">true</GeneratePackageOnBuild>
  21. <PackageOutputPath>$(MSBuildThisFileDirectory)artifacts</PackageOutputPath>
  22. <EmbedUntrackedSources>true</EmbedUntrackedSources>
  23. <PublishRepositoryUrl>true</PublishRepositoryUrl>
  24. <LangVersion>latest</LangVersion>
  25. </PropertyGroup>
  26. <ItemGroup Condition="'$(IsTestProject)' != 'true' and '$(SourceLinkEnabled)' != 'false'">
  27. <PackageReference Include="System.Threading.Tasks.Extensions" Version="4.5.2" />
  28. <PackageReference Include="Microsoft.SourceLink.GitHub" Version="1.0.0-beta-62925-02" PrivateAssets="All"/>
  29. </ItemGroup>
  30. <ItemGroup>
  31. <PackageReference Include="Nerdbank.GitVersioning" Version="2.3.105" PrivateAssets="all" />
  32. </ItemGroup>
  33. <Target Name="AddCommitHashToAssemblyAttributes" BeforeTargets="GetAssemblyAttributes">
  34. <ItemGroup>
  35. <AssemblyAttribute Include="System.Reflection.AssemblyMetadataAttribute" Condition=" '$(SourceRevisionId)' != '' ">
  36. <_Parameter1>CommitHash</_Parameter1>
  37. <_Parameter2>$(SourceRevisionId)</_Parameter2>
  38. </AssemblyAttribute>
  39. </ItemGroup>
  40. </Target>
  41. </Project>