Skip to content

Commit 91558fe

Browse files
committed
发布最新依赖版本
1 parent 8ec0388 commit 91558fe

File tree

33 files changed

+275
-110
lines changed

33 files changed

+275
-110
lines changed

.github/workflows/release.yml

Lines changed: 0 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -80,35 +80,6 @@ jobs:
8080
- name: 📄 Achive Project
8181
run: dotnet test './test/workflow/Workflow.Runner' --nologo -c Release
8282

83-
84-
85-
publish:
86-
87-
runs-on: ubuntu-latest
88-
needs: prepare_check
89-
90-
steps:
91-
- uses: actions/checkout@v4
92-
- name: 🔨 Setup .NET SDK
93-
uses: actions/setup-dotnet@v3
94-
with:
95-
dotnet-version: |
96-
3.1.x
97-
5.0.x
98-
6.0.x
99-
7.0.x
100-
8.0.x
101-
9.0.x
102-
103-
- name: ✊ Release Dll
104-
run: dotnet build -c Release
105-
106-
- name: 🚦 Check & Pack Nuget
107-
run: dotnet test './test/workflow/Workflow.Nuget.Publish' --nologo --no-restore --no-build -c Release
108-
109-
- name: 📶 Push to Nuget
110-
if: ${{ needs.prepare_check.outputs.hasNugetKey == 'true' }}
111-
run: dotnet nuget push *.nupkg -k ${{ secrets.NUGET_KEY }} -s https://api.nuget.org/v3/index.json --skip-duplicate
11283

11384
release:
11485

CHANGELOG.md

Lines changed: 44 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ Note: In this file, do not use the hard wrap in the middle of a sentence for com
44
55
发布日志节点案例格式如下(支持多版本发布):
66
7-
87
Example:
98
109
## [9.0.0.0] - 2024-11-13
@@ -53,21 +52,54 @@ Example:
5352
### DotNetCore.Natasha.CSharp.HotExecutor.SG _ v9.0.0.1:
5453
- 热执行的 SG 扩展库.
5554
- 跟随其他扩展库版本号发布.
55+
56+
### DotNetCore.Natasha.CSharp.Template.Core _ v9.0.0.3:
57+
- 跟随 Compiler 升级依赖.
58+
59+
### DotNetCore.Natasha.CSharp.Extension.Codecov _ v9.0.0.3:
60+
- 跟随 Compiler 升级依赖.
61+
62+
### DotNetCore.Natasha.CSharp.Extension.Ambiguity _ v9.0.0.3:
63+
- 跟随 Compiler 升级依赖.
64+
65+
### DotNetCore.Natasha.CSharp.Extension.MethodCreator _ v9.0.0.3:
66+
- 跟随 Compiler 升级依赖.
67+
68+
### DotNetCore.Natasha.CSharp.Extension.CompileDirector _ v9.0.0.3:
69+
- 跟随 Compiler 升级依赖.
70+
71+
### DotNetCore.Natasha.CSharp.HotExecutor _ v9.0.0.7:
72+
- 跟随 Compiler 升级依赖.
73+
74+
### DotNetCore.Natasha.CSharp.HotExecutor.Wrapper _ v9.0.0.8:
75+
- 跟随 Compiler 升级依赖.
5676
-->
5777

58-
## [9.0.0.1] - 2024-11-13
78+
## [9.0.0.3] - 2024-12-09
5979

60-
### DotNetCore.Natasha.CSharp.HotExecutor _ v9.0.0.3:
61-
- 基于 Natasha 的热执行,允许程序在运行时更改代码,并输出新的结果.
62-
- 跟随其他扩展库版本号发布.
80+
### DotNetCore.Natasha.CSharp.Compiler _ v9.0.0.4:
81+
- 修复 targets 文件.
6382

64-
### DotNetCore.Natasha.CSharp.HotExecutor.SG _ v9.0.0.3:
65-
- 热执行的 SG 扩展库.
66-
- 跟随其他扩展库版本号发布.
67-
-
68-
### DotNetCore.Natasha.CSharp.HotExecutor.Wrapper _ v9.0.0.4:
69-
- 热执行 + SG 封装库.
70-
- 跟随其他扩展库版本号发布.
83+
### DotNetCore.Natasha.CSharp.Template.Core _ v9.0.0.4:
84+
- 跟随 Compiler 升级依赖.
85+
86+
### DotNetCore.Natasha.CSharp.Extension.Codecov _ v9.0.0.4:
87+
- 跟随 Compiler 升级依赖.
88+
89+
### DotNetCore.Natasha.CSharp.Extension.Ambiguity _ v9.0.0.4:
90+
- 跟随 Compiler 升级依赖.
91+
92+
### DotNetCore.Natasha.CSharp.Extension.MethodCreator _ v9.0.0.4:
93+
- 跟随 Compiler 升级依赖.
94+
95+
### DotNetCore.Natasha.CSharp.Extension.CompileDirector _ v9.0.0.4:
96+
- 跟随 Compiler 升级依赖.
97+
98+
### DotNetCore.Natasha.CSharp.HotExecutor _ v9.0.0.9:
99+
- 跟随 Compiler 升级依赖.
100+
101+
### DotNetCore.Natasha.CSharp.HotExecutor.Wrapper _ v9.0.0.9:
102+
- 跟随 Compiler 升级依赖.
71103

72104

73105

samples/Directory.Build.props

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,19 +9,19 @@
99

1010
<When Condition="('$(IsHEProject)' == 'true')">
1111

