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

XFEExtension.NetCore.ServerInteractive

[DLL] Server interaction extension, including user identity verification and querying in conjunction with AutoConfig

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

XFEstudio/XFEExtension.NetCore.ServerInteractive

优化发布流程并升级依赖包

- 更新 publish-packages.yml,仅在 v 开头 tag 时发布,API Token 改为 GH_PACKAGES_TOKEN(secrets 配置) - 升级 Microsoft.CodeAnalysis.Analyzers 和 Microsoft.CodeAnalysis.CSharp 至 5.6.0 - 升级 Microsoft.NET.Test.Sdk 至 18.9.0,xunit.runner.visualstudio 至 4.0.0 - slnx 移除对 XFEExtension.NetCore 及 AutoConfig 项目引用,仅保留 ServerInteractive 相关 - csproj 将部分 ProjectReference 改为 PackageReference,升级 XFEConsole 至 2.5.0,移除 AutoConfig.Analyzer 项目引用

5bde33c
XFE工作室室长 <mail@xfegzs.com>
提交于

代码差异

6 个文件 +12 -17
Modified .github/workflows/publish-packages.yml +5 -1
@@ -2,6 +2,8 @@ name: Publish Packages
2 2
3 3 on:
4 4 push:
5 branches-ignore:
6 - "**"
5 7 tags:
6 8 - "v*"
7 9 workflow_dispatch:
@@ -77,6 +79,8 @@ jobs:
77 79
78 80 - name: Publish to GitHub Packages
79 81 shell: pwsh
82 env:
83 GH_PACKAGES_TOKEN: ${{ secrets.GH_PACKAGES_TOKEN }}
80 84 run: |
81 85 $packages = Get-ChildItem -Path "${{ env.PACKAGE_OUTPUT_DIR }}" -Filter *.nupkg -File
82 86 if (-not $packages) {
@@ -84,7 +88,7 @@ jobs:
84 88 }
85 89
86 90 foreach ($package in $packages) {
87 dotnet nuget push $package.FullName --source "https://nuget.pkg.github.com/${{ github.repository_owner }}/index.json" --api-key "${{ secrets.GITHUB_TOKEN }}" --skip-duplicate
91 dotnet nuget push $package.FullName --source "https://nuget.pkg.github.com/${{ github.repository_owner }}/index.json" --api-key "$env:GH_PACKAGES_TOKEN" --skip-duplicate
88 92 }
89 93
90 94 - name: Publish to NuGet.org
Modified XFEExtension.NetCore.ServerInteractive.SourceGenerator/XFEExtension.NetCore.ServerInteractive.SourceGenerator.csproj +2 -2
@@ -11,11 +11,11 @@
11 11 </PropertyGroup>
12 12
13 13 <ItemGroup>
14 <PackageReference Include="Microsoft.CodeAnalysis.Analyzers" Version="5.3.0">
14 <PackageReference Include="Microsoft.CodeAnalysis.Analyzers" Version="5.6.0">
15 15 <PrivateAssets>all</PrivateAssets>
16 16 <IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
17 17 </PackageReference>
18 <PackageReference Include="Microsoft.CodeAnalysis.CSharp" Version="5.3.0" />
18 <PackageReference Include="Microsoft.CodeAnalysis.CSharp" Version="5.6.0" />
19 19 </ItemGroup>
20 20
21 21 </Project>
Modified XFEExtension.NetCore.ServerInteractive.TServer/Program.cs +0 -1
@@ -8,7 +8,6 @@ using XFEExtension.NetCore.ServerInteractive.TServer.Services;
8 8 using XFEExtension.NetCore.ServerInteractive.Utilities.DataTable;
9 9 using XFEExtension.NetCore.ServerInteractive.Utilities.Extensions;
10 10 using XFEExtension.NetCore.ServerInteractive.Utilities.Server;
11 using UserProfile = XFEExtension.NetCore.ServerInteractive.TServer.Profiles.UserProfile;
12 11
13 12 var configuredRoot = args.FirstOrDefault(argument => argument.StartsWith("--root=", StringComparison.OrdinalIgnoreCase))?[7..];
14 13 var rootPath = Path.GetFullPath(configuredRoot ?? AppContext.BaseDirectory);
Modified XFEExtension.NetCore.ServerInteractive.Test/XFEExtension.NetCore.ServerInteractive.Test.csproj +2 -2
@@ -10,9 +10,9 @@
10 10 </PropertyGroup>
11 11
12 12 <ItemGroup>
13 <PackageReference Include="Microsoft.NET.Test.Sdk" Version="18.0.1" />
13 <PackageReference Include="Microsoft.NET.Test.Sdk" Version="18.9.0" />
14 14 <PackageReference Include="xunit" Version="2.9.3" />
15 <PackageReference Include="xunit.runner.visualstudio" Version="3.1.5">
15 <PackageReference Include="xunit.runner.visualstudio" Version="4.0.0">
16 16 <PrivateAssets>all</PrivateAssets>
17 17 <IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
18 18 </PackageReference>
Modified XFEExtension.NetCore.ServerInteractive.slnx +0 -4
@@ -1,8 +1,4 @@
1 1 <Solution>
2 <Project Path="../XFEExtension/XFEExtension.NetCore/XFEExtension.NetCore.csproj" />
3 <Project Path="../XFEExtension.NetCore.AutoConfig/XFEExtension.NetCore.AutoConfig/XFEExtension.NetCore.AutoConfig.csproj" />
4 <Project Path="../XFEExtension.NetCore.AutoConfig/XFEExtension.NetCore.AutoConfig.Analyzer/XFEExtension.NetCore.AutoConfig.Analyzer.csproj" />
5 <Project Path="../XFEExtension.NetCore.AutoConfig/XFEExtension.NetCore.AutoConfig.CodeFix/XFEExtension.NetCore.AutoConfig.CodeFix.csproj" />
6 2 <Project Path="XFEExtension.NetCore.ServerInteractive.Test/XFEExtension.NetCore.ServerInteractive.Test.csproj" />
7 3 <Project Path="XFEExtension.NetCore.ServerInteractive.TServer/XFEExtension.NetCore.ServerInteractive.TServer.csproj" Id="48ae17dc-8466-413f-8e8e-cbfc6f59fbe8" />
8 4 <Project Path="XFEExtension.NetCore.ServerInteractive/XFEExtension.NetCore.ServerInteractive.csproj" />
Modified XFEExtension.NetCore.ServerInteractive/XFEExtension.NetCore.ServerInteractive.csproj +3 -7
@@ -61,14 +61,10 @@
61 61 </ItemGroup>
62 62
63 63 <ItemGroup>
64 <PackageReference Include="XFEExtension.NetCore" Version="5.2.0" />
65 <PackageReference Include="XFEExtension.NetCore.AutoConfig" Version="3.0.1" />
64 66 <PackageReference Include="XFEExtension.NetCore.AutoImplement" Version="1.1.0" />
65 <PackageReference Include="XFEExtension.NetCore.XFEConsole" Version="2.2.2" />
66 </ItemGroup>
67
68 <ItemGroup>
69 <ProjectReference Include="..\..\XFEExtension\XFEExtension.NetCore\XFEExtension.NetCore.csproj" AdditionalProperties="Configuration=$(Configuration)" />
70 <ProjectReference Include="..\..\XFEExtension.NetCore.AutoConfig\XFEExtension.NetCore.AutoConfig\XFEExtension.NetCore.AutoConfig.csproj" AdditionalProperties="Configuration=$(Configuration)" />
71 <ProjectReference Include="..\..\XFEExtension.NetCore.AutoConfig\XFEExtension.NetCore.AutoConfig.Analyzer\XFEExtension.NetCore.AutoConfig.Analyzer.csproj" OutputItemType="Analyzer" ReferenceOutputAssembly="false" PrivateAssets="all" AdditionalProperties="Configuration=$(Configuration)" />
67 <PackageReference Include="XFEExtension.NetCore.XFEConsole" Version="2.5.0" />
72 68 </ItemGroup>
73 69
74 70 <ItemGroup>