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

Use central package management #639

Merged
merged 1 commit into from
Apr 4, 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
31 changes: 31 additions & 0 deletions Directory.Packages.props
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
<Project>
<PropertyGroup>
<ManagePackageVersionsCentrally>true</ManagePackageVersionsCentrally>
</PropertyGroup>
<ItemGroup>
<PackageVersion Include="Microsoft.CSharp" Version="4.7.0" />
<PackageVersion Include="Microsoft.Extensions.FileProviders.Abstractions" Version="8.0.0" />
<PackageVersion Include="Microsoft.SourceLink.GitHub" Version="8.0.0" PrivateAssets="all" />
<PackageVersion Include="Parlot" Version="0.0.25" />
<PackageVersion Include="PolySharp" Version="1.14.1" PrivateAssets="all" />
<PackageVersion Include="System.Text.Json" Version="8.0.3" />
<PackageVersion Include="TimeZoneConverter" Version="6.1.0" />

<!-- Benchmarks -->
<PackageVersion Include="BenchmarkDotNet" Version="0.13.12" />
<PackageVersion Include="DotLiquid" Version="2.2.692" />
<PackageVersion Include="Liquid.NET" Version="0.10.0" />
<PackageVersion Include="Scriban" Version="5.9.1" />
<PackageVersion Include="Handlebars.Net" Version="2.1.4" />

<!-- Testing -->
<PackageVersion Include="Microsoft.NET.Test.Sdk" Version="17.8.0" />
<PackageVersion Include="Newtonsoft.Json" Version="13.0.3" />
<PackageVersion Include="xunit" Version="2.7.0" />
<PackageVersion Include="xunit.runner.visualstudio" Version="2.5.7">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageVersion>
<PackageVersion Include="xunit.analyzers" Version="1.11.0" />
</ItemGroup>
</Project>
10 changes: 5 additions & 5 deletions Fluid.Benchmarks/Fluid.Benchmarks.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,11 @@
</ItemGroup>

<ItemGroup>
<PackageReference Include="BenchmarkDotNet" Version="0.13.12" />
<PackageReference Include="DotLiquid" Version="2.2.692" />
<PackageReference Include="Liquid.NET" Version="0.10.0" />
<PackageReference Include="Scriban" Version="5.9.1" />
<PackageReference Include="Handlebars.Net" Version="2.1.4" />
<PackageReference Include="BenchmarkDotNet" />
<PackageReference Include="DotLiquid" />
<PackageReference Include="Liquid.NET" />
<PackageReference Include="Scriban" />
<PackageReference Include="Handlebars.Net" />
</ItemGroup>

<ItemGroup>
Expand Down
4 changes: 2 additions & 2 deletions Fluid.MvcViewEngine/Fluid.MvcViewEngine.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@
</ItemGroup>

<ItemGroup>
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="8.0.0" PrivateAssets="all" />
<PackageReference Include="PolySharp" Version="1.14.0" PrivateAssets="all" />
<PackageReference Include="Microsoft.SourceLink.GitHub" />
<PackageReference Include="PolySharp" />
</ItemGroup>

<ItemGroup Condition="'$(TargetFramework)'=='net6.0'">
Expand Down
15 changes: 6 additions & 9 deletions Fluid.Tests/Fluid.Tests.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,12 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Microsoft.Extensions.FileProviders.Abstractions" Version="1.1.1" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.8.0" />
<PackageReference Include="Newtonsoft.Json" Version="13.0.3" />
<PackageReference Include="xunit" Version="2.6.2" />
<PackageReference Include="xunit.runner.visualstudio" Version="2.5.4">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
<PackageReference Include="xunit.analyzers" Version="1.6.0" />
<PackageReference Include="Microsoft.Extensions.FileProviders.Abstractions"/>
<PackageReference Include="Microsoft.NET.Test.Sdk" />
<PackageReference Include="Newtonsoft.Json" />
<PackageReference Include="xunit" />
<PackageReference Include="xunit.runner.visualstudio" />
<PackageReference Include="xunit.analyzers" />
</ItemGroup>

<ItemGroup>
Expand Down
8 changes: 8 additions & 0 deletions Fluid.Tests/GlobalSuppressions.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
// This file is used by Code Analysis to maintain SuppressMessage
// attributes that are applied to this project.
// Project-level suppressions either have no target or are given
// a specific target and scoped to a namespace, type, member, etc.

using System.Diagnostics.CodeAnalysis;

[assembly: SuppressMessage("Usage", "xUnit1031:Do not use blocking task operations in test method", Justification = "Easier code to write. No impact.", Scope = "module")]
1 change: 1 addition & 0 deletions Fluid.sln
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Files", "Files", "{BE5EF08E
.github\workflows\build.yml = .github\workflows\build.yml
Common.props = Common.props
CREDITS.md = CREDITS.md
Directory.Packages.props = Directory.Packages.props
NuGet.config = NuGet.config
.github\workflows\pr.yml = .github\workflows\pr.yml
.github\workflows\publish.yml = .github\workflows\publish.yml
Expand Down
18 changes: 9 additions & 9 deletions Fluid/Fluid.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -25,21 +25,21 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Parlot" Version="0.0.25" />
<PackageReference Include="Microsoft.Extensions.FileProviders.Abstractions" Version="1.1.1" />
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="8.0.0" PrivateAssets="all" />
<PackageReference Include="PolySharp" Version="1.14.0" PrivateAssets="all" />
<PackageReference Include="TimeZoneConverter" Version="6.1.0" />
<PackageReference Include="Parlot" />
<PackageReference Include="Microsoft.Extensions.FileProviders.Abstractions" />
<PackageReference Include="Microsoft.SourceLink.GitHub" />
<PackageReference Include="PolySharp" />
<PackageReference Include="TimeZoneConverter" />
</ItemGroup>

<ItemGroup Condition="'$(TargetFramework)'=='netstandard2.0'">
<PackageReference Include="System.Text.Json" Version="5.0.2" />
<PackageReference Include="Microsoft.CSharp" Version="4.7.0" />
<PackageReference Include="System.Text.Json" />
<PackageReference Include="Microsoft.CSharp" />
</ItemGroup>

<ItemGroup Condition="'$(TargetFramework)'=='netstandard2.1'">
<PackageReference Include="System.Text.Json" Version="5.0.2" />
<PackageReference Include="Microsoft.CSharp" Version="4.7.0" />
<PackageReference Include="System.Text.Json" />
<PackageReference Include="Microsoft.CSharp" />
</ItemGroup>

<!-- Keep specific targets since it removes some dependencies -->
Expand Down
4 changes: 2 additions & 2 deletions MinimalApis.LiquidViews/MinimalApis.LiquidViews.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,11 @@
</ItemGroup>

<ItemGroup Condition="'$(TargetFramework)'=='net7.0'">
<FrameworkReference Include="Microsoft.AspNetCore.App" Version="7.0.0" />
<FrameworkReference Include="Microsoft.AspNetCore.App" VersionOverride="7.0.0" />
</ItemGroup>

<ItemGroup Condition="'$(TargetFramework)'=='net8.0'">
<FrameworkReference Include="Microsoft.AspNetCore.App" Version="8.0.0" />
<FrameworkReference Include="Microsoft.AspNetCore.App" VersionOverride="8.0.0" />
</ItemGroup>

<PropertyGroup>
Expand Down