Skip to content

Commit

Permalink
rerun publish
Browse files Browse the repository at this point in the history
  • Loading branch information
NMSAzulX committed Nov 13, 2024
1 parent f206874 commit eb680f1
Show file tree
Hide file tree
Showing 8 changed files with 35 additions and 25 deletions.
28 changes: 18 additions & 10 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,16 +7,6 @@ Note: In this file, do not use the hard wrap in the middle of a sentence for com
Example:
## [5.1.0.0] - 2023-04-02
### DotNetCore.Natasha.CSharp _ v5.1.0.0:
- Github 补充发布 Release.
### DotNetCore.Natasha.Domain _ v5.0.0.0:
- Github 补充发布 Release.
-->

## [9.0.0.0] - 2024-11-13
### DotNetCore.Natasha.CSharp.Compiler _ v9.0.0.0:
Expand Down Expand Up @@ -64,3 +54,21 @@ Example:
### DotNetCore.Natasha.DynamicLoad.Base _ v9.0.0.0:
- 跟随其他扩展库版本号发布.
-->

## [9.0.0.0] - 2024-11-13

### DotNetCore.Natasha.CSharp.Extension.MethodCreator _ v9.0.0.0:
- 发布 便捷动态方法编译模板.
- 跟随其他扩展库版本号发布.

### DotNetCore.Natasha.CSharp.Extension.CompileDirector _ v9.0.0.0:
- 编译导演,每次编译学习并保留有用的 using code.
- 跟随其他扩展库版本号发布.
-
### DotNetCore.Natasha.CSharp.Extension.HotReload.SG _ v8.9.0.0:
- 热重载,允许程序在运行时更改代码,并输出新的结果.
- 跟随其他扩展库版本号发布.


4 changes: 3 additions & 1 deletion samples/ExtensionSample/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -88,14 +88,15 @@ static void Main(string[] args)
Console.WriteLine(item.Name);
}


//Once
for (int i = 0; i < 5; i++)
{
//Once
Console.WriteLine(i);
}

//Console.WriteLine(File.Exists("1.txt"));

Console.WriteLine(Class1.Get());
Console.WriteLine((new Class4()).ToString());
Console.WriteLine(JsonSerializer.Serialize(new Class3()));
Expand All @@ -106,6 +107,7 @@ static void Main(string[] args)

}


public static void TestShow()
{
Console.WriteLine(2);
Expand Down
2 changes: 1 addition & 1 deletion samples/HE/NET5.0/ConsoleSample/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ internal class Program

static void Main(string[] args)
{

//HE:Async
TestLocalMethod();
HEProxyState<int>.Value += 1;
Expand All @@ -18,7 +19,6 @@ static void Main(string[] args)
//DS args[i]
}


Console.WriteLine(HEProxyState<int>.Value);
CancellationTokenSource source = new();

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>netstandard2.1</TargetFramework>
<TargetFrameworks>netstandard2.1;</TargetFrameworks>
<PackageId>DotNetCore.Natasha.CSharp.Extension.HotReload.SG</PackageId>
<EnforceExtendedAnalyzerRules>true</EnforceExtendedAnalyzerRules>
<ImplicitUsings>enable</ImplicitUsings>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>netstandard2.0</TargetFramework>
<TargetFrameworks>netstandard2.1;</TargetFrameworks>
<Description>编译导演,在编译场景中不断学习 using 使用情况。</Description>
<PackageId>DotNetCore.Natasha.CSharp.Extension.CompileDirector</PackageId>
<PackageReleaseNotes>升级到最新版.</PackageReleaseNotes>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>netstandard2.0</TargetFramework>
<TargetFrameworks>netstandard2.1;</TargetFrameworks>
<ImplicitUsings>enable</ImplicitUsings>
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
<Description>Natasha 的快捷方法构建扩展.</Description>
Expand Down
10 changes: 5 additions & 5 deletions test/ut/Compile/MemAssembly/LogInfo/Utils/LogCheckHelper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -48,10 +48,10 @@ internal static void JudgeLogError(string script, string fileName, bool withNull
catch (Exception ex)
{

var expectedLog = GetText(fileName);
var expectedLog = GetText(fileName).Replace("\r\n", "\n");
Assert.NotNull(log);
Assert.True(ex is NatashaException);
var actualLog = log!.ToString();
var actualLog = log!.ToString().Replace("\r\n", "\n");
CompareLogEqual(expectedLog, actualLog);

}
Expand Down Expand Up @@ -89,9 +89,9 @@ internal static void JudgeLogSuccess(string script, string fileName, bool withNu
log = compilation.GetNatashaLog();
};
builder.GetAssembly();
var expectedLog = GetText(fileName);
var expectedLog = GetText(fileName).Replace("\r\n", "\n");
Assert.NotNull(log);
var actualLog = log!.ToString();
var actualLog = log!.ToString().Replace("\r\n", "\n");
CompareLogEqual(expectedLog, actualLog);
}
catch (Exception ex)
Expand All @@ -102,7 +102,7 @@ internal static void JudgeLogSuccess(string script, string fileName, bool withNu
}
private static void CompareLogEqual(string expected, string actual)
{
Assert.True(OSStringCompare.Equal(removeTime.Replace(expected, ""), removeTime.Replace(actual, "")));
Assert.Equal(removeTime.Replace(expected, ""), removeTime.Replace(actual, ""));
}

private static string GetText(string fileName)
Expand Down
10 changes: 5 additions & 5 deletions test/ut/Compile/RefAssembly/LogInfo/Utils/LogCheckHelper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -48,10 +48,10 @@ internal static void JudgeLogError(string script, string fileName, bool withNull
catch (Exception ex)
{

var expectedLog = GetText(fileName);
var expectedLog = GetText(fileName).Replace("\r\n", "\n");
Assert.NotNull(log);
Assert.True(ex is NatashaException);
var actualLog = log!.ToString();
var actualLog = log!.ToString().Replace("\r\n", "\n");
CompareLogEqual(expectedLog, actualLog);

}
Expand Down Expand Up @@ -89,9 +89,9 @@ internal static void JudgeLogSuccess(string script, string fileName, bool withNu
log = compilation.GetNatashaLog();
};
builder.GetAssembly();
var expectedLog = GetText(fileName);
var expectedLog = GetText(fileName).Replace("\r\n", "\n");
Assert.NotNull(log);
var actualLog = log!.ToString();
var actualLog = log!.ToString().Replace("\r\n", "\n");
CompareLogEqual(expectedLog, actualLog);
}
catch (Exception ex)
Expand All @@ -102,7 +102,7 @@ internal static void JudgeLogSuccess(string script, string fileName, bool withNu
}
private static void CompareLogEqual(string expected, string actual)
{
Assert.True(OSStringCompare.Equal(removeTime.Replace(expected, ""), removeTime.Replace(actual, "")));
Assert.Equal(removeTime.Replace(expected, ""), removeTime.Replace(actual, ""));
}

private static string GetText(string fileName)
Expand Down

0 comments on commit eb680f1

Please sign in to comment.