bond/cs/nuget/readme.txt

43 строки
1.8 KiB
Plaintext
Исходник Обычный вид История

2015-01-14 06:41:36 +03:00
About
=====
Bond is an open source, cross-platform, cross-language framework for working
with schematized data.
Bond is published on GitHub at https://github.com/Microsoft/bond/
The C# documentation is available at http://microsoft.github.io/bond/manual/bond_cs.html
The C# examples are at https://github.com/Microsoft/bond/tree/master/examples/cs/core
Bond codegen
============
The .bond schema files can be automatically built as part of a project by using
2015-01-25 23:59:25 +03:00
the BondCodegen build action (note that after installing the Bond package you may
2015-01-14 22:22:11 +03:00
need to reload the project before Visual Studio sees the new build action). The
generated .cs files will be implicitly compiled as part of the project.
2015-01-14 06:41:36 +03:00
You can customize the code generation by defining the following
properties/items in your project:
2015-01-25 23:59:25 +03:00
@BondCodegen : A Bond schema file (usually with a .bond extension)
2015-01-14 22:22:11 +03:00
%Options : Additional options to pass to the gbc compiler for this file
2015-01-14 06:41:36 +03:00
@BondImportDirectory : Directories to search for imported schemas
$BondOutputDirectory : Directory for generated files, by default IntermediateOutputPath
2015-01-14 22:22:11 +03:00
$BondOptions : Additional options to pass to the gbc compiler for this project
$BondCodegenMode : Code generation mode for gbc to use (default c#)
2015-01-14 06:41:36 +03:00
By default gbc is executed with `--jobs=-2` option to compile multiple .bond
files concurrently, using 2 fewer jobs than there are processor cores. You can
override this behaviour by setting a different value for `--jobs` option via
the `BondOptions` property.
2015-01-14 06:41:36 +03:00
For details see http://microsoft.github.io/bond/manual/bond_cs.html#code-generation
ReSharper
---------
ReSharper may not see the generated files as part of the project. As a workaround
2015-01-14 22:22:11 +03:00
you can add the files to the project explicitly and exclude them from the build.