Directory.build.props 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  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. <BuildForCSharp8 Condition="'$(BuildForCSharp8)' == ''">true</BuildForCSharp8>
  21. </PropertyGroup>
  22. <!-- Hack needed to make code coverage work. See https://github.com/Microsoft/vstest/issues/1748. -->
  23. <PropertyGroup Condition="'$(Configuration)' == 'Debug'">
  24. <DebugType>full</DebugType>
  25. </PropertyGroup>
  26. <!-- While in beta, we need to set 8.0 manually (rather than latest). -->
  27. <PropertyGroup Condition="'$(BuildForCSharp8)' == 'true'">
  28. <LangVersion>8.0</LangVersion>
  29. </PropertyGroup>
  30. <ItemGroup>
  31. <PackageReference Include="Microsoft.SourceLink.GitHub" Version="1.0.0-beta2-18618-05" PrivateAssets="All"/>
  32. <PackageReference Include="Nerdbank.GitVersioning" Version="2.3.38" PrivateAssets="all" />
  33. </ItemGroup>
  34. <Target Name="AddCommitHashToAssemblyAttributes" BeforeTargets="GetAssemblyAttributes">
  35. <ItemGroup>
  36. <AssemblyAttribute Include="System.Reflection.AssemblyMetadataAttribute" Condition=" '$(SourceRevisionId)' != '' ">
  37. <_Parameter1>CommitHash</_Parameter1>
  38. <_Parameter2>$(SourceRevisionId)</_Parameter2>
  39. </AssemblyAttribute>
  40. </ItemGroup>
  41. </Target>
  42. </Project>