Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/chwarr/export-bond-file-nuget
Example showing how to export a .bond file from a NuGet package
https://github.com/chwarr/export-bond-file-nuget
Last synced: 12 days ago
JSON representation
Example showing how to export a .bond file from a NuGet package
- Host: GitHub
- URL: https://github.com/chwarr/export-bond-file-nuget
- Owner: chwarr
- License: mit
- Created: 2021-02-05T20:14:11.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2021-02-05T20:15:33.000Z (almost 4 years ago)
- Last Synced: 2024-11-05T11:16:49.350Z (about 2 months ago)
- Language: C#
- Size: 2.93 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
A set of example projects that demonstrates how to create a NuGet package
that exports a .bond file that another project can use as a base.* lib-with-bond.csproj: produces the NuGet package "LibWithBond"
* includes the generated code for `SomeBase`
* includes the base.bond file so other projects can import it
* arranges for consuming projects to run Bond.CSharp's codegen
* adds the package's .bond files to `BondImportDirectory`
* consume-lib.csproj: uses the NuGet package produced by
lib-with-bond.csproj
* derives a struct from `SomeBase`
* instantiates that structThis example was created to answer the StackOverflow question [Compile .bond
files of projects using my NuGet package][1].# Build
```powershell
cd lib-with-bond
dotnet pack
cd ..\consume-lib
dotnet build
```# License
Copyright 2021 Microsoft
Released under the terms of the MIT license.
[1]: https://stackoverflow.com/questions/66038274/compile-bond-files-of-projects-using-my-nuget-package/