NextGenSoftware.Holochain.HoloNET.Client.TestHarness 1.0.1

There is a newer version of this package available.
See the version list below for details.
dotnet add package NextGenSoftware.Holochain.HoloNET.Client.TestHarness --version 1.0.1
NuGet\Install-Package NextGenSoftware.Holochain.HoloNET.Client.TestHarness -Version 1.0.1
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="NextGenSoftware.Holochain.HoloNET.Client.TestHarness" Version="1.0.1" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add NextGenSoftware.Holochain.HoloNET.Client.TestHarness --version 1.0.1
#r "nuget: NextGenSoftware.Holochain.HoloNET.Client.TestHarness, 1.0.1"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install NextGenSoftware.Holochain.HoloNET.Client.TestHarness as a Cake Addin
#addin nuget:?package=NextGenSoftware.Holochain.HoloNET.Client.TestHarness&version=1.0.1

// Install NextGenSoftware.Holochain.HoloNET.Client.TestHarness as a Cake Tool
#tool nuget:?package=NextGenSoftware.Holochain.HoloNET.Client.TestHarness&version=1.0.1

HoloNET Test Harness

Test Harness for HoloNET Holochain Client.

https://github.com/holochain-open-dev/holochain-client-csharp https://github.com/NextGenSoftwareUK/holochain-client-csharp

You need to clone the following repo: https://github.com/holochain/happ-build-tutorial

And follow the instructions here: https://github.com/holochain-open-dev/wiki/wiki/Installing-Holochain-Natively-On-Windows

Once you have Holochain setup on your machine and got the example hApp ready above, you need to copy it into a hApps folder in the root of the output folder (Debug or Release) where you installed this Test Harness package. HoloNET will be looking for it there.

The Test Harness sets the paths to the test hApp you compiled above using the following lines:

_holoNETClient.Config.FullPathToRootHappFolder = string.Concat(Environment.CurrentDirectory, @"\hApps\happ-build-tutorial-develop");
_holoNETClient.Config.FullPathToCompiledHappFolder = string.Concat(Environment.CurrentDirectory, @"\hApps\happ-build-tutorial-develop\workdir\happ");

Currently the Embedded option does not work properly (looks like hc needs more than just the hc.exe and holochain.exe to work properly), so the Test Harness uses the following:

_holoNETClient.Config.HolochainConductorMode = HolochainConductorModeEnum.UseSystemGlobal;

This is the default for HoloNET anyway so for people wishing to use HoloNET there is no need to set this.

Once we can get hc.exe and holochain.exe to work without having to install Holochain with the instructions above we can use the following:

_holoNETClient.Config.HolochainConductorMode = HolochainConductorModeEnum.UseEmbedded;

Finally, from within your app simply call the following method:

await TestHoloNETClientAsync();
Product Compatible and additional computed target framework versions.
.NET net6.0 is compatible.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 was computed.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
3.0.4 43 5/26/2024
3.0.3 88 5/5/2024
3.0.2 94 4/19/2024
2.2.0 172 5/22/2023
2.1.4 166 4/27/2023
2.1.3 202 4/2/2023
2.1.2 241 3/18/2023
2.1.0 252 2/6/2023
2.0.2 290 1/2/2023
2.0.1 267 12/29/2022
2.0.0 259 12/28/2022
1.3.1 395 10/7/2022
1.3.0 379 10/7/2022
1.2.0 369 10/6/2022
1.1.1 349 9/29/2022
1.1.0 397 9/29/2022
1.0.2 411 8/24/2022
1.0.1 417 8/24/2022
1.0.0 391 8/23/2022

Updated README and made bug fixes.