Cassowary.CSharp 2.0.0

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

// Install Cassowary.CSharp as a Cake Tool
#tool nuget:?package=Cassowary.CSharp&version=2.0.0                

cassowary-csharp

Build Status

This is a C# implementation of the Cassowary constraint solving algorithm (Badros et. al 2001). It is based heavily on the implementation for Rust at dylanede/cassowary-rs. The implementation does however differ in some details.

Cassowary is designed for solving constraints to lay out user interfaces. Constraints typically take the form "this button must line up with this text box", or "this box should try to be 3 times the size of this other box". Its most popular incarnation by far is in Apple's Autolayout system for Mac OS X and iOS user interfaces. UI libraries using the Cassowary algorithm manage to achieve a much more natural approach to specifying UI layouts than traditional approaches like those found in HTML.

This library is a low level interface to the solving algorithm, though it tries to be as convenient as possible. As a result it does not have any intrinsic knowledge of common user interface conventions like rectangular regions or even two dimensions. These abstractions belong in a higher level crate.

Getting Started

Add the following to your csproj file:

dotnet add package cassowary-csharp

License

Cassowary is licensed under the GNU GENERAL PUBLIC LICENSE license.

Product Compatible and additional computed target framework versions.
.NET net8.0 is compatible.  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.
  • net8.0

    • No dependencies.

NuGet packages (1)

Showing the top 1 NuGet packages that depend on Cassowary.CSharp:

Package Downloads
Boto

Build terminal user interfaces and dashboards using C#

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
2.0.0 189 4/22/2024
1.0.2 99 4/22/2024
1.0.1 271 6/13/2023
0.1.5 309 4/9/2023
0.1.2-tags-v0-1-2-beta0001 131 4/8/2023
0.1.1-tags-v0-1-1-beta0001 138 3/24/2023
0.1.0-beta 141 3/17/2023