XFE Git
XFE Studio Git
Git 首页 全局搜索
XFE 主站 文档 NuGet

XFEExtension

【DLL】XFE各类拓展是一个C#的DLL库,旨在优化C#代码中常用语句的使用,并提供更简洁的访问方式,同时提供Xunit测试框架,快速搭建服务器/客户端,免费ChatGPTAPI接口,免费通讯服务器,XFE下载器,新增格式等

公开
关注 0 Fork 0 Star 0
返回提交历史

XFEstudio/XFEExtension

修复了路径自动实现中,路径引用路径自动生成的属性时,无法初始化的bug

49b0c48
XFE工作室室长 <mail@xfegzs.com>
提交于

代码差异

4 个文件 +6 -5
Modified XFEExtension.NetCore.Analyzer.Test/AppPath.cs +2 -0
@@ -6,4 +6,6 @@ public partial class AppPath
6 6 {
7 7 [AutoPath]
8 8 readonly static string myTestPath = "MyTestPath/Test";
9 [AutoPath]
10 readonly static string mySecTestPath = $"{MyTestPath}/Sec";
9 11 }
Modified XFEExtension.NetCore.Analyzer.Test/Program.cs +1 -1
@@ -13,7 +13,7 @@ internal class Program
13 13 };
14 14 Console.WriteLine(SystemProfile.Age);
15 15 Console.WriteLine(SystemProfile.Name);
16 SystemProfile.Name.WriteIn(AppPath.MyTestPath + "/test1.txt");
16 SystemProfile.Name.WriteIn(AppPath.MySecTestPath + "/test1.txt");
17 17 }
18 18 }
19 19 enum MyEnum
Modified XFEExtension.NetCore.Analyzer/Generator/PathPropertyAutoGenerator.cs +1 -0
@@ -66,6 +66,7 @@ namespace XFEExtension.NetCore.Analyzer.Generator
66 66 {
67 67 SyntaxFactory.AccessorDeclaration(SyntaxKind.GetAccessorDeclaration)
68 68 .WithBody(SyntaxFactory.Block(
69 SyntaxFactory.ExpressionStatement(SyntaxFactory.ParseExpression($"Options ??= new {className}()")),
69 70 SyntaxFactory.ExpressionStatement(SyntaxFactory.ParseExpression($"global::XFEExtension.NetCore.PathExtension.XFEAutoPath.CheckPathExistAndCreate({fieldName}, Options.{enableCheckPropertyName})")),
70 71 SyntaxFactory.ReturnStatement(SyntaxFactory.ParseExpression($"{fieldName}"))))
71 72 })))
Modified XFEExtension.NetCore/XFEExtension.NetCore.csproj +2 -4
@@ -19,9 +19,7 @@
19 19 <PackageTags>XFE;拓展;GPT;Server;服务器;测试;XFEExtension</PackageTags>
20 20 <PackageReleaseNotes>## 调整
21 21
22 修复了路径自动实现的部分bug
23 调整了CyberCommServer的构造函数,使得其更加合理
24 更新了md文档API说明
22 修复了路径自动实现中,路径引用路径自动生成的属性时,无法初始化的bug
25 23
26 24 ## 新增
27 25
@@ -34,7 +32,7 @@
34 32 <PackageRequireLicenseAcceptance>True</PackageRequireLicenseAcceptance>
35 33 <PackageLicenseFile>LICENSE</PackageLicenseFile>
36 34 <AssemblyOriginatorKeyFile>..\XFEstudio.pfx</AssemblyOriginatorKeyFile>
37 <Version>2.10.1</Version>
35 <Version>2.10.2</Version>
38 36 <Authors>XFEstudio</Authors>
39 37 </PropertyGroup>
40 38