Directory.build.props 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  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. </PropertyGroup>
  21. <!-- Hack needed to make code coverage work. See https://github.com/Microsoft/vstest/issues/1748. -->
  22. <PropertyGroup Condition="'$(Configuration)' == 'Debug_CSharp8' OR '$(Configuration)' == 'Debug'">
  23. <DebugType>full</DebugType>
  24. </PropertyGroup>
  25. <ItemGroup>
  26. <PackageReference Include="Microsoft.SourceLink.GitHub" Version="1.0.0-beta-63127-02" PrivateAssets="All"/>
  27. <PackageReference Include="Nerdbank.GitVersioning" Version="2.2.13" PrivateAssets="all" />
  28. </ItemGroup>
  29. <Target Name="AddCommitHashToAssemblyAttributes" BeforeTargets="GetAssemblyAttributes">
  30. <ItemGroup>
  31. <AssemblyAttribute Include="System.Reflection.AssemblyMetadataAttribute" Condition=" '$(SourceRevisionId)' != '' ">
  32. <_Parameter1>CommitHash</_Parameter1>
  33. <_Parameter2>$(SourceRevisionId)</_Parameter2>
  34. </AssemblyAttribute>
  35. </ItemGroup>
  36. </Target>
  37. </Project>