Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Consolidate Directory.Packages.props #108

Merged
merged 1 commit into from
Jun 11, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 22 additions & 0 deletions Directory.Packages.props
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,15 @@
<ManagePackageVersionsCentrally>true</ManagePackageVersionsCentrally>
</PropertyGroup>

<!--
Global pacakge references
https://learn.microsoft.com/nuget/consume-packages/central-package-management#global-package-references
-->
<ItemGroup Label="Source Only Global Packages" Condition=" '$(SourceOnlyPackagesEnabled)' == 'true' ">
<GlobalPackageReference Include="Microsoft.SourceLink.GitHub" Version="8.0.0" />
<GlobalPackageReference Include="Nerdbank.GitVersioning" Version="3.6.139" />
</ItemGroup>

<!--
Global pacakge references
https://learn.microsoft.com/nuget/consume-packages/central-package-management#global-package-references
Expand All @@ -16,4 +25,17 @@
<GlobalPackageReference Include="Microsoft.Build.CopyOnWrite" Version="1.0.302" />
</ItemGroup>

<ItemGroup>
<PackageVersion Include="Nullable" Version="1.3.1" />
</ItemGroup>

<ItemGroup Label="Test Only Packages" Condition=" '$(TestOnlyPackagesEnabled)' == 'true' ">
<PackageVersion Include="BenchmarkDotNet" Version="0.13.12" />
<PackageVersion Include="coverlet.collector" Version="6.0.2" />
<PackageVersion Include="coverlet.msbuild" Version="6.0.2" />
<PackageVersion Include="Microsoft.NET.Test.Sdk" Version="17.10.0" />
<PackageVersion Include="xunit" Version="2.8.1" />
<PackageVersion Include="xunit.runner.visualstudio" Version="2.8.1" />
</ItemGroup>

</Project>
10 changes: 10 additions & 0 deletions src/Directory.Build.props
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<Project>

<PropertyGroup>
<!-- Enable source only packages. -->
<SourceOnlyPackagesEnabled>true</SourceOnlyPackagesEnabled>
</PropertyGroup>

<Import Project="$(MSBuildThisFileDirectory)/../Directory.Build.props" />

</Project>
18 changes: 0 additions & 18 deletions src/Directory.Packages.props

This file was deleted.

3 changes: 3 additions & 0 deletions test/Directory.Build.props
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
<Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<!-- Enable test only packages. -->
<TestOnlyPackagesEnabled>true</TestOnlyPackagesEnabled>

<!-- Don't publish test projects by default. -->
<IsPublishable>false</IsPublishable>

Expand Down
14 changes: 0 additions & 14 deletions test/Directory.Packages.props

This file was deleted.

Loading