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
78 lines
2.8 KiB
XML
78 lines
2.8 KiB
XML
<Project Sdk="Microsoft.NET.Sdk">
|
|
<PropertyGroup>
|
|
<TargetFramework>net10.0</TargetFramework>
|
|
<OutputType>Library</OutputType>
|
|
<RootNamespace>GameDAL</RootNamespace>
|
|
<AssemblyName>GameDAL</AssemblyName>
|
|
<LangVersion>8.0</LangVersion>
|
|
<GenerateAssemblyInfo>false</GenerateAssemblyInfo>
|
|
<Prefer32Bit>false</Prefer32Bit>
|
|
<Configurations>Debug;Release</Configurations>
|
|
</PropertyGroup>
|
|
|
|
<PropertyGroup Condition="'$(Configuration)' == 'Debug'">
|
|
<DebugSymbols>true</DebugSymbols>
|
|
<DebugType>pdbonly</DebugType>
|
|
<Optimize>false</Optimize>
|
|
<CheckForOverflowUnderflow>true</CheckForOverflowUnderflow>
|
|
<DefineConstants>DEBUG;TRACE;Server</DefineConstants>
|
|
</PropertyGroup>
|
|
|
|
<PropertyGroup Condition="'$(Configuration)' == 'Release'">
|
|
<DebugSymbols>false</DebugSymbols>
|
|
<DebugType>none</DebugType>
|
|
<Optimize>false</Optimize>
|
|
<CheckForOverflowUnderflow>false</CheckForOverflowUnderflow>
|
|
<DefineConstants>TRACE;Server</DefineConstants>
|
|
</PropertyGroup>
|
|
|
|
<ItemGroup>
|
|
<PackageReference Include="Dapper" />
|
|
<PackageReference Include="System.Data.SQLite.Core" />
|
|
<PackageReference Include="Microsoft.Bcl.AsyncInterfaces" />
|
|
<PackageReference Include="Newtonsoft.Json" />
|
|
<PackageReference Include="System.Runtime.CompilerServices.Unsafe" />
|
|
<PackageReference Include="System.Threading.Tasks.Extensions" />
|
|
</ItemGroup>
|
|
|
|
<ItemGroup>
|
|
<Reference Include="StackExchange.Redis">
|
|
<HintPath>..\dll\StackExchange.Redis.dll</HintPath>
|
|
<Private>true</Private>
|
|
</Reference>
|
|
</ItemGroup>
|
|
|
|
<ItemGroup>
|
|
<ProjectReference Include="..\CloudAPI\CloudAPI.csproj" />
|
|
<ProjectReference Include="..\Core\Core.csproj" />
|
|
<ProjectReference Include="..\NetWorkMessage\NetWorkMessage.csproj" />
|
|
<ProjectReference Include="..\ObjectModel\ObjectModel.csproj" />
|
|
<ProjectReference Include="..\ServerCore\ServerCore.csproj" />
|
|
<ProjectReference Include="..\ServerData\ServerData.csproj" />
|
|
</ItemGroup>
|
|
|
|
<ItemGroup>
|
|
<None Update="db\redis\RedisTable.txt">
|
|
<LastGenOutput>RedisTable.txt</LastGenOutput>
|
|
</None>
|
|
<None Remove="Club\**" />
|
|
<None Remove="Eml\**" />
|
|
</ItemGroup>
|
|
|
|
<ItemGroup>
|
|
<Folder Include="DBCore\DB\" />
|
|
<Folder Include="Game\Promoter\" />
|
|
<Folder Include="Web\" />
|
|
</ItemGroup>
|
|
|
|
<ItemGroup>
|
|
<Compile Remove="Club\**" />
|
|
<Compile Remove="Eml\**" />
|
|
<Compile Remove="db\Sql\**" />
|
|
</ItemGroup>
|
|
|
|
<ItemGroup>
|
|
<EmbeddedResource Remove="Club\**" />
|
|
<EmbeddedResource Remove="Eml\**" />
|
|
</ItemGroup>
|
|
</Project> |