Directory.build.props 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  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. <!-- While in beta, we need to set 8.0 manually (rather than latest). -->
  20. <LangVersion>8.0</LangVersion>
  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. <ItemGroup>
  27. <PackageReference Include="Microsoft.SourceLink.GitHub" Version="1.0.0-beta2-18618-05" PrivateAssets="All"/>
  28. <PackageReference Include="Nerdbank.GitVersioning" Version="2.3.38" PrivateAssets="all" />
  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>