Skip to content
This repository was archived by the owner on Feb 8, 2025. It is now read-only.

Commit 7463a60

Browse files
authored
Update README.md
1 parent e2fa1c8 commit 7463a60

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

README.md

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ File1.cs
4141
.editorconfig
4242
```
4343

44-
### Writing (applies to Slnx 2.0)
44+
### Writing (applies to Slnx 2.0 and later)
4545
```cs
4646
using Slnx;
4747
using System.Text.Json;
@@ -70,6 +70,15 @@ var model = SlnxModel.Load(File.ReadAllText("OutputSlnx.txt"));
7070
Console.WriteLine(JsonSerializer.Serialize(model));
7171
```
7272

73+
Starting with Slnx 3.0, you can convert `SlnxModel` to `string` asynchronously:
74+
```cs
75+
// ...
76+
factory.AddProjectWithPathOnly("App/App.shproj");
77+
78+
string content = await factory.AsModel().StoreAsync(); // <---
79+
File.AppendAllText("OutputSlnx.txt", content);
80+
```
81+
7382
### Writing (applies to Slnx 1.0)
7483
```cs
7584
using Slnx;

0 commit comments

Comments
 (0)