An open API service indexing awesome lists of open source software.

https://github.com/antelcat/flatbuffers

Auto-generate csharp codes from .fbs files
https://github.com/antelcat/flatbuffers

autogen code-generation csharp csharp-code flatbuffer flatbuffers roslyn

Last synced: 3 months ago
JSON representation

Auto-generate csharp codes from .fbs files

Awesome Lists containing this project

README

          

# Antelcat.FlatBuffers

Auto generate class from `.fbs` files

## Flatc download (Optional)

[Flatc binary](https://github.com/google/flatbuffers/releases)

## Usage

in `YourProject.csproj`

```xml








```

add `.fbs` files in to tag `AdditionalFiles`

then it will automated generate `.cs` files.

## Arguments
specified string will be appended to arguments to flatc

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

## Owns flatc?
if you already have flatc in your device.

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

to use your local version of flatc