Files
hjha-server/GameModule/GameModule.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

148 lines
7.1 KiB
XML

<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>net10.0</TargetFramework>
<OutputType>Library</OutputType>
<RootNamespace>GameModule</RootNamespace>
<AssemblyName>GameModule</AssemblyName>
<LangVersion>8.0</LangVersion>
<GenerateAssemblyInfo>false</GenerateAssemblyInfo>
<Platforms>AnyCPU</Platforms>
<Configurations>Debug;Release</Configurations>
<SignAssembly>false</SignAssembly>
<DelaySign>false</DelaySign>
<RunPostBuildEvent>OnBuildSuccess</RunPostBuildEvent>
<AllowUnsafeBlocks>false</AllowUnsafeBlocks>
<NoStdLib>false</NoStdLib>
<TreatWarningsAsErrors>false</TreatWarningsAsErrors>
<WarningLevel>4</WarningLevel>
<NoWin32Manifest>false</NoWin32Manifest>
<GenerateSerializationAssemblies>Auto</GenerateSerializationAssemblies>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Debug|AnyCPU'">
<PlatformTarget>AnyCPU</PlatformTarget>
<BaseAddress>4194304</BaseAddress>
<RegisterForComInterop>false</RegisterForComInterop>
<FileAlignment>4096</FileAlignment>
<OutputPath>bin\Debug\</OutputPath>
<IntermediateOutputPath>obj\Debug\</IntermediateOutputPath>
<BaseIntermediateOutputPath>obj\</BaseIntermediateOutputPath>
<DebugSymbols>true</DebugSymbols>
<DebugType>full</DebugType>
<Optimize>false</Optimize>
<CheckForOverflowUnderflow>true</CheckForOverflowUnderflow>
<DefineConstants>DEBUG;TRACE;GameNormal;Test</DefineConstants>
<CodeAnalysisRuleSet>ExtendedCorrectnessRules.ruleset</CodeAnalysisRuleSet>
<Prefer32Bit>false</Prefer32Bit>
<NoWarn>1591</NoWarn>
<DocumentationFile></DocumentationFile>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Release|AnyCPU'">
<PlatformTarget>AnyCPU</PlatformTarget>
<BaseAddress>4194304</BaseAddress>
<RegisterForComInterop>false</RegisterForComInterop>
<FileAlignment>4096</FileAlignment>
<OutputPath>bin\Release\</OutputPath>
<IntermediateOutputPath>obj\Release\</IntermediateOutputPath>
<DebugSymbols>false</DebugSymbols>
<DebugType>none</DebugType>
<Optimize>false</Optimize>
<CheckForOverflowUnderflow>false</CheckForOverflowUnderflow>
<DefineConstants>TRACE</DefineConstants>
<Prefer32Bit>false</Prefer32Bit>
<NoWarn>1591</NoWarn>
<DocumentationFile />
</PropertyGroup>
<ItemGroup>
<PackageReference Include="MessagePack" />
<PackageReference Include="MessagePack.Annotations" />
<PackageReference Include="MessagePackAnalyzer" PrivateAssets="all" />
<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" />
</ItemGroup>
<ItemGroup>
<Reference Include="RabbitMQ.Client">
<HintPath>..\dll\RabbitMQ.Client.dll</HintPath>
<Private>true</Private>
</Reference>
<Reference Include="StackExchange.Redis">
<HintPath>..\dll\StackExchange.Redis.dll</HintPath>
</Reference>
<Reference Include="websocket-sharp">
<HintPath>..\dll_new\websocket-sharp.dll</HintPath>
</Reference>
</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" />
<ProjectReference Include="..\zyxAdapter\zyxAdapter.csproj" />
</ItemGroup>
<ItemGroup>
<Compile Remove="FriendRoom\**" />
<Compile Remove="GlobalManager\ClubSeatmate.cs" />
<Compile Remove="GlobalManager\Comback.cs" />
<Compile Remove="GlobalManager\Desk.cs" />
<Compile Remove="GlobalManager\DeskState.cs" />
<Compile Remove="GlobalManager\Desk_friend.cs" />
<Compile Remove="GlobalManager\Desk_gold.cs" />
<Compile Remove="GlobalManager\EmptyHostUtil.cs" />
<Compile Remove="GlobalManager\GameBaseMainActor.cs" />
<Compile Remove="GlobalManager\GameControl.cs" />
<Compile Remove="GlobalManager\GameControl.Designer.cs" />
<Compile Remove="GlobalManager\GameDataTab.cs" />
<Compile Remove="GlobalManager\GameInfoTab_Test.cs" />
<Compile Remove="GlobalManager\GameManager.cs" />
<Compile Remove="GlobalManager\GameNet.cs" />
<Compile Remove="GlobalManager\GameTestTable.cs" />
<Compile Remove="GlobalManager\GameTestTable.Designer.cs" />
<Compile Remove="GlobalManager\GameUtilFactory.cs" />
<Compile Remove="GlobalManager\IGameMessage.cs" />
<Compile Remove="GlobalManager\IPLocation.cs" />
<Compile Remove="GlobalManager\MyGameServerUtileFactory.cs" />
<Compile Remove="GlobalManager\PlayerCollection.cs" />
<Compile Remove="GlobalManager\PlayerDataAsyc.cs" />
<Compile Remove="GlobalManager\PlayerDataAsycExtension.cs" />
<Compile Remove="GlobalManager\PlayerLuckTable.cs" />
<Compile Remove="GlobalManager\PlayerLuckTable.Designer.cs" />
<Compile Remove="GlobalManager\RoomManager.cs" />
<Compile Remove="GlobalManager\RoomManager_friend.cs" />
<Compile Remove="GlobalManager\RoomManager_gold.cs" />
<Compile Remove="GlobalManager\TingManager.cs" />
<Compile Remove="GlobalManager\TingManager_friend.cs" />
<Compile Remove="GlobalManager\TingManager_gold.cs" />
<Compile Remove="GlobalManager\GameInfo.cs" />
<Compile Remove="GlobalManager\GameInfoTab.cs" />
<Compile Remove="GlobalManager\GeneralSendPack.cs" />
<Compile Remove="GlobalManager\GameBase.cs" />
<Compile Remove="GlobalManager\GameDo.cs" />
<Compile Remove="Helper\**" />
<Compile Remove="Manager\**" />
<Compile Remove="Queue\**" />
<Compile Remove="Robot\**" />
<Compile Remove="Shadow\**" />
<EmbeddedResource Remove="GlobalManager\GameControl.resx" />
<EmbeddedResource Remove="GlobalManager\GameTestTable.resx" />
<EmbeddedResource Remove="GlobalManager\PlayerLuckTable.resx" />
</ItemGroup>
<ItemGroup>
<Content Include="朋友房说明.txt" />
</ItemGroup>
</Project>