bond/cs/nuget/readme.txt

38 строки
1.5 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-14 22:22:11 +03:00
BondCodegen build action (note that after installing the Bond package you may
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:
@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
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.