返回提交历史
Modified
XFEExtension.NetCore.XApp.Core/XApp.cs
+9
-1
Modified
XFEExtension.NetCore.XApp.Core/XFEExtension.NetCore.XApp.Core.csproj
+2
-2
XFEstudio/XFEExtension.NetCore.XApp.Core
XApp增加程序集字节
63f1741
代码差异
2 个文件
+11
-3
@@ -28,6 +28,10 @@ public class XApp
28
28
/// </summary>
29
29
public AppFileCollection AppFiles { get; set; } = [];
30
30
/// <summary>
31
/// 程序集字符
32
/// </summary>
33
public byte[]? AssemblyBytes { get; set; }
34
/// <summary>
31
35
/// 打包为完整的XApp字典
32
36
/// </summary>
33
37
/// <returns></returns>
@@ -55,6 +59,8 @@ public class XApp
55
59
"AppFiles", AppFiles.Package()
56
60
}
57
61
};
62
if (AssemblyBytes is not null)
63
appDictionary.Add("Assembly", Convert.ToBase64String(AssemblyBytes));
58
64
return appDictionary;
59
65
}
60
66
/// <summary>
@@ -70,10 +76,12 @@ public class XApp
70
76
public static XApp UnPackage(XFEDictionary appDictionary)
71
77
{
72
78
XFEDictionary appInformation = appDictionary["AppInformation"]!;
79
var assemblyBase64String = appDictionary["Assembly"];
73
80
return new XApp
74
81
{
75
82
AppInformation = XAppInformation.UnPackage(appInformation),
76
AppFiles = AppFileCollection.UnPackage(appDictionary["AppFiles"]!) ?? []
83
AppFiles = AppFileCollection.UnPackage(appDictionary["AppFiles"]!) ?? [],
84
AssemblyBytes = assemblyBase64String is not null ? Convert.FromBase64String(assemblyBase64String) : null
77
85
};
78
86
}
79
87
}
@@ -14,11 +14,11 @@
14
14
<PackageReadmeFile>README.md</PackageReadmeFile>
15
15
<RepositoryUrl>https://github.com/XFEstudio/XFEExtension.NetCore.XApp.Core</RepositoryUrl>
16
16
<PackageTags>XFE;XApp</PackageTags>
17
<PackageReleaseNotes>XAppFileType中添加C#逻辑代码枚举</PackageReleaseNotes>
17
<PackageReleaseNotes>XApp增加程序集字节</PackageReleaseNotes>
18
18
<PackageLicenseFile>LICENSE.txt</PackageLicenseFile>
19
19
<Authors>XFEstudio</Authors>
20
20
<Company>寰宇朽力网络科技有限公司</Company>
21
<Version>1.0.7</Version>
21
<Version>1.0.8</Version>
22
22
</PropertyGroup>
23
23
24
24
<ItemGroup>