Skip to content

Antelcat/FlatBuffers

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Antelcat.FlatBuffers

Auto generate class from .fbs files

Flatc download (Optional)

Flatc binary

Usage

in YourProject.csproj

<Project Sdk="Microsoft.NET.Sdk">
    
    <ItemGroup>
        <!--add package-->
        <PackageReference Include="Antelcat.FlatBuffers" Version="*.*.*" />
        
        <!--add .fbs files-->
        <AdditionalFiles Include="{path}/{to}/{your}/{fbs}.fbs"/>
    </ItemGroup>

</Project>

add .fbs files in to tag AdditionalFiles

then it will automated generate .cs files.

Arguments

specified string will be appended to arguments to flatc

[assembly:Antelcat.FlatBuffers.FlatcArguments("--cs-global-alias")]

Owns flatc?

if you already have flatc in your device.

[assembly:Antelcat.FlatBuffers.FlatcLocation("{path}/{to}/{your}/{flatc}")]

to use your local version of flatc

Packages

No packages published

Languages