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: 3 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,9 @@ jobs:
- uses: actions/checkout@v4
- uses: actions/setup-dotnet@v4
with:
dotnet-version: 8.0.x
dotnet-version: |
8.0.x
10.0.x
- run: dotnet build --configuration Release
- run: dotnet test --configuration Release --no-build
- run: dotnet pack GeneCodeCS/GeneCodeCS.csproj --configuration Release --no-build --output artifacts
Expand Down
2 changes: 1 addition & 1 deletion GeneCodeCS.Test/GeneCodeCS.Test.csproj
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>net8.0</TargetFramework>
<TargetFrameworks>net8.0;net10.0</TargetFrameworks>
<RootNamespace>GeneCodeCS.Test</RootNamespace>
<LangVersion>latest</LangVersion>
<IsPackable>false</IsPackable>
Expand Down
2 changes: 1 addition & 1 deletion GeneCodeCS/GeneCodeCS.csproj
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>net8.0</TargetFramework>
<TargetFrameworks>net8.0;net10.0</TargetFrameworks>
<RootNamespace>GeneCodeCS</RootNamespace>
<AssemblyName>GeneCodeCS</AssemblyName>
<LangVersion>latest</LangVersion>
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ A working version of this is in `GeneCodeCS.Test/Helpers/CounterBot.cs` and `Pop
Usage
-----

Requires .NET 8. Build and test with `dotnet test`.
Targets .NET 8 and .NET 10. Build and test with `dotnet test`.

Instantiate a new object of `Population<>` passing a custom sub-class of `BaseBot`. The sub-class must be concrete and have a public parameterless constructor. Define public methods in the sub-class for:
* Functions - these return bool;
Expand Down
4 changes: 2 additions & 2 deletions docs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -177,10 +177,10 @@ <h1>Evolve <em>programs</em>,<br>not just parameters.</h1>
<a class="btn primary" href="#demo">Watch a population evolve ↓</a>
<a class="btn" href="https://github.com/EddPorter/GeneCodeCS">View on GitHub</a>
</div>
<pre class="install"><span class="c"># .NET 8 SDK</span>
<pre class="install"><span class="c"># .NET 10 SDK (library targets .NET 8 and 10)</span>
git clone https://github.com/EddPorter/GeneCodeCS
cd GeneCodeCS &amp;&amp; dotnet test</pre>
<div class="badges"><span class="badge">.NET 8</span><span class="badge">GPL-3.0-or-later</span><span class="badge">No code generation to disk</span><span class="badge">Reproducible with a seed</span></div>
<div class="badges"><span class="badge">.NET 8 &amp; 10</span><span class="badge">GPL-3.0-or-later</span><span class="badge">No code generation to disk</span><span class="badge">Reproducible with a seed</span></div>
</header>

<section id="demo" style="padding-top:40px">
Expand Down
Loading