-
Notifications
You must be signed in to change notification settings - Fork 35
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #409 from Peefy/dotnet-sdk-guide
docs: add dotnet sdk guide
- Loading branch information
Showing
4 changed files
with
96 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
--- | ||
sidebar_position: 5 | ||
--- | ||
|
||
# .NET API | ||
|
||
## Installation | ||
|
||
```shell | ||
dotnet add package KclLib | ||
``` | ||
|
||
## Quick Start | ||
|
||
```typescript | ||
using KclLib.API; | ||
|
||
var api = new API(); | ||
var execArgs = new ExecProgram_Args(); | ||
var path = Path.Combine("test_data", "schema.k"); | ||
execArgs.KFilenameList.Add(path); | ||
var result = api.ExecProgram(execArgs); | ||
Console.WriteLine(result.YamlResult); | ||
``` |
24 changes: 24 additions & 0 deletions
24
.../zh-CN/docusaurus-plugin-content-docs/current/reference/xlang-api/dotnet-api.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
--- | ||
sidebar_position: 5 | ||
--- | ||
|
||
# .NET API | ||
|
||
## 添加依赖 | ||
|
||
```shell | ||
dotnet add package KclLib | ||
``` | ||
|
||
## 快速开始 | ||
|
||
```typescript | ||
using KclLib.API; | ||
|
||
var api = new API(); | ||
var execArgs = new ExecProgram_Args(); | ||
var path = Path.Combine("test_data", "schema.k"); | ||
execArgs.KFilenameList.Add(path); | ||
var result = api.ExecProgram(execArgs); | ||
Console.WriteLine(result.YamlResult); | ||
``` |
24 changes: 24 additions & 0 deletions
24
...CN/docusaurus-plugin-content-docs/version-0.9/reference/xlang-api/dotnet-api.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
--- | ||
sidebar_position: 5 | ||
--- | ||
|
||
# .NET API | ||
|
||
## 添加依赖 | ||
|
||
```shell | ||
dotnet add package KclLib | ||
``` | ||
|
||
## 快速开始 | ||
|
||
```typescript | ||
using KclLib.API; | ||
|
||
var api = new API(); | ||
var execArgs = new ExecProgram_Args(); | ||
var path = Path.Combine("test_data", "schema.k"); | ||
execArgs.KFilenameList.Add(path); | ||
var result = api.ExecProgram(execArgs); | ||
Console.WriteLine(result.YamlResult); | ||
``` |
24 changes: 24 additions & 0 deletions
24
versioned_docs/version-0.9/reference/xlang-api/dotnet-api.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
--- | ||
sidebar_position: 5 | ||
--- | ||
|
||
# .NET API | ||
|
||
## Installation | ||
|
||
```shell | ||
dotnet add package KclLib | ||
``` | ||
|
||
## Quick Start | ||
|
||
```typescript | ||
using KclLib.API; | ||
|
||
var api = new API(); | ||
var execArgs = new ExecProgram_Args(); | ||
var path = Path.Combine("test_data", "schema.k"); | ||
execArgs.KFilenameList.Add(path); | ||
var result = api.ExecProgram(execArgs); | ||
Console.WriteLine(result.YamlResult); | ||
``` |