Skip to content

Commit 4c45653

Browse files
authored
Merge pull request #42 from microsoft/jessecol/dotnet-addon-2
Add support for creating a C# addon to create-addon command
2 parents 4fcd600 + 9d58b4a commit 4c45653

39 files changed

+1352
-32
lines changed

README.md

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ npx winapp --help
9898

9999
**Node.js/Electron Specific:**
100100

101-
- [`node create-addon`](./docs/usage.md#node-create-addon) - Generate native C++ addons
101+
- [`node create-addon`](./docs/usage.md#node-create-addon) - Generate native C# or C++ addons
102102
- [`node add-electron-debug-identity`](./docs/usage.md#node-add-electron-debug-identity) - Add identity to Electron processes
103103

104104
The full CLI usage can be found here: [Documentation](/docs/usage.md)
@@ -128,6 +128,14 @@ This project has adopted the [Microsoft Open Source Code of Conduct](https://ope
128128
For more information see the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) or
129129
contact [opencode@microsoft.com](mailto:opencode@microsoft.com) with any additional questions or comments.
130130

131+
To build the CLI:
132+
```
133+
# Build the CLI and package for npm from the repo root
134+
.\scripts\build-cli.ps1
135+
```
136+
137+
The binaries and packages will be placed in the `artifacts` folder
138+
131139
## Trademarks
132140

133141
This project may contain trademarks or logos for projects, products, or services. Authorized use of Microsoft

docs/usage.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -368,7 +368,7 @@ npx winapp node create-addon [options]
368368
**Options:**
369369

370370
- `--name <name>` - Addon name (default: "nativeWindowsAddon")
371-
- `--template` - Select type of addon. Options are `cs` or `cpp`
371+
- `--template` - Select type of addon. Options are `cs` or `cpp` (default: `cpp`)
372372
- `--verbose` - Enable verbose output
373373

374374
**What it does:**

samples/electron/.gitignore

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,3 +96,9 @@ out/
9696

9797
# Development certificate
9898
devcert.pfx
99+
100+
# C# build artifacts
101+
bin/
102+
obj/
103+
*.user
104+
*.suo
963 Bytes
Loading
3.37 KB
Loading
12.1 KB
Loading
92.8 KB
Loading
963 Bytes
Loading
3.56 KB
Loading
401 Bytes
Loading

0 commit comments

Comments
 (0)