Directory.build.props 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  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>Apache-2.0</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. <DebugType Condition="'$(Configuration)' != 'Debug'">embedded</DebugType>
  17. <EmbedUntrackedSources>true</EmbedUntrackedSources>
  18. <PublishRepositoryUrl>true</PublishRepositoryUrl>
  19. <!-- While in beta, we need to set preview for 8.0 manually (rather than latest). -->
  20. <LangVersion>preview</LangVersion>
  21. <Nullable>enable</Nullable>
  22. </PropertyGroup>
  23. <ItemGroup>
  24. <PackageReference Include="Microsoft.SourceLink.GitHub" Version="1.0.0" PrivateAssets="All"/>
  25. <PackageReference Include="Nerdbank.GitVersioning" Version="3.1.71" PrivateAssets="all" />
  26. </ItemGroup>
  27. <ItemGroup Condition="'$(IsTestProject)' == 'true'">
  28. <PackageReference Include="coverlet.collector" Version="1.2.0" />
  29. </ItemGroup>
  30. <Target Name="AddCommitHashToAssemblyAttributes" BeforeTargets="GetAssemblyAttributes">
  31. <ItemGroup>
  32. <AssemblyAttribute Include="System.Reflection.AssemblyMetadataAttribute" Condition=" '$(SourceRevisionId)' != '' ">
  33. <_Parameter1>CommitHash</_Parameter1>
  34. <_Parameter2>$(SourceRevisionId)</_Parameter2>
  35. </AssemblyAttribute>
  36. </ItemGroup>
  37. </Target>
  38. </Project>