Skip to content
This repository was archived by the owner on Jan 25, 2026. It is now read-only.

Commit af58899

Browse files
committed
chore(build): 为 Core 添加 CI 构建配置并将 Release 与 Beta 合并为 Publish
1 parent 3b712e2 commit af58899

File tree

3 files changed

+32
-32
lines changed

3 files changed

+32
-32
lines changed

LifecycleManagement/Lifecycle.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -279,7 +279,7 @@ private static void _Exit(int statusCode = 0)
279279
Console.WriteLine("[Lifecycle] Log service stopped");
280280
}
281281
_SavePendingLogs();
282-
#if DEBUG || DEBUGCI
282+
#if TRACE
283283
// 输出仍在运行的线程
284284
Console.WriteLine("[Lifecycle] Thread(s) still in working:");
285285
var currentThreadId = NativeInterop.GetCurrentOsThreadId();

PCL.Core.csproj

Lines changed: 30 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<Import Project="..\packages\Microsoft.Net.Compilers.Toolset.4.14.0\build\Microsoft.Net.Compilers.Toolset.props" Condition="Exists('..\packages\Microsoft.Net.Compilers.Toolset.4.14.0\build\Microsoft.Net.Compilers.Toolset.props')" />
44
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
55
<PropertyGroup>
6-
<Configuration Condition=" '$(Configuration)' == '' ">Release</Configuration>
6+
<Configuration Condition="'$(Configuration)' == ''">Release</Configuration>
77
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
88
<ProjectGuid>{A0C2209D-64FB-4C11-9459-8E86304B6F94}</ProjectGuid>
99
<OutputType>Library</OutputType>
@@ -16,7 +16,7 @@
1616
<LangVersion>12</LangVersion>
1717
<Nullable>enable</Nullable>
1818
</PropertyGroup>
19-
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
19+
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
2020
<DebugSymbols>true</DebugSymbols>
2121
<DebugType>full</DebugType>
2222
<Optimize>false</Optimize>
@@ -25,14 +25,6 @@
2525
<ErrorReport>prompt</ErrorReport>
2626
<WarningLevel>4</WarningLevel>
2727
</PropertyGroup>
28-
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
29-
<DebugType>pdbonly</DebugType>
30-
<Optimize>true</Optimize>
31-
<OutputPath>bin\Release\</OutputPath>
32-
<DefineConstants>TRACE</DefineConstants>
33-
<ErrorReport>prompt</ErrorReport>
34-
<WarningLevel>4</WarningLevel>
35-
</PropertyGroup>
3628
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Debug|ARM64'">
3729
<DebugSymbols>true</DebugSymbols>
3830
<OutputPath>bin\ARM64\Debug\</OutputPath>
@@ -41,14 +33,6 @@
4133
<PlatformTarget>ARM64</PlatformTarget>
4234
<ErrorReport>prompt</ErrorReport>
4335
</PropertyGroup>
44-
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Release|ARM64'">
45-
<OutputPath>bin\ARM64\Release\</OutputPath>
46-
<DefineConstants>TRACE</DefineConstants>
47-
<Optimize>true</Optimize>
48-
<DebugType>pdbonly</DebugType>
49-
<PlatformTarget>ARM64</PlatformTarget>
50-
<ErrorReport>prompt</ErrorReport>
51-
</PropertyGroup>
5236
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Debug|x64'">
5337
<DebugSymbols>true</DebugSymbols>
5438
<OutputPath>bin\x64\Debug\</OutputPath>
@@ -57,34 +41,50 @@
5741
<PlatformTarget>x64</PlatformTarget>
5842
<ErrorReport>prompt</ErrorReport>
5943
</PropertyGroup>
60-
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Release|x64'">
61-
<OutputPath>bin\x64\Release\</OutputPath>
62-
<DefineConstants>TRACE</DefineConstants>
44+
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Publish|AnyCPU'">
45+
<DebugType>pdbonly</DebugType>
46+
<Optimize>true</Optimize>
47+
<OutputPath>bin\Publish\</OutputPath>
48+
<DefineConstants>PUBLISH</DefineConstants>
49+
<ErrorReport>prompt</ErrorReport>
50+
<WarningLevel>4</WarningLevel>
51+
</PropertyGroup>
52+
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Publish|ARM64'">
53+
<DebugType>pdbonly</DebugType>
6354
<Optimize>true</Optimize>
55+
<OutputPath>bin\ARM64\Publish\</OutputPath>
56+
<DefineConstants>PUBLISH</DefineConstants>
57+
<PlatformTarget>ARM64</PlatformTarget>
58+
<ErrorReport>prompt</ErrorReport>
59+
</PropertyGroup>
60+
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Publish|x64'">
6461
<DebugType>pdbonly</DebugType>
62+
<Optimize>true</Optimize>
63+
<OutputPath>bin\x64\Publish\</OutputPath>
64+
<DefineConstants>PUBLISH</DefineConstants>
6565
<PlatformTarget>x64</PlatformTarget>
6666
<ErrorReport>prompt</ErrorReport>
6767
</PropertyGroup>
68-
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Beta|AnyCPU'">
69-
<OutputPath>bin\Beta\</OutputPath>
70-
<DefineConstants>TRACE</DefineConstants>
68+
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'CI|AnyCPU'">
69+
<OutputPath>bin\CI\</OutputPath>
7170
<Optimize>true</Optimize>
71+
<DefineConstants>CI;TRACE</DefineConstants>
7272
<DebugType>pdbonly</DebugType>
7373
<PlatformTarget>AnyCPU</PlatformTarget>
7474
<ErrorReport>prompt</ErrorReport>
7575
</PropertyGroup>
76-
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Beta|ARM64'">
77-
<OutputPath>bin\ARM64\Beta\</OutputPath>
78-
<DefineConstants>TRACE</DefineConstants>
76+
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'CI|ARM64'">
77+
<OutputPath>bin\ARM64\CI\</OutputPath>
7978
<Optimize>true</Optimize>
79+
<DefineConstants>CI;TRACE</DefineConstants>
8080
<DebugType>pdbonly</DebugType>
8181
<PlatformTarget>ARM64</PlatformTarget>
8282
<ErrorReport>prompt</ErrorReport>
8383
</PropertyGroup>
84-
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Beta|x64'">
85-
<OutputPath>bin\x64\Beta\</OutputPath>
86-
<DefineConstants>TRACE</DefineConstants>
84+
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'CI|x64'">
85+
<OutputPath>bin\x64\CI\</OutputPath>
8786
<Optimize>true</Optimize>
87+
<DefineConstants>CI;TRACE</DefineConstants>
8888
<DebugType>pdbonly</DebugType>
8989
<PlatformTarget>x64</PlatformTarget>
9090
<ErrorReport>prompt</ErrorReport>

Service/PromoteService.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ public static bool AddJsonOperationFunction<TValue>(string name, Func<TValue?, s
100100

101101
private static string _ShortenString(string str)
102102
{
103-
#if DEBUG || DEBUGCI
103+
#if TRACE
104104
const int maxLength = 40;
105105
#else
106106
const int maxLength = 15;

0 commit comments

Comments
 (0)