Files
hjha-server/GlobalSever/GlobalSever.csproj
xiaoou 7b6c031d44 feat: net10.0 Linux Console mode — zero Mono, 0 compile errors
Migrated from net48 (.NET Framework) to net10.0 (cross-platform):
- All 14 csproj: net48 → net10.0, WindowsDesktop SDK → Microsoft.NET.Sdk
- Excluded WinForms files (Form/**, DebugControl, GameControl, etc.)
- Excluded DB modules (GameDAL db/Sql/**, MrWu DB files)
- Excluded server runtime files (GameBase, GlobalSever managers, GameNetModule stubs)
- Added minimal stubs (GameDoStub.cs, NamespaceStubs.cs, ServerCoreStubs.cs)
- Created hjha-console entry project
- Fixed hardcoded Windows path → ./test/ directory
- Updated global.json to SDK 10.0.109

Console test mode: PdkGameMain(null).Test() → 发牌→包庄→打牌→结算
Verified: dotnet build 0 errors, dotnet run outputs game state machine
2026-07-07 12:47:59 +08:00

149 lines
6.5 KiB
XML

<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>net10.0</TargetFramework>
<OutputType>Library</OutputType>
<RootNamespace>GlobalSever</RootNamespace>
<AssemblyName>GlobalSever</AssemblyName>
<LangVersion>8.0</LangVersion>
<Platforms>AnyCPU</Platforms>
<GenerateAssemblyInfo>false</GenerateAssemblyInfo>
<NoWin32Manifest>false</NoWin32Manifest>
<NoStdLib>false</NoStdLib>
<TreatWarningsAsErrors>false</TreatWarningsAsErrors>
<WarningLevel>4</WarningLevel>
<SignAssembly>false</SignAssembly>
<DelaySign>false</DelaySign>
<RunPostBuildEvent>OnBuildSuccess</RunPostBuildEvent>
<IntermediateOutputPath>obj\$(Configuration)\</IntermediateOutputPath>
</PropertyGroup>
<PropertyGroup Condition="'$(Platform)' == 'AnyCPU'">
<PlatformTarget>AnyCPU</PlatformTarget>
<BaseAddress>4194304</BaseAddress>
<RegisterForComInterop>false</RegisterForComInterop>
<GenerateSerializationAssemblies>Auto</GenerateSerializationAssemblies>
<FileAlignment>4096</FileAlignment>
<Prefer32Bit>false</Prefer32Bit>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Debug|AnyCPU'">
<OutputPath>bin\Debug\</OutputPath>
<BaseIntermediateOutputPath>obj\</BaseIntermediateOutputPath>
<DebugSymbols>true</DebugSymbols>
<DebugType>pdbonly</DebugType>
<Optimize>false</Optimize>
<CheckForOverflowUnderflow>true</CheckForOverflowUnderflow>
<DefineConstants>TRACE;DEBUG;Server</DefineConstants>
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
<NoWarn>1591</NoWarn>
<DocumentationFile></DocumentationFile>
<StartAction>Project</StartAction>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Release|AnyCPU'">
<OutputPath>bin\Release\</OutputPath>
<DebugSymbols>false</DebugSymbols>
<DebugType>none</DebugType>
<Optimize>true</Optimize>
<CheckForOverflowUnderflow>false</CheckForOverflowUnderflow>
<DefineConstants>TRACE;Server</DefineConstants>
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
<NoWarn>1591</NoWarn>
<DocumentationFile></DocumentationFile>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="AlibabaCloud.EndpointUtil" />
<PackageReference Include="AlibabaCloud.GatewaySpi" />
<PackageReference Include="AlibabaCloud.OpenApiClient" />
<PackageReference Include="AlibabaCloud.OpenApiUtil" />
<PackageReference Include="AlibabaCloud.SDK.Dypnsapi20170525" />
<PackageReference Include="AlibabaCloud.TeaUtil" />
<PackageReference Include="AlibabaCloud.TeaXML" />
<PackageReference Include="Aliyun.Credentials" />
<PackageReference Include="JetBrains.Annotations" />
<PackageReference Include="MessagePack" />
<PackageReference Include="MessagePack.Annotations" />
<PackageReference Include="Microsoft.AspNet.WebApi.Client" />
<PackageReference Include="Microsoft.Bcl.AsyncInterfaces" />
<PackageReference Include="Microsoft.NET.StringTools" />
<PackageReference Include="Newtonsoft.Json" />
<PackageReference Include="System.Buffers" />
<PackageReference Include="System.Collections.Immutable" />
<PackageReference Include="System.Memory" />
<PackageReference Include="System.Numerics.Vectors" />
<PackageReference Include="System.Runtime.CompilerServices.Unsafe" />
<PackageReference Include="System.Threading.Tasks.Extensions" />
<!-- 阿里云日志要用这个 -->
<PackageReference Include="Google.Protobuf" />
<!-- 阿里云日志要用这个 -->
<PackageReference Include="Iconic.Zlib.Netstandard" />
<PackageReference Include="Tea" />
</ItemGroup>
<ItemGroup>
<Reference Include="aliyun-net-sdk-core">
<HintPath>..\dll\aliyun-net-sdk-core.1.5.3\lib\net45\aliyun-net-sdk-core.dll</HintPath>
</Reference>
<Reference Include="Aliyun.Api.LogService">
<HintPath>..\dll\Aliyun.Api.LogService.dll</HintPath>
</Reference>
<Reference Include="RabbitMQ.Client">
<HintPath>..\dll\RabbitMQ.Client.dll</HintPath>
<Private>true</Private>
</Reference>
<Reference Include="StackExchange.Redis">
<HintPath>..\dll\StackExchange.Redis.dll</HintPath>
<Private>true</Private>
</Reference>
<Reference Include="System.Configuration" />
<Reference Include="System.ComponentModel.Composition" />
<Reference Include="System.Data" />
<Reference Include="System.Drawing" />
<Reference Include="System.IO.Compression.FileSystem" />
<Reference Include="System.Numerics" />
<Reference Include="System.Security" />
<Reference Include="System.Web" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\Core\Core.csproj" />
<ProjectReference Include="..\GameNetModule\GameNetModule.csproj" />
<ProjectReference Include="..\ServerCore\ServerCore.csproj" />
<ProjectReference Include="..\MrWu\MrWu.csproj" />
<ProjectReference Include="..\NetWorkMessage\NetWorkMessage.csproj" />
<ProjectReference Include="..\ObjectModel\ObjectModel.csproj" />
<ProjectReference Include="..\ServerData\ServerData.csproj" />
</ItemGroup>
<!-- <ItemGroup>-->
<!-- <Compile Include="..\..\hjha_Client\Assets\ScriptCode\UnityGame\Manager\ActivityPropDataManager\ActivityPropData\**\*.cs">-->
<!-- <Link>Manager\ActivityPropData\%(RecursiveDir)%(Filename)%(Extension)</Link>-->
<!-- </Compile>-->
<!-- </ItemGroup>-->
<ItemGroup>
<!-- WinForms & DB exclusions for Linux Console -->
<Compile Remove="Form\**" />
<Compile Remove="GlobalManager\**" />
<Compile Remove="FSM\**" />
<Compile Remove="Data\**" />
<Compile Remove="Manager\**" />
<Compile Remove="MQ\**" />
<Compile Remove="Module\**" />
<Compile Remove="SDK\**" />
<Compile Remove="Statistics\**" />
<EmbeddedResource Remove="Form\**" />
</ItemGroup>
<ItemGroup>
<Content Include="接口.txt" />
</ItemGroup>
<ItemGroup>
<Folder Include="Core\ActivityData\" />
<Folder Include="Helper\" />
<Folder Include="SDK\AliyunSDK\SLSLog\GameStatistics\" />
</ItemGroup>
</Project>