12-
<!--<ItemGroup>
12+
<ItemGroup>
1313
<ProjectReference Include="$(SolutionDir)src\Natasha.CSharp\Extension\HotExecutor\Natasha.CSharp.HotExecutor\Natasha.CSharp.HotExecutor.csproj" />
1414
<ProjectReference Include="$(SolutionDir)src\Natasha.CSharp\Component\Core\Natasha.CSharp.Compiler.Domain\Natasha.CSharp.Compiler.Domain.csproj" />
1515
<ProjectReference Include="$(SolutionDir)src\Natasha.CSharp\Extension\Natasha.CSharp.Extension.MethodCreator\Natasha.CSharp.Extension.MethodCreator.csproj" />
16-
</ItemGroup>-->
16+
</ItemGroup>
1717

1818
</When>
1919
</Choose>
2020
<Choose>
2121
<When Condition="('$(IsHEProject)' == 'true') And ('$(IsHENETCore30)' != 'true')">
22-
<!--<ItemGroup>
22+
<ItemGroup>
2323
<ProjectReference Include="$(SolutionDir)src\Natasha.CSharp\Extension\HotExecutor\Natasha.CSharp.HotExecutor.SG\Natasha.CSharp.HotExecutor.SG.csproj" OutputItemType="Analyzer" ReferenceOutputAssembly="false" />
24-
</ItemGroup>-->
24+
</ItemGroup>
2525
</When>
2626
</Choose>
2727
</Project>

samples/ExtensionSample/Class7.cs

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,6 @@
11

22
//#if DEBUG
3-
using System.IO;
4-
using System.Diagnostics;
53
using System.Runtime.CompilerServices;
6-
using Natasha.CSharp.HotExecutor.Utils;
7-
using Natasha.CSharp.Extension.HotExecutor;
8-
using ExtensionSample;
94
namespace System
105
{
116

samples/HE/NET5.0/ConsoleSample/Program.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
using System;
1+
using Natasha.CSharp.HotExecutor;
2+
using System;
23
using System.Net;
34
using System.Threading;
45
using System.Threading.Tasks;

samples/HE/NET6.0/WebapiSample/Program.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
using Microsoft.AspNetCore.Http;
33
using Microsoft.Extensions.DependencyInjection;
44
using Microsoft.Extensions.Hosting;
5+
using Natasha.CSharp.HotExecutor;
56
using System;
67
using System.Linq;
78

@@ -107,7 +108,7 @@ public static void Main(string[] args)
107108
return forecast;
108109
})
109110
.WithName("GetWeatherForecast2");
110-
111+
HEProxy.AppendArgs();
111112
app.Run();
112113
//Once
113114
//Console.ReadKey();

samples/HE/NET6.0/WebapiSample/WebapiSample.csproj

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,7 @@
1111

1212
<ItemGroup>
1313
<PackageReference Include="Swashbuckle.AspNetCore" Version="6.5.0" />
14+
<!--<PackageReference Include="DotNetCore.Natasha.CSharp.HotExecutor.Wrapper" Version="9.0.0.6" />-->
1415
</ItemGroup>
15-
<ItemGroup>
16-
<PackageReference Include="DotNetCore.Natasha.CSharp.HotExecutor.Wrapper" Version="9.0.0.6" />
17-
</ItemGroup>
18-
<ItemGroup>
19-
<PackageReference Update="DotNetCore.Natasha.CSharp.HotExecutor" Version="9.0.0.5" />
20-
</ItemGroup>
16+
2117
</Project>
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
2+
namespace WebapiSample
3+
{
4+
public class Program
5+
{
6+
public static void Main(string[] args)
7+
{
8+
var builder = WebApplication.CreateBuilder(args);
9+
10+
// Add services to the container.
11+
12+
builder.Services.AddControllers();
13+
// Learn more about configuring Swagger/OpenAPI at https://aka.ms/aspnetcore/swashbuckle
14+
builder.Services.AddEndpointsApiExplorer();
15+
builder.Services.AddSwaggerGen();
16+
17+
var app = builder.Build();
18+
19+
// Configure the HTTP request pipeline.
20+
if (app.Environment.IsDevelopment())
21+
{
22+
app.UseSwagger();
23+
app.UseSwaggerUI();
24+
}
25+
26+
27+
app.UseHttpsRedirection();
28+
29+
app.UseAuthorization();
30+
31+
app.AsyncToHotExecutor();
32+
app.MapControllers();
33+
app.RunAsync();
34+
//Once
35+
Console.ReadKey();
36+
}
37+
}
38+
}
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
namespace WebapiSample
2+
{
3+
public class WeatherForecast
4+
{
5+
public DateOnly Date { get; set; }
6+
7+
public int TemperatureC { get; set; }
8+
9+
public int TemperatureF => 32 + (int)(TemperatureC / 0.5556);
10+
11+
public string? Summary { get; set; }
12+
}
13+
}
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
<Project Sdk="Microsoft.NET.Sdk.Web">
2+
3+
<PropertyGroup>
4+
<TargetFramework>net8.0</TargetFramework>
5+
<Nullable>enable</Nullable>
6+
<ImplicitUsings>enable</ImplicitUsings>
7+
</PropertyGroup>
8+
9+
<ItemGroup>
10+
<PackageReference Include="Swashbuckle.AspNetCore" Version="6.6.2" />
11+
</ItemGroup>
12+
<ItemGroup>
13+
<PackageReference Include="DotNetCore.Natasha.CSharp.HotExecutor.Wrapper" Version="9.0.0.4" />
14+
</ItemGroup>
15+
</Project>

0 commit comments

Comments
 (0)