Directory.build.props 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. <Project>
  2. <PropertyGroup>
  3. <Product>$(AssemblyName) ($(TargetFramework))</Product>
  4. <Copyright>Copyright (c) .NET Foundation and Contributors.</Copyright>
  5. <MinClientVersion>2.12</MinClientVersion>
  6. <GenerateDocumentationFile>true</GenerateDocumentationFile>
  7. <Authors>.NET Foundation and Contributors</Authors>
  8. <PackageIconUrl>http://go.microsoft.com/fwlink/?LinkId=261274</PackageIconUrl>
  9. <PackageProjectUrl>http://go.microsoft.com/fwlink/?LinkId=261273</PackageProjectUrl>
  10. <PackageLicenseUrl>https://raw.githubusercontent.com/Reactive-Extensions/Rx.NET/master/Ix.NET/Source/license.txt</PackageLicenseUrl>
  11. <PackageRequireLicenseAcceptance>true</PackageRequireLicenseAcceptance>
  12. <SignAssembly>true</SignAssembly>
  13. <AssemblyOriginatorKeyFile>$(MSBuildThisFileDirectory)ReactiveX.snk</AssemblyOriginatorKeyFile>
  14. <NoWarn>$(NoWarn);1701;1702;CS1591;NU5105</NoWarn>
  15. <DefaultLanguage>en-US</DefaultLanguage>
  16. <IsTestProject>$(MSBuildProjectName.Contains('Test'))</IsTestProject>
  17. <DebugType>embedded</DebugType>
  18. <EmbedUntrackedSources>true</EmbedUntrackedSources>
  19. <PublishRepositoryUrl>true</PublishRepositoryUrl>
  20. <LangVersion>latest</LangVersion>
  21. </PropertyGroup>
  22. <ItemGroup>
  23. <PackageReference Include="Microsoft.SourceLink.GitHub" Version="1.0.0-beta-62925-02" PrivateAssets="All"/>
  24. <PackageReference Include="Nerdbank.GitVersioning" Version="2.1.23" PrivateAssets="all" />
  25. </ItemGroup>
  26. <Target Name="AddCommitHashToAssemblyAttributes" BeforeTargets="GetAssemblyAttributes">
  27. <ItemGroup>
  28. <AssemblyAttribute Include="System.Reflection.AssemblyMetadataAttribute" Condition=" '$(SourceRevisionId)' != '' ">
  29. <_Parameter1>CommitHash</_Parameter1>
  30. <_Parameter2>$(SourceRevisionId)</_Parameter2>
  31. </AssemblyAttribute>
  32. </ItemGroup>
  33. </Target>
  34. </Project>