Skip to content

Commit

Permalink
Merge pull request #409 from Peefy/dotnet-sdk-guide
Browse files Browse the repository at this point in the history
docs: add dotnet sdk guide
  • Loading branch information
Peefy authored Jul 9, 2024
2 parents 357b2c9 + 2fd6cdf commit 083a50c
Show file tree
Hide file tree
Showing 4 changed files with 96 additions and 0 deletions.
24 changes: 24 additions & 0 deletions docs/reference/xlang-api/dotnet-api.md
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);
```
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);
```
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 versioned_docs/version-0.9/reference/xlang-api/dotnet-api.md
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);
```

0 comments on commit 083a50c

Please sign in to comment.