Skip to content

Commit

Permalink
Ad centrla package management (#97)
Browse files Browse the repository at this point in the history
  • Loading branch information
sebastienros authored May 7, 2024
1 parent 753ac96 commit b3160ac
Show file tree
Hide file tree
Showing 5 changed files with 39 additions and 12 deletions.
26 changes: 26 additions & 0 deletions Directory.Packages.props
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
<Project>
<PropertyGroup>
<ManagePackageVersionsCentrally>true</ManagePackageVersionsCentrally>
</PropertyGroup>
<ItemGroup>
<PackageVersion Include="System.Memory" Version="4.5.5" />
<PackageVersion Include="FastExpressionCompiler.Internal.src" Version="4.2.0" />

<!-- Benchmarks -->
<PackageVersion Include="BenchmarkDotNet" Version="0.13.12" />
<PackageVersion Include="Pidgin" Version="3.2.3" />
<PackageVersion Include="Sprache" Version="2.3.1" />
<PackageVersion Include="Superpower" Version="3.0.0" />
<PackageVersion Include="Newtonsoft.Json" Version="13.0.3" />

<!-- Global Package References -->
<GlobalPackageReference Include="Microsoft.SourceLink.GitHub" Version="8.0.0" PrivateAssets="all" />

<!-- Testing -->
<PackageVersion Include="Microsoft.NET.Test.Sdk" Version="17.9.0" />
<PackageVersion Include="xunit" Version="2.8.0" />
<PackageVersion Include="xunit.runner.visualstudio" Version="2.8.0" />
<PackageVersion Include="coverlet.collector" Version="6.0.2" />
<PackageVersion Include="xunit.analyzers" Version="1.13.0" />
</ItemGroup>
</Project>
1 change: 1 addition & 0 deletions Parlot.sln
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution
ProjectSection(SolutionItems) = preProject
.editorconfig = .editorconfig
.github\workflows\build.yml = .github\workflows\build.yml
Directory.Packages.props = Directory.Packages.props
.github\workflows\publish.yml = .github\workflows\publish.yml
README.md = README.md
EndProjectSection
Expand Down
5 changes: 2 additions & 3 deletions src/Parlot/Parlot.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,8 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="System.Memory" Version="4.5.5" Condition="'$(TargetFramework)' == 'netstandard2.0' " />
<PackageReference Include="FastExpressionCompiler.Internal.src" Version="4.0.1" PrivateAssets="all" />
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="8.0.0" PrivateAssets="all" />
<PackageReference Include="System.Memory" Condition="'$(TargetFramework)' == 'netstandard2.0' " />
<PackageReference Include="FastExpressionCompiler.Internal.src" PrivateAssets="all" />
</ItemGroup>

<PropertyGroup Condition="'$(TargetFramework)' == 'netstandard2.0' ">
Expand Down
10 changes: 5 additions & 5 deletions test/Parlot.Benchmarks/Parlot.Benchmarks.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="BenchmarkDotNet" Version="0.13.10" />
<PackageReference Include="Pidgin" Version="3.2.2" />
<PackageReference Include="Sprache" Version="2.3.1" />
<PackageReference Include="Superpower" Version="3.0.0" />
<PackageReference Include="Newtonsoft.Json" Version="13.0.3" />
<PackageReference Include="BenchmarkDotNet" />
<PackageReference Include="Pidgin" />
<PackageReference Include="Sprache" />
<PackageReference Include="Superpower" />
<PackageReference Include="Newtonsoft.Json" />
</ItemGroup>

<ItemGroup>
Expand Down
9 changes: 5 additions & 4 deletions test/Parlot.Tests/Parlot.Tests.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,14 @@
</ItemGroup>

<ItemGroup>
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.8.0" />
<PackageReference Include="xunit" Version="2.6.2" />
<PackageReference Include="xunit.runner.visualstudio" Version="2.5.4">
<PackageReference Include="Microsoft.NET.Test.Sdk" />
<PackageReference Include="xunit" />
<PackageReference Include="xunit.analyzers" />
<PackageReference Include="xunit.runner.visualstudio">
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
<PrivateAssets>all</PrivateAssets>
</PackageReference>
<PackageReference Include="coverlet.collector" Version="6.0.0">
<PackageReference Include="coverlet.collector">
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
<PrivateAssets>all</PrivateAssets>
</PackageReference>
Expand Down

0 comments on commit b3160ac

Please sign in to comment.