mirror of
https://github.com/aljazceru/breez-sdk-docs.git
synced 2025-12-17 05:44:20 +01:00
make it easier to use local packages
This commit is contained in:
17
snippets/csharp/README.md
Normal file
17
snippets/csharp/README.md
Normal file
@@ -0,0 +1,17 @@
|
||||
## Steps to compile the snippets locally
|
||||
1. Build a C# package
|
||||
- By running the publish-all-platforms CI in the breez-sdk repository (use dummy binaries)
|
||||
- or by downloading from nuget https://www.nuget.org/packages/Breez.Sdk
|
||||
2. Place it in the root folder
|
||||
|
||||
From the `snippets/csharp` folder run the following command (replace the version):
|
||||
```bash
|
||||
nuget add ../../Breez.Sdk.1.0.0.nupkg -Source ./packages
|
||||
```
|
||||
|
||||
Add a package reference to your local nuget package:
|
||||
```bash
|
||||
dotnet add package Breez.Sdk -s ./packages
|
||||
```
|
||||
|
||||
Happy coding
|
||||
@@ -6,10 +6,6 @@
|
||||
<Nullable>enable</Nullable>
|
||||
</PropertyGroup>
|
||||
|
||||
<PropertyGroup>
|
||||
<RestoreSources>$(RestoreSources);../../packages;https://api.nuget.org/v3/index.json</RestoreSources>
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<PackageReference Include="Breez.Sdk" Version="*" />
|
||||
</ItemGroup>
|
||||
|
||||
Reference in New Issue
Block a user