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:
@ -1,199 +1,149 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk.WindowsDesktop">
|
||||
<PropertyGroup>
|
||||
<TargetFramework>net48</TargetFramework>
|
||||
<OutputType>Library</OutputType>
|
||||
<RootNamespace>GlobalSever</RootNamespace>
|
||||
<AssemblyName>GlobalSever</AssemblyName>
|
||||
<LangVersion>8.0</LangVersion>
|
||||
<Platforms>AnyCPU</Platforms>
|
||||
<UseWindowsForms>true</UseWindowsForms>
|
||||
<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="..\GameDAL\GameDAL.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>
|
||||
<Compile Update="Form\GameInfoTable.cs">
|
||||
<SubType>UserControl</SubType>
|
||||
</Compile>
|
||||
<Compile Update="Form\GameInfoTable.Designer.cs">
|
||||
<DependentUpon>GameInfoTable.cs</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Update="Form\GeneralTable.cs">
|
||||
<SubType>UserControl</SubType>
|
||||
</Compile>
|
||||
<Compile Update="Form\GeneralTable.Designer.cs">
|
||||
<DependentUpon>GeneralTable.cs</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Update="Form\logTable.cs">
|
||||
<SubType>UserControl</SubType>
|
||||
</Compile>
|
||||
<Compile Update="Form\logTable.Designer.cs">
|
||||
<DependentUpon>logTable.cs</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Update="Form\ServerTable.cs">
|
||||
<SubType>UserControl</SubType>
|
||||
</Compile>
|
||||
<Compile Update="Form\ServerTable.Designer.cs">
|
||||
<DependentUpon>ServerTable.cs</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Update="Form\TestTab.cs">
|
||||
<SubType>UserControl</SubType>
|
||||
</Compile>
|
||||
<Compile Update="Form\TestTab.Designer.cs">
|
||||
<DependentUpon>TestTab.cs</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Update="Form\ServerForm.cs">
|
||||
<SubType>Form</SubType>
|
||||
</Compile>
|
||||
<Compile Update="Form\ServerForm.Designer.cs">
|
||||
<DependentUpon>ServerForm.cs</DependentUpon>
|
||||
</Compile>
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<EmbeddedResource Update="Form\GameInfoTable.resx">
|
||||
<DependentUpon>GameInfoTable.cs</DependentUpon>
|
||||
</EmbeddedResource>
|
||||
<EmbeddedResource Update="Form\GeneralTable.resx">
|
||||
<DependentUpon>GeneralTable.cs</DependentUpon>
|
||||
<SubType>Designer</SubType>
|
||||
</EmbeddedResource>
|
||||
<EmbeddedResource Update="Form\logTable.resx">
|
||||
<DependentUpon>logTable.cs</DependentUpon>
|
||||
</EmbeddedResource>
|
||||
<EmbeddedResource Update="Form\ServerForm.resx">
|
||||
<DependentUpon>ServerForm.cs</DependentUpon>
|
||||
<SubType>Designer</SubType>
|
||||
</EmbeddedResource>
|
||||
<EmbeddedResource Update="Form\ServerTable.resx">
|
||||
<DependentUpon>ServerTable.cs</DependentUpon>
|
||||
</EmbeddedResource>
|
||||
<EmbeddedResource Update="Form\TestTab.resx">
|
||||
<DependentUpon>TestTab.cs</DependentUpon>
|
||||
</EmbeddedResource>
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<Content Include="接口.txt" />
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<Folder Include="Core\ActivityData\" />
|
||||
<Folder Include="Helper\" />
|
||||
<Folder Include="SDK\AliyunSDK\SLSLog\GameStatistics\" />
|
||||
</ItemGroup>
|
||||
<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>
|
||||
Reference in New Issue
Block a user