Auto generate class from .fbs files
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.
specified string will be appended to arguments to flatc
[assembly:Antelcat.FlatBuffers.FlatcArguments("--cs-global-alias")]if you already have flatc in your device.
[assembly:Antelcat.FlatBuffers.FlatcLocation("{path}/{to}/{your}/{flatc}")]to use your local version of flatc