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
- Host: GitHub
- URL: https://github.com/antelcat/flatbuffers
- Owner: Antelcat
- License: apache-2.0
- Created: 2024-10-16T07:49:20.000Z (12 months ago)
- Default Branch: main
- Last Pushed: 2025-04-06T05:44:23.000Z (6 months ago)
- Last Synced: 2025-07-19T08:52:41.112Z (3 months ago)
- Topics: autogen, code-generation, csharp, csharp-code, flatbuffer, flatbuffers, roslyn
- Language: C#
- Homepage:
- Size: 14.8 MB
- Stars: 1
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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