Skip to content

Commit 8308b9a

Browse files
authored
Merge pull request #228 from WeihanLi/dev
1.0.72 preview 1
2 parents ca2069b + 8f6e246 commit 8308b9a

File tree

17 files changed

+135
-82
lines changed

17 files changed

+135
-82
lines changed

.devcontainer/devcontainer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
"ghcr.io/devcontainers/features/docker-in-docker:2": {},
99
"ghcr.io/devcontainers/features/dotnet:2": {
1010
"version": "latest",
11-
"additionalVersions": "9.0.100-preview.3.24204.13"
11+
"additionalVersions": "lts"
1212
}
1313
},
1414
"customizations": {

.github/workflows/default.yml

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -26,11 +26,7 @@ jobs:
2626
- name: Setup .NET SDK
2727
uses: actions/setup-dotnet@v4
2828
with:
29-
dotnet-version: |
30-
6.x
31-
7.x
32-
8.x
33-
9.x
29+
dotnet-version: 9.0.x
3430
- name: dotnet info
3531
run: dotnet --info
3632
- name: build

.github/workflows/docfx.yml

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,7 @@ jobs:
1515
- name: Setup .NET SDK
1616
uses: actions/setup-dotnet@v4
1717
with:
18-
dotnet-version: |
19-
6.0.x
20-
7.0.x
21-
8.0.x
22-
9.0.x
18+
dotnet-version: 9.0.x
2319
- name: install DocFX
2420
run: "dotnet tool install -g docfx"
2521
- name: Build docs

.github/workflows/dotnet-format.yml

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,7 @@ jobs:
1414
- name: Setup .NET SDK
1515
uses: actions/setup-dotnet@v4
1616
with:
17-
dotnet-version: |
18-
6.0.x
19-
7.0.x
20-
8.0.x
21-
9.0.x
17+
dotnet-version: 9.0.x
2218
- name: build
2319
run: dotnet build
2420
- name: format

Directory.Packages.props

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<ExtensionPackageVersion Condition="'$(TargetFramework)' == 'netstandard2.0' OR '$(TargetFramework)' == 'netstandard2.1' OR '$(TargetFramework)' == 'net6.0'">6.0.0</ExtensionPackageVersion>
66
<ExtensionPackageVersion Condition="'$(TargetFramework)' == 'net7.0'">7.0.0</ExtensionPackageVersion>
77
<ExtensionPackageVersion Condition="'$(TargetFramework)' == 'net8.0'">8.0.0</ExtensionPackageVersion>
8-
<ExtensionPackageVersion Condition="'$(TargetFramework)' == 'net9.0'">9.0.0-rc.2.24473.5</ExtensionPackageVersion>
8+
<ExtensionPackageVersion Condition="'$(TargetFramework)' == 'net9.0'">9.0.0</ExtensionPackageVersion>
99
</PropertyGroup>
1010
<ItemGroup>
1111
<PackageVersion Include="Microsoft.Extensions.Configuration" Version="$(ExtensionPackageVersion)" />
@@ -31,9 +31,9 @@
3131
<PackageVersion Include="BenchmarkDotNet" Version="0.14.0" />
3232
</ItemGroup>
3333
<ItemGroup>
34-
<PackageVersion Include="Microsoft.EntityFrameworkCore" Version="8.0.10" />
35-
<PackageVersion Include="Microsoft.EntityFrameworkCore.InMemory" Version="8.0.10" />
36-
<PackageVersion Include="Microsoft.Extensions.ObjectPool" Version="8.0.10" />
34+
<PackageVersion Include="Microsoft.EntityFrameworkCore" Version="8.0.11" />
35+
<PackageVersion Include="Microsoft.EntityFrameworkCore.InMemory" Version="8.0.11" />
36+
<PackageVersion Include="Microsoft.Extensions.ObjectPool" Version="8.0.11" />
3737
<PackageVersion Include="Serilog.Sinks.Console" Version="6.0.0" />
3838
<PackageVersion Include="System.Data.SqlClient" Version="4.8.6" />
3939
<PackageVersion Include="Dapper" Version="2.1.44" />

build/build.cs

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
// Copyright (c) 2022-2023 Weihan Li. All rights reserved.
22
// Licensed under the Apache license version 2.0 http://www.apache.org/licenses/LICENSE-2.0
33

4-
var target = CommandLineParser.Val("target", args, "Default");
5-
var apiKey = CommandLineParser.Val("apiKey", args);
6-
var stable = CommandLineParser.BooleanVal("stable", args);
7-
var noPush = CommandLineParser.BooleanVal("noPush", args);
4+
var target = CommandLineParser.Val(args, "target", "Default");
5+
var apiKey = CommandLineParser.Val(args, "apiKey");
6+
var stable = CommandLineParser.BooleanVal(args, "stable");
7+
var noPush = CommandLineParser.BooleanVal(args, "noPush");
88
var branchName = EnvHelper.Val("BUILD_SOURCEBRANCHNAME", "local");
99

1010
var solutionPath = "./WeihanLi.Common.sln";
@@ -28,7 +28,11 @@
2828
})
2929
.WithTaskExecuting(task => Console.WriteLine($@"===== Task {task.Name} {task.Description} executing ======"))
3030
.WithTaskExecuted(task => Console.WriteLine($@"===== Task {task.Name} {task.Description} executed ======"))
31-
.WithTask("hello", b => b.WithExecution(() => Console.WriteLine("Hello dotnet-exec build")))
31+
.WithTask("hello", b => b.WithExecution(async () =>
32+
{
33+
Console.WriteLine("Hello dotnet-exec build");
34+
await ExecuteCommandAsync("dotnet-exec info");
35+
}))
3236
.WithTask("build", b =>
3337
{
3438
b.WithDescription("dotnet build")

build/version.props

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<PropertyGroup>
33
<VersionMajor>1</VersionMajor>
44
<VersionMinor>0</VersionMinor>
5-
<VersionPatch>71</VersionPatch>
5+
<VersionPatch>72</VersionPatch>
66
<VersionPrefix>$(VersionMajor).$(VersionMinor).$(VersionPatch)</VersionPrefix>
77
</PropertyGroup>
88
</Project>

perf/WeihanLi.Common.Benchmark/Program.cs

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,11 @@
11
using BenchmarkDotNet.Running;
2-
using Microsoft.Extensions.Configuration;
3-
using Microsoft.Extensions.DependencyInjection;
42

53
namespace WeihanLi.Common.Benchmark;
64

75
public class Program
86
{
97
public static void Main(string[] args)
108
{
11-
var configurationBuilder = new ConfigurationBuilder();
12-
configurationBuilder.AddJsonFile("appsettings.json");
13-
14-
var serviceCollection = new ServiceCollection();
15-
serviceCollection.AddSingleton<IConfiguration>(configurationBuilder.Build());
16-
DependencyResolver.SetDependencyResolver(serviceCollection);
17-
189
// BenchmarkRunner.Run<MapperTest>();
1910
// BenchmarkRunner.Run<CreateInstanceTest>();
2011
// BenchmarkRunner.Run<DITest>();

perf/WeihanLi.Common.Benchmark/WeihanLi.Common.Benchmark.csproj

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<PropertyGroup>
44
<OutputType>Exe</OutputType>
55
<Optimize>true</Optimize>
6-
<TargetFramework>net8.0</TargetFramework>
6+
<TargetFramework>net9.0</TargetFramework>
77
<Benchmark>True</Benchmark>
88
<Nullable>disable</Nullable>
99
</PropertyGroup>
@@ -15,12 +15,5 @@
1515

1616
<ItemGroup>
1717
<ProjectReference Include="..\..\src\WeihanLi.Common\WeihanLi.Common.csproj" />
18-
<ProjectReference Include="..\..\src\WeihanLi.Extensions.Hosting\WeihanLi.Extensions.Hosting.csproj" />
19-
</ItemGroup>
20-
21-
<ItemGroup>
22-
<None Update="appsettings.json">
23-
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
24-
</None>
2518
</ItemGroup>
2619
</Project>

perf/WeihanLi.Common.Benchmark/appsettings.json

Lines changed: 0 additions & 11 deletions
This file was deleted.

0 commit comments

Comments
 (0)