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
This commit is contained in:
46
GameModule/GlobalManager/NamespaceStubs.cs
Normal file
46
GameModule/GlobalManager/NamespaceStubs.cs
Normal file
@ -0,0 +1,46 @@
|
||||
// Stub namespaces for Linux Console mode
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace GameDAL
|
||||
{
|
||||
namespace Backend { public class BMAdminDal { } public class DeskPlayerDal { } public class PlayerResInfo { } public class BMLogModel { } public class AuthorityType { } public class RandListMoneyInfo { } public class RewardModel { } }
|
||||
namespace Club { public class ClubDBUtil { } }
|
||||
namespace Eml { public class EmailManager { } }
|
||||
namespace FriendRoom { public class FightDataManager { } public class FightRecordManager { } public class Room { } }
|
||||
namespace Game { public class PlayerDB { } public class UserWarDataDal { } public class SessionUUID { } public class GoldStyle { } }
|
||||
namespace ServerInfo { public class GameSeridDic { } }
|
||||
}
|
||||
|
||||
namespace Server.DB
|
||||
{
|
||||
public class dbbase { }
|
||||
}
|
||||
|
||||
namespace Server.Module { }
|
||||
|
||||
namespace Server.MQ { }
|
||||
|
||||
namespace Server.AliyunSDK
|
||||
{
|
||||
public class AliyunServiceFactory { }
|
||||
}
|
||||
|
||||
namespace Server.Data
|
||||
{
|
||||
public class PlayerDataManager { }
|
||||
public class PlayerFun { }
|
||||
}
|
||||
|
||||
namespace Game.Player
|
||||
{
|
||||
public class PlayerDB { }
|
||||
public class UserWarDataDal { }
|
||||
public class SessionUUID { }
|
||||
public class GoldStyle { }
|
||||
}
|
||||
|
||||
namespace Game.Robot
|
||||
{
|
||||
public class RobotManager { }
|
||||
}
|
||||
Reference in New Issue
Block a user