Skip to content

Commit 2309987

Browse files
committed
Merge branch 'feature/upgrade-dotnet-10-lts' for v3.0.0 release
2 parents ed74cc6 + ad68e4d commit 2309987

File tree

1,385 files changed

+9155
-18018
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

1,385 files changed

+9155
-18018
lines changed

.github/workflows/ci-cd.yml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -20,15 +20,15 @@ jobs:
2020
strategy:
2121
matrix:
2222
os: [ubuntu-latest, windows-latest, macos-latest]
23-
dotnet-version: ['9.0.x']
23+
dotnet-version: ['10.0.x']
2424

2525
steps:
26-
- uses: actions/checkout@v4
26+
- uses: actions/checkout@v6.0.0
2727
with:
2828
fetch-depth: 0 # Full history for MinVer
29-
29+
3030
- name: Setup .NET
31-
uses: actions/setup-dotnet@v4
31+
uses: actions/setup-dotnet@v5
3232
with:
3333
dotnet-version: ${{ matrix.dotnet-version }}
3434

@@ -42,7 +42,7 @@ jobs:
4242
run: dotnet test --no-build --verbosity normal --configuration Release --logger "trx;LogFileName=test-results.trx"
4343

4444
- name: Upload test results
45-
uses: actions/upload-artifact@v4
45+
uses: actions/upload-artifact@v6
4646
if: always()
4747
with:
4848
name: test-results-${{ matrix.os }}
@@ -55,7 +55,7 @@ jobs:
5555

5656
steps:
5757
- name: Checkout
58-
uses: actions/checkout@v4
58+
uses: actions/checkout@v6.0.0
5959
with:
6060
fetch-depth: 0
6161
token: ${{ secrets.GITHUB_TOKEN }}
@@ -106,9 +106,9 @@ jobs:
106106
107107
- name: Setup .NET
108108
if: steps.should_release.outputs.new_release == 'true'
109-
uses: actions/setup-dotnet@v4
109+
uses: actions/setup-dotnet@v5
110110
with:
111-
dotnet-version: '9.0.x'
111+
dotnet-version: '10.0.x'
112112

113113
- name: Update version in csproj files
114114
if: steps.should_release.outputs.new_release == 'true'

Demo.BlazorWasm/Components/PatternSelectionDrawer.razor

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@
4747
</MudGrid>
4848

4949
<MudExpansionPanels Elevation="0">
50-
@foreach (var group in PatternGroups)
50+
@foreach (KeyValuePair<string, List<PatternInfo>> group in PatternGroups)
5151
{
5252
<MudExpansionPanel MaxHeight="1000">
5353
<TitleContent>

Demo.BlazorWasm/Components/SimpleCandlestickChart.razor

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
@using Demo.BlazorWasm.Models
2-
@using Demo.BlazorWasm.Services
3-
41
<MudCard>
52
<MudCardContent>
63
<MudText Typo="Typo.h6" GutterBottom="true">@Title</MudText>

Demo.BlazorWasm/Components/SimpleStockChart.razor

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
@using Demo.BlazorWasm.Models
2-
@using Demo.BlazorWasm.Services
3-
41
<MudCard>
52
<MudCardContent>
63
<MudText Typo="Typo.h6" GutterBottom="true">@Title</MudText>

Demo.BlazorWasm/Demo.BlazorWasm.csproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<Project Sdk="Microsoft.NET.Sdk.BlazorWebAssembly">
22

33
<PropertyGroup>
4-
<TargetFramework>net9.0</TargetFramework>
4+
<TargetFramework>net10.0</TargetFramework>
55
<Nullable>enable</Nullable>
66
<ImplicitUsings>enable</ImplicitUsings>
77
<ServiceWorkerAssetsManifest>service-worker-assets.js</ServiceWorkerAssetsManifest>
@@ -11,8 +11,8 @@
1111
<ItemGroup>
1212
<PackageReference Include="Microsoft.AspNetCore.Components.WebAssembly"/>
1313
<PackageReference Include="Microsoft.AspNetCore.Components.WebAssembly.DevServer" PrivateAssets="all"/>
14+
<PackageReference Include="Microsoft.DotNet.HotReload.WebAssembly.Browser" />
1415
<PackageReference Include="MudBlazor" />
15-
<PackageReference Include="System.Text.Json" />
1616
<PackageReference Include="PublishSPAforGitHubPages.Build" />
1717
</ItemGroup>
1818

Demo.BlazorWasm/Pages/Analysis.razor

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -376,7 +376,7 @@
376376
// Pattern signals
377377
if (_patterns != null)
378378
{
379-
var recentPatterns = _patterns.TakeLast(5);
379+
IEnumerable<CandlePatternResult> recentPatterns = _patterns.TakeLast(5);
380380
bullishSignals += recentPatterns.Count(p => p.Value > 0);
381381
bearishSignals += recentPatterns.Count(p => p.Value < 0);
382382
}

Demo.BlazorWasm/Pages/Candlesticks.razor

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@
138138

139139
<MudText Typo="Typo.subtitle2" Class="mb-2">Top Patterns</MudText>
140140
<MudList T="string" Dense="true">
141-
@foreach (var pattern in _patterns.GroupBy(p => p.PatternName)
141+
@foreach (IGrouping<string, CandlePatternResult> pattern in _patterns.GroupBy(p => p.PatternName)
142142
.OrderByDescending(g => g.Count())
143143
.Take(5))
144144
{
@@ -368,7 +368,7 @@
368368
};
369369

370370
// Initialize enabled patterns
371-
foreach (var group in _patternGroups.Values)
371+
foreach (List<PatternSelectionDrawer.PatternInfo> group in _patternGroups.Values)
372372
{
373373
foreach (var pattern in group.Where(p => p.IsEnabled))
374374
{

Demo.BlazorWasm/Pages/Math.razor

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11
@page "/math"
2-
@using TechnicalAnalysis.Functions
3-
@using System
42

53
<PageTitle>Math Functions - TaLibStandard Demo</PageTitle>
64

Demo.BlazorWasm/Services/ITechnicalAnalysisService.cs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -30,19 +30,19 @@ public class TaIndicatorResult
3030
public RetCode RetCode { get; set; }
3131
public int BegIdx { get; set; }
3232
public int NBElement { get; set; }
33-
public double[] Values { get; set; } = Array.Empty<double>();
33+
public double[] Values { get; set; } = [];
3434
}
3535

3636
public class MacdResult : TaIndicatorResult
3737
{
38-
public double[] Signal { get; set; } = Array.Empty<double>();
39-
public double[] Histogram { get; set; } = Array.Empty<double>();
38+
public double[] Signal { get; set; } = [];
39+
public double[] Histogram { get; set; } = [];
4040
}
4141

4242
public class BollingerBandsResult : TaIndicatorResult
4343
{
44-
public double[] UpperBand { get; set; } = Array.Empty<double>();
45-
public double[] LowerBand { get; set; } = Array.Empty<double>();
44+
public double[] UpperBand { get; set; } = [];
45+
public double[] LowerBand { get; set; } = [];
4646
}
4747

4848
public class AtrResult : TaIndicatorResult

Directory.Build.props

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,22 +3,23 @@
33

44
<!-- Common Project Settings -->
55
<PropertyGroup>
6-
<TargetFramework>net9.0</TargetFramework>
7-
<LangVersion>13</LangVersion>
6+
<TargetFramework>net10.0</TargetFramework>
7+
<LangVersion>14</LangVersion>
88
<ImplicitUsings>enable</ImplicitUsings>
99
<Nullable>enable</Nullable>
1010
<NullableReferenceTypes>true</NullableReferenceTypes>
1111
<TreatWarningsAsErrors>false</TreatWarningsAsErrors>
1212
<Authors>Philippe Matray</Authors>
1313
<!-- MinVer Configuration for all projects -->
1414
<MinVerTagPrefix>v</MinVerTagPrefix>
15+
<MinVerSkip Condition="'$(Configuration)' == 'Debug'">true</MinVerSkip>
1516
</PropertyGroup>
1617

1718
<!-- Code Analysis Settings -->
1819
<PropertyGroup>
1920
<EnableNETAnalyzers>true</EnableNETAnalyzers>
2021
<EnforceCodeStyleInBuild>true</EnforceCodeStyleInBuild>
21-
<AnalysisLevel>9.0-recommended</AnalysisLevel>
22+
<AnalysisLevel>10.0-recommended</AnalysisLevel>
2223
<AnalysisModeDesign>All</AnalysisModeDesign>
2324
<AnalysisModeDocumentation>All</AnalysisModeDocumentation>
2425
<AnalysisModeGlobalization>All</AnalysisModeGlobalization>
@@ -37,7 +38,7 @@
3738
<PropertyGroup Condition="'$(IsTestProject)' != 'true' and '$(MSBuildProjectDirectory.Contains(`src`))' == 'true'">
3839
<Description>
3940
TaLibStandard is a modern interpretation of the widely used TA-Lib,
40-
reimagined in C# 13. It is designed to be reliable, efficient, and user-friendly for developers
41+
reimagined in C# 14. It is designed to be reliable, efficient, and user-friendly for developers
4142
performing financial market analysis.
4243
</Description>
4344
<PackageProjectUrl>https://github.com/phmatray/TaLibStandard</PackageProjectUrl>
@@ -56,10 +57,6 @@
5657
<PropertyGroup Condition="'$(IsTestProject)' == 'true' or '$(MSBuildProjectDirectory.Contains(`tests`))' == 'true'">
5758
<IsPackable>false</IsPackable>
5859
<IsTestProject>true</IsTestProject>
59-
<OutputType>Exe</OutputType>
60-
<TestingPlatformDotnetTestSupport>true</TestingPlatformDotnetTestSupport>
61-
<UseMicrosoftTestingPlatformRunner>true</UseMicrosoftTestingPlatformRunner>
62-
<TestingPlatformCaptureOutput>true</TestingPlatformCaptureOutput>
6360
</PropertyGroup>
6461

6562
<!-- Demo Project Settings -->

0 commit comments

Comments
 (0)