mirror of
https://github.com/sven-n/MuMain
synced 2026-08-15 20:32:27 -04:00
66 lines
7.3 KiB
XML
66 lines
7.3 KiB
XML
<Project Sdk="Microsoft.NET.Sdk">
|
|
|
|
<PropertyGroup>
|
|
<TargetFramework>net10.0</TargetFramework>
|
|
<!-- Platform and PlatformTarget are set by CMake via command line -->
|
|
<Nullable>enable</Nullable>
|
|
<SupportNativeAot>true</SupportNativeAot>
|
|
<IsAotCompatible>true</IsAotCompatible>
|
|
<PublishAot>true</PublishAot>
|
|
<OptimizationPreference>Speed</OptimizationPreference>
|
|
<AppendTargetFrameworkToOutputPath>false</AppendTargetFrameworkToOutputPath>
|
|
<AppendRuntimeIdentifierToOutputPath>false</AppendRuntimeIdentifierToOutputPath>
|
|
|
|
<AllowUnsafeBlocks>True</AllowUnsafeBlocks>
|
|
<WarningsAsErrors>nullable;CS4014;VSTHRD110;VSTHRD100</WarningsAsErrors>
|
|
<GenerateDocumentationFile>True</GenerateDocumentationFile>
|
|
</PropertyGroup>
|
|
|
|
<ItemGroup>
|
|
<PackageReference Include="Microsoft.VisualStudio.Threading.Analyzers" Version="17.11.20">
|
|
<PrivateAssets>all</PrivateAssets>
|
|
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
|
|
</PackageReference>
|
|
<PackageReference Include="StyleCop.Analyzers" Version="1.2.0-beta.435">
|
|
<PrivateAssets>all</PrivateAssets>
|
|
<IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets>
|
|
</PackageReference>
|
|
</ItemGroup>
|
|
|
|
<ItemGroup>
|
|
<PackageReference Include="MUnique.OpenMU.Network.Packets" Version="0.9.9" />
|
|
<PackageReference Include="Pipelines.Sockets.Unofficial" Version="2.2.8" />
|
|
</ItemGroup>
|
|
|
|
<ItemGroup>
|
|
<AdditionalFiles Include="..\stylecop.json" Link="stylecop.json" />
|
|
<None Include="..\.editorconfig" Link=".editorconfig" />
|
|
</ItemGroup>
|
|
|
|
|
|
<Target Name="PreBuild" BeforeTargets="PreBuildEvent" Condition="'$(ci)'!='true'">
|
|
<!-- We only run the transformation locally on our dev environment with visual studio.
|
|
The CI environment is identified by the parameter 'ci'. It's set in the azure pipelines and Dockerfile.
|
|
If you run into errors here under Linux/Mac OS, it might help to add this parameter, too. -->
|
|
<XslTransformation OutputPaths="ConnectionManager.ClientToServerFunctions.cs" XmlInputPaths="$(NuGetPackageRoot)\munique.openmu.network.packets\0.9.9\contentFiles\any\net10.0\ClientToServer\ClientToServerPackets.xml" XslInputPath="GenerateExtensionsDotNet.xslt" Parameters="<Parameter Name='subNamespace' Value='ClientToServer'/>" />
|
|
<XslTransformation OutputPaths="ConnectionManager.ChatServerFunctions.cs" XmlInputPaths="$(NuGetPackageRoot)\munique.openmu.network.packets\0.9.9\contentFiles\any\net10.0\ChatServer\ChatServerPackets.xml" XslInputPath="GenerateExtensionsDotNet.xslt" Parameters="<Parameter Name='subNamespace' Value='ChatServer'/>" />
|
|
<XslTransformation OutputPaths="ConnectionManager.ConnectServerFunctions.cs" XmlInputPaths="$(NuGetPackageRoot)\munique.openmu.network.packets\0.9.9\contentFiles\any\net10.0\ConnectServer\ConnectServerPackets.xml" XslInputPath="GenerateExtensionsDotNet.xslt" Parameters="<Parameter Name='subNamespace' Value='ConnectServer'/>" />
|
|
|
|
<XslTransformation OutputPaths="..\src\source\Dotnet\PacketFunctions_CommonEnums.h" XmlInputPaths="$(NuGetPackageRoot)\munique.openmu.network.packets\0.9.9\contentFiles\any\net10.0\CommonEnums.xml" XslInputPath="GenerateEnums.xslt" Parameters="<Parameter Name='subNamespace' Value='CommonEnums'/>" />
|
|
<XslTransformation OutputPaths="..\src\source\Dotnet\PacketFunctions_ClientToServer_Enums.h" XmlInputPaths="$(NuGetPackageRoot)\munique.openmu.network.packets\0.9.9\contentFiles\any\net10.0\ClientToServer\ClientToServerPackets.xml" XslInputPath="GenerateEnums.xslt" Parameters="<Parameter Name='subNamespace' Value='ClientToServer'/>" />
|
|
<XslTransformation OutputPaths="..\src\source\Dotnet\PacketFunctions_ChatServer_Enums.h" XmlInputPaths="$(NuGetPackageRoot)\munique.openmu.network.packets\0.9.9\contentFiles\any\net10.0\ChatServer\ChatServerPackets.xml" XslInputPath="GenerateEnums.xslt" Parameters="<Parameter Name='subNamespace' Value='ChatServer'/>" />
|
|
<XslTransformation OutputPaths="..\src\source\Dotnet\PacketFunctions_ConnectServer_Enums.h" XmlInputPaths="$(NuGetPackageRoot)\munique.openmu.network.packets\0.9.9\contentFiles\any\net10.0\ConnectServer\ConnectServerPackets.xml" XslInputPath="GenerateEnums.xslt" Parameters="<Parameter Name='subNamespace' Value='ConnectServer'/>" />
|
|
|
|
<XslTransformation OutputPaths="..\src\source\Dotnet\PacketFunctions_ClientToServer.h" XmlInputPaths="$(NuGetPackageRoot)\munique.openmu.network.packets\0.9.9\contentFiles\any\net10.0\ClientToServer\ClientToServerPackets.xml" XslInputPath="GenerateFunctionsHeader.xslt" Parameters="<Parameter Name='subNamespace' Value='ClientToServer'/>" />
|
|
<XslTransformation OutputPaths="..\src\source\Dotnet\PacketFunctions_ChatServer.h" XmlInputPaths="$(NuGetPackageRoot)\munique.openmu.network.packets\0.9.9\contentFiles\any\net10.0\ChatServer\ChatServerPackets.xml" XslInputPath="GenerateFunctionsHeader.xslt" Parameters="<Parameter Name='subNamespace' Value='ChatServer'/>" />
|
|
<XslTransformation OutputPaths="..\src\source\Dotnet\PacketFunctions_ConnectServer.h" XmlInputPaths="$(NuGetPackageRoot)\munique.openmu.network.packets\0.9.9\contentFiles\any\net10.0\ConnectServer\ConnectServerPackets.xml" XslInputPath="GenerateFunctionsHeader.xslt" Parameters="<Parameter Name='subNamespace' Value='ConnectServer'/>" />
|
|
|
|
<XslTransformation OutputPaths="..\src\source\Dotnet\PacketFunctions_ClientToServer.cpp" XmlInputPaths="$(NuGetPackageRoot)\munique.openmu.network.packets\0.9.9\contentFiles\any\net10.0\ClientToServer\ClientToServerPackets.xml" XslInputPath="GenerateFunctions.xslt" Parameters="<Parameter Name='subNamespace' Value='ClientToServer'/>" />
|
|
<XslTransformation OutputPaths="..\src\source\Dotnet\PacketFunctions_ChatServer.cpp" XmlInputPaths="$(NuGetPackageRoot)\munique.openmu.network.packets\0.9.9\contentFiles\any\net10.0\ChatServer\ChatServerPackets.xml" XslInputPath="GenerateFunctions.xslt" Parameters="<Parameter Name='subNamespace' Value='ChatServer'/>" />
|
|
<XslTransformation OutputPaths="..\src\source\Dotnet\PacketFunctions_ConnectServer.cpp" XmlInputPaths="$(NuGetPackageRoot)\munique.openmu.network.packets\0.9.9\contentFiles\any\net10.0\ConnectServer\ConnectServerPackets.xml" XslInputPath="GenerateFunctions.xslt" Parameters="<Parameter Name='subNamespace' Value='ConnectServer'/>" />
|
|
|
|
<XslTransformation OutputPaths="..\src\source\Dotnet\PacketBindings_ClientToServer.h" XmlInputPaths="$(NuGetPackageRoot)\munique.openmu.network.packets\0.9.9\contentFiles\any\net10.0\ClientToServer\ClientToServerPackets.xml" XslInputPath="GenerateBindingsHeader.xslt" Parameters="<Parameter Name='subNamespace' Value='ClientToServer'/>" />
|
|
<XslTransformation OutputPaths="..\src\source\Dotnet\PacketBindings_ChatServer.h" XmlInputPaths="$(NuGetPackageRoot)\munique.openmu.network.packets\0.9.9\contentFiles\any\net10.0\ChatServer\ChatServerPackets.xml" XslInputPath="GenerateBindingsHeader.xslt" Parameters="<Parameter Name='subNamespace' Value='ChatServer'/>" />
|
|
<XslTransformation OutputPaths="..\src\source\Dotnet\PacketBindings_ConnectServer.h" XmlInputPaths="$(NuGetPackageRoot)\munique.openmu.network.packets\0.9.9\contentFiles\any\net10.0\ConnectServer\ConnectServerPackets.xml" XslInputPath="GenerateBindingsHeader.xslt" Parameters="<Parameter Name='subNamespace' Value='ConnectServer'/>" />
|
|
</Target>
|
|
</Project>
|