Directory.build.props 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  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>http://go.microsoft.com/fwlink/?LinkId=261274</PackageIconUrl>
  8. <PackageProjectUrl>https://github.com/dotnet/reactive</PackageProjectUrl>
  9. <PackageLicenseUrl>https://raw.githubusercontent.com/Reactive-Extensions/Rx.NET/master/Ix.NET/Source/license.txt</PackageLicenseUrl>
  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>embedded</DebugType>
  17. <EmbedUntrackedSources>true</EmbedUntrackedSources>
  18. <PublishRepositoryUrl>true</PublishRepositoryUrl>
  19. <LangVersion>latest</LangVersion>
  20. <Deterministic>true</Deterministic>
  21. <ProduceReferenceAssembly>true</ProduceReferenceAssembly>
  22. </PropertyGroup>
  23. <!-- Hack needed to make code coverage work. See https://github.com/Microsoft/vstest/issues/1748. -->
  24. <PropertyGroup Condition="'$(Configuration)' == 'Debug_CSharp8' OR '$(Configuration)' == 'Debug'">
  25. <DebugType>full</DebugType>
  26. </PropertyGroup>
  27. <ItemGroup>
  28. <PackageReference Include="Microsoft.SourceLink.GitHub" Version="1.0.0-beta-63127-02" PrivateAssets="All"/>
  29. <PackageReference Include="Nerdbank.GitVersioning" Version="2.2.13" PrivateAssets="all" />
  30. </ItemGroup>
  31. <Target Name="AddCommitHashToAssemblyAttributes" BeforeTargets="GetAssemblyAttributes">
  32. <ItemGroup>
  33. <AssemblyAttribute Include="System.Reflection.AssemblyMetadataAttribute" Condition=" '$(SourceRevisionId)' != '' ">
  34. <_Parameter1>CommitHash</_Parameter1>
  35. <_Parameter2>$(SourceRevisionId)</_Parameter2>
  36. </AssemblyAttribute>
  37. </ItemGroup>
  38. </Target>
  39. </Project>