73 lines
2.7 KiB
XML
73 lines
2.7 KiB
XML
<Project Sdk="Microsoft.NET.Sdk">
|
|
<PropertyGroup>
|
|
<TargetFramework>net8.0</TargetFramework>
|
|
<ImplicitUsings>enable</ImplicitUsings>
|
|
<Nullable>enable</Nullable>
|
|
<UserSecretsId>54783c90-d68f-44ae-9706-9bb7f7654d7d</UserSecretsId>
|
|
<Configurations>Debug;Release;Shipping</Configurations>
|
|
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
|
|
<NoWarn>8600,8602,8603</NoWarn>
|
|
<ManagePackageVersionsCentrally>true</ManagePackageVersionsCentrally>
|
|
</PropertyGroup>
|
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'">
|
|
<DebugType>full</DebugType>
|
|
<DefineConstants>$(DefineConstants);</DefineConstants>
|
|
</PropertyGroup>
|
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|AnyCPU'">
|
|
<DebugType>full</DebugType>
|
|
<DefineConstants>$(DefineConstants);</DefineConstants>
|
|
</PropertyGroup>
|
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Shipping|AnyCPU'">
|
|
<DebugType>full</DebugType>
|
|
<DefineConstants>$(DefineConstants);</DefineConstants>
|
|
<Optimize>true</Optimize>
|
|
</PropertyGroup>
|
|
<ItemGroup>
|
|
<PackageReference Include="DumpExtensions" />
|
|
<PackageReference Include="Google.Protobuf" />
|
|
<PackageReference Include="Microsoft.Extensions.Configuration.UserSecrets" />
|
|
</ItemGroup>
|
|
<ItemGroup>
|
|
<None Update="ClientToServer.PIDL">
|
|
<Generator />
|
|
</None>
|
|
<None Update="proto\ClientToChat.proto">
|
|
<Generator />
|
|
</None>
|
|
<None Update="proto\ClientToGame.proto">
|
|
<Generator />
|
|
</None>
|
|
<None Update="proto\ClientToLogin.proto">
|
|
<Generator />
|
|
</None>
|
|
<None Update="proto\Define_Common.proto">
|
|
<Generator />
|
|
</None>
|
|
<None Update="proto\ServerMessage.proto">
|
|
<Generator />
|
|
</None>
|
|
</ItemGroup>
|
|
<ItemGroup>
|
|
<Folder Include="out-RMI\" />
|
|
</ItemGroup>
|
|
<ItemGroup>
|
|
<Reference Include="ProudDotNetClient">
|
|
<HintPath>..\..\ThirdPartyPackages\ProudNet\1.9.58941\ProudNet\lib\DotNet\ProudDotNetClient.dll</HintPath>
|
|
</Reference>
|
|
<Reference Include="ProudDotNetServer">
|
|
<HintPath>..\..\ThirdPartyPackages\ProudNet\1.9.58941\ProudNet\lib\DotNet\ProudDotNetServer.dll</HintPath>
|
|
</Reference>
|
|
</ItemGroup>
|
|
<Target Name="PreBuild" BeforeTargets="PreBuildEvent">
|
|
<ItemGroup>
|
|
<GeneratedProtoFiles Include="out-Proto\*.cs" />
|
|
<GeneratedRMIFiles Include="out-RMI\*.cs" />
|
|
</ItemGroup>
|
|
<Exec Command="call proto_build.bat
|
|
call pidl_build.bat
|
|
call client_proto_build.bat" Condition="$([MSBuild]::IsOSPlatform('Windows'))"/>
|
|
<Exec Command="chmod +x proto_build.sh; ./proto_build.sh;chmod +x pidl_build.sh; ./pidl_build.sh;chmod +x client_proto_build.sh; ./client_proto_build.sh;"
|
|
Condition="$([MSBuild]::IsOSPlatform('Linux'))" />
|
|
</Target>
|
|
</Project>
|