Skip to content
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
4 changes: 2 additions & 2 deletions .github/copilot-instructions.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,9 @@ Parlot is a fast, lightweight and simple to use .NET parser combinator library.
The library supports multiple target frameworks:
- `net472` - .NET Framework 4.7.2
- `netstandard2.0` - .NET Standard 2.0
- `net6.0` - .NET 6.0
- `net8.0` - .NET 8.0
- `net9.0` - .NET 9.0 (primary development target)
- `net9.0` - .NET 9.0
- `net10.0` - .NET 10.0 (primary development target)

**Important**: Only build and test other target frameworks once functionality is proven to work correctly on `net9.0`. This approach improves development velocity and performance.

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ jobs:
- uses: actions/setup-dotnet@v4
with:
dotnet-version: |
6.0.x
8.0.x
10.0.x
global-json-file: global.json

- name: Test
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ jobs:
- uses: actions/setup-dotnet@v4
with:
dotnet-version: |
6.0.x
8.0.x
10.0.x
global-json-file: global.json

- name: Test
Expand Down
2 changes: 1 addition & 1 deletion global.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"sdk": {
"version": "9.0.100",
"version": "10.0.100",
"rollForward": "latestMajor"
}
}
4 changes: 2 additions & 2 deletions src/Parlot/Parlot.csproj
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFrameworks>net472;netstandard2.0;net6.0;net8.0</TargetFrameworks>
<TargetFrameworks>net472;netstandard2.0;net8.0;net10.0</TargetFrameworks>
<Title>Parser combinator for .NET</Title>
<Description>Parlot is a fast, lightweight and simple to use .NET parser combinator.</Description>
<PackageTags>parser;interpreter;</PackageTags>
Expand All @@ -16,7 +16,7 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="System.Memory" Condition="!$([MSBuild]::IsTargetFrameworkCompatible('$(TargetFramework)', 'net6.0'))" />
<PackageReference Include="System.Memory" Condition="!$([MSBuild]::IsTargetFrameworkCompatible('$(TargetFramework)', 'net8.0'))" />
<PackageReference Include="FastExpressionCompiler.Internal.src" PrivateAssets="all" />
</ItemGroup>

Expand Down
2 changes: 1 addition & 1 deletion src/Samples/Samples.csproj
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFrameworks>net6.0;net8.0</TargetFrameworks>
<TargetFrameworks>net8.0</TargetFrameworks>
<IsPackable>false</IsPackable>
</PropertyGroup>

Expand Down
2 changes: 1 addition & 1 deletion test/Parlot.Benchmarks/Parlot.Benchmarks.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFrameworks>net9.0</TargetFrameworks>
<TargetFrameworks>net10.0</TargetFrameworks>
<IsPackable>false</IsPackable>
<AnalysisLevel>latest-Default</AnalysisLevel>
<SignAssembly>False</SignAssembly>
Expand Down
2 changes: 1 addition & 1 deletion test/Parlot.Tests/BenchmarksTests.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#if NET9_0_OR_GREATER
#if NET10_0_OR_GREATER
using Parlot.Benchmarks;
using System.ComponentModel.DataAnnotations;
using Xunit;
Expand Down
4 changes: 2 additions & 2 deletions test/Parlot.Tests/Parlot.Tests.csproj
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFrameworks>net6.0;net8.0;net9.0</TargetFrameworks>
<TargetFrameworks>net8.0;net9.0;net10.0</TargetFrameworks>
<IsPackable>false</IsPackable>
<AnalysisLevel>latest-Default</AnalysisLevel>
<SignAssembly>False</SignAssembly>
Expand All @@ -12,7 +12,7 @@
<ProjectReference Include="..\..\src\Samples\Samples.csproj" />
</ItemGroup>

<ItemGroup Condition="$([MSBuild]::IsTargetFrameworkCompatible('$(TargetFramework)', 'net9.0'))">
<ItemGroup Condition="$([MSBuild]::IsTargetFrameworkCompatible('$(TargetFramework)', 'net10.0'))">
<ProjectReference Include="../../test/Parlot.Benchmarks/Parlot.Benchmarks.csproj" />
</ItemGroup>

Expand Down