mirror of
https://github.com/google/flatbuffers.git
synced 2026-06-07 05:47:36 +00:00
* [C#] support Object API * fix sign-compare * fix indent * add new line before for loop. * using auto whenever possible * reduce the amout of blank lines. * wip: support vectors of union * done: support unions of vectors * set C# version to 4.0 * remove null propagation operator * remove auto property initializer * remove expression-bodied method * remove pattern matching * add Example2 to NetTest.sh * separate JavaUsage.md and CsharpUsage.md from JavaCsharpUsage.md * add C# Object based API notes. * support vs2010. * remove range based for loop. * remove System.Linq * fix indent * CreateSharedString to CreateString * check shared attribute * snake case
24 lines
1.1 KiB
Bash
24 lines
1.1 KiB
Bash
#!/bin/sh
|
|
|
|
# Testing C# on Linux using Mono.
|
|
|
|
mcs -debug -out:./fbnettest.exe \
|
|
../../net/FlatBuffers/*.cs ../MyGame/Example/*.cs ../MyGame/Example2/*.cs ../MyGame/*.cs ../union_vector/*.cs \
|
|
FlatBuffersTestClassAttribute.cs FlatBuffersTestMethodAttribute.cs Assert.cs FlatBuffersExampleTests.cs Program.cs ByteBufferTests.cs FlatBufferBuilderTests.cs FlatBuffersFuzzTests.cs FuzzTestData.cs Lcg.cs TestTable.cs
|
|
mono --debug ./fbnettest.exe
|
|
rm fbnettest.exe
|
|
rm Resources/monsterdata_cstest.mon
|
|
rm Resources/monsterdata_cstest_sp.mon
|
|
|
|
# Repeat with unsafe versions
|
|
|
|
mcs -debug -out:./fbnettest.exe \
|
|
-unsafe -d:UNSAFE_BYTEBUFFER \
|
|
../../net/FlatBuffers/*.cs ../MyGame/Example/*.cs ../MyGame/Example2/*.cs ../MyGame/*.cs ../union_vector/*.cs\
|
|
FlatBuffersTestClassAttribute.cs FlatBuffersTestMethodAttribute.cs Assert.cs FlatBuffersExampleTests.cs Program.cs ByteBufferTests.cs FlatBufferBuilderTests.cs FlatBuffersFuzzTests.cs FuzzTestData.cs Lcg.cs TestTable.cs
|
|
mono --debug ./fbnettest.exe
|
|
rm fbnettest.exe
|
|
rm Resources/monsterdata_cstest.mon
|
|
rm Resources/monsterdata_cstest_sp.mon
|
|
|