-
Notifications
You must be signed in to change notification settings - Fork 328
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
We want to pack the packet definition xml files into the nuget.
- Loading branch information
Showing
4 changed files
with
17 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16,8 +16,8 @@ | |
<PackageTags>MUnique OpenMU MUOnline Network Packets</PackageTags> | ||
<PackageId>MUnique.OpenMU.Network.Packets</PackageId> | ||
<Description>This package contains message structs for the MMORPG "MU Online", which are primarily focused on the english version of Season 6 Episode 3.</Description> | ||
<PackageVersion>0.7.14</PackageVersion> | ||
<Version>0.7.14</Version> | ||
<PackageVersion>0.7.21</PackageVersion> | ||
<Version>0.7.21</Version> | ||
</PropertyGroup> | ||
|
||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'"> | ||
|
@@ -33,6 +33,14 @@ | |
<ProjectReference Include="..\MUnique.OpenMU.Network.csproj" /> | ||
</ItemGroup> | ||
|
||
<ItemGroup> | ||
<Content Include="**/*.xml" copyToOutput="true"> | ||
<IncludeInPackage>true</IncludeInPackage> | ||
<CopyToOutput>true</CopyToOutput> | ||
<BuildAction>Content</BuildAction> | ||
</Content> | ||
</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. | ||
|
@@ -55,6 +63,7 @@ | |
<XslTransformation OutputPaths="ServerToClient\ConnectionExtensions.cs" XmlInputPaths="ServerToClient\ServerToClientPackets.xml" XslInputPath="GenerateExtensions.xslt" Parameters="<Parameter Name='subNamespace' Value='ServerToClient'/>" /> | ||
<XslTransformation OutputPaths="ChatServer\ConnectionExtensions.cs" XmlInputPaths="ChatServer\ChatServerPackets.xml" XslInputPath="GenerateExtensions.xslt" Parameters="<Parameter Name='subNamespace' Value='ChatServer'/>" /> | ||
<XslTransformation OutputPaths="ConnectServer\ConnectionExtensions.cs" XmlInputPaths="ConnectServer\ConnectServerPackets.xml" XslInputPath="GenerateExtensions.xslt" Parameters="<Parameter Name='subNamespace' Value='ConnectServer'/>" /> | ||
|
||
<Exec Command="npx [email protected] ../../../docs/Packets/C*.md"></Exec> | ||
<Exec Command="npx xslt3 -xsl:GenerateMarkdownDocs.xslt -o:../../../docs/Packets/ClientToServer.md -s:ClientToServer/ClientToServerPackets.xml"></Exec> | ||
<Exec Command="npx xslt3 -xsl:GenerateMarkdownDocs.xslt -o:../../../docs/Packets/ServerToClient.md -s:ServerToClient/ServerToClientPackets.xml"></Exec> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters