Tycho 3.0.0

dotnet add package Tycho --version 3.0.0
NuGet\Install-Package Tycho -Version 3.0.0
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="Tycho" Version="3.0.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Tycho --version 3.0.0
#r "nuget: Tycho, 3.0.0"
#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 Tycho as a Cake Addin
#addin nuget:?package=Tycho&version=3.0.0

// Install Tycho as a Cake Tool
#tool nuget:?package=Tycho&version=3.0.0

Tycho is a lightweight application framework focused on driving system modularity. It is based on the concept of component self-similarity.

A Tycho application is built from modules which can be self-standing entities or be built from other modules - forming a possibly complex hierarchy. Tycho lets you reason about a module at any level of the hierarchy in complete isolation - you should only care about its interface, contract and direct substructure - the properties that define each Tycho module.

See it in action

Check out

How to use

Define your modules

public sealed class AppModule : TychoModule
{
    protected override void DeclareIncomingMessages(IInboxDefinition module, IServiceProvider services)
    {
        // Declare the interface that your module exposes to its clients
    }

    protected override void DeclareOutgoingMessages(IOutboxDefinition module, IServiceProvider services) 
    { 
        // Declare the contract that your module requires its clients to fulfill
    }

    protected override void IncludeSubmodules(ISubstructureDefinition module, IServiceProvider services)
    {
        // Define the submodules that your module will be using
    }

    protected override void RegisterServices(IServiceCollection services) 
    {
        // Configure the services required by your module's code
    }
}

Build the app

var app = await new AppModule()
    .FulfillContract(consumer =>
    {
        // Handle the messages sent by your app (if any)
    })
    .Configure(configurationBuilder =>
    {
        // Provide configuration data for your app
    }
    .Build();

Do the work

app.Publish<SomeEvent>(new());
await app.Execute<SomeCommand>(new());
await app.Execute<SomeQuery, Response>(new());
Product Compatible and additional computed target framework versions.
.NET net5.0 was computed.  net5.0-windows was computed.  net6.0 was computed.  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. 
.NET Core netcoreapp3.0 was computed.  netcoreapp3.1 was computed. 
.NET Standard netstandard2.1 is compatible. 
MonoAndroid monoandroid was computed. 
MonoMac monomac was computed. 
MonoTouch monotouch was computed. 
Tizen tizen60 was computed. 
Xamarin.iOS xamarinios was computed. 
Xamarin.Mac xamarinmac was computed. 
Xamarin.TVOS xamarintvos was computed. 
Xamarin.WatchOS xamarinwatchos 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.0 92 1/21/2024
2.1.0 235 2/9/2023
2.0.0 217 2/9/2023
1.3.0 264 1/28/2023
1.2.0 251 1/27/2023
1.1.0 390 1/27/2023