Directory.Build.props 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. <Project>
  2. <PropertyGroup>
  3. <Copyright>Copyright (c) .NET Foundation and Contributors.</Copyright>
  4. <MinClientVersion>2.12</MinClientVersion>
  5. <GenerateDocumentationFile>true</GenerateDocumentationFile>
  6. <Authors>.NET Foundation and Contributors</Authors>
  7. <PackageIconUrl>https://raw.githubusercontent.com/dotnet/reactive/0f837d11385cfaf575861ccc5a5fbcafb22d888f/Rx.NET/Resources/Artwork/Logo.png</PackageIconUrl>
  8. <PackageProjectUrl>https://github.com/dotnet/reactive</PackageProjectUrl>
  9. <PackageLicenseExpression>MIT</PackageLicenseExpression>
  10. <PackageRequireLicenseAcceptance>true</PackageRequireLicenseAcceptance>
  11. <SignAssembly>true</SignAssembly>
  12. <AssemblyOriginatorKeyFile>$(MSBuildThisFileDirectory)ReactiveX.snk</AssemblyOriginatorKeyFile>
  13. <NoWarn>$(NoWarn);1701;1702;CS1591;NU5105</NoWarn>
  14. <DefaultLanguage>en-US</DefaultLanguage>
  15. <IsTestProject>$(MSBuildProjectName.Contains('Test'))</IsTestProject>
  16. <EmbedUntrackedSources>true</EmbedUntrackedSources>
  17. <DebugType>embedded</DebugType>
  18. <PublishRepositoryUrl>true</PublishRepositoryUrl>
  19. <LangVersion>preview</LangVersion>
  20. <Nullable>enable</Nullable>
  21. </PropertyGroup>
  22. <PropertyGroup Condition="'$(TF_BUILD)' == 'true'">
  23. <ContinuousIntegrationBuild>true</ContinuousIntegrationBuild>
  24. </PropertyGroup>
  25. <ItemGroup>
  26. <PackageReference Include="Microsoft.SourceLink.GitHub" Version="1.0.0" PrivateAssets="All"/>
  27. <PackageReference Include="Nerdbank.GitVersioning" Version="3.4.216" PrivateAssets="all" />
  28. </ItemGroup>
  29. <ItemGroup Condition="'$(IsTestProject)' == 'true'">
  30. <PackageReference Include="coverlet.collector" Version="3.0.3" />
  31. </ItemGroup>
  32. <Target Name="AddCommitHashToAssemblyAttributes" BeforeTargets="GetAssemblyAttributes">
  33. <ItemGroup>
  34. <AssemblyAttribute Include="System.Reflection.AssemblyMetadataAttribute" Condition=" '$(SourceRevisionId)' != '' ">
  35. <_Parameter1>CommitHash</_Parameter1>
  36. <_Parameter2>$(SourceRevisionId)</_Parameter2>
  37. </AssemblyAttribute>
  38. </ItemGroup>
  39. </Target>
  40. </Project>