began Protobuf integration

This commit is contained in:
2025-04-06 17:45:54 +05:00
parent 2c094bab3b
commit 890166ebce
3 changed files with 31 additions and 0 deletions
@@ -14,5 +14,14 @@
<ItemGroup>
<PackageReference Include="DTLib.Web" Version="1.3.0"/>
<PackageReference Include="Google.Protobuf" Version="3.30.2" />
</ItemGroup>
<ItemGroup>
<Compile Include="obj\Protobuf\*.g.cs" />
</ItemGroup>
<Target Name="PreBuild" BeforeTargets="PreBuildEvent">
<Exec Command="sh -c &quot;mkdir -p obj/Protobuf &amp;&amp; protoc Protobuf/*.proto --csharp_out=obj/Protobuf --csharp_opt=file_extension=.g.cs&quot;" />
</Target>
</Project>