Morris.Moxy 1.8.0-Beta2

Prefix Reserved
This is a prerelease version of Morris.Moxy.
There is a newer version of this package available.
See the version list below for details.
dotnet add package Morris.Moxy --version 1.8.0-Beta2                
NuGet\Install-Package Morris.Moxy -Version 1.8.0-Beta2                
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="Morris.Moxy" Version="1.8.0-Beta2" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Morris.Moxy --version 1.8.0-Beta2                
#r "nuget: Morris.Moxy, 1.8.0-Beta2"                
#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 Morris.Moxy as a Cake Addin
#addin nuget:?package=Morris.Moxy&version=1.8.0-Beta2&prerelease

// Install Morris.Moxy as a Cake Tool
#tool nuget:?package=Morris.Moxy&version=1.8.0-Beta2&prerelease                

Morris.Moxy

alternate text is missing from this package README image

Morris.Moxy is a code mix-in code generator for Microsoft .NET

NuGet version (PackageName)

Overview

Moxy allows you to write code templates at development time, which are then processed as Roslyn code-generators in real-time, and the results mixed-in to target classes.

Goal

  1. Write your code patterns once.
namespace {{ moxy.Class.Namespace }}
{
  partial class {{ moxy.Class.Name}}
  {
    public string FullName => $"{Salutation} {GivenName} {FamilyName}"
    public string Salutation { get; set; }
    public string GivenName { get; set; }
    public string FamilyName { get; set; }
  }
}
  1. Moxy automatically creates a .Net attribute for each pattern, which you can then apply to multiple targets in your source code.
[PersonName]
public partial class Contact
{
}
  1. The Moxy Roslyn code-generator executes the code pattern to generate additional C# code
namespace MyApp
{
    partial class Contact
    {
        public string FullName => $"{Salutation} {GivenName} {FamilyName}"
        public string Salutation { get; set; }
        public string GivenName { get; set; }
        public string FamilyName { get; set; }
    }
}
  1. Moxy is FAST. Changes to the template should reflect in the code in real-time. No need to recompile C# source code between changes.

Getting started

The easiest way to get started is to read the documentation. Which includes tutorials that are numbered in an order recommended for learning Morris.Moxy. Each will have a README file that explains how the tutorial was created.

Installation

You can download the latest release / pre-release NuGet packages from the official Morris.Moxy Nuget page

Release notes

See the Releases page for release history.

Licence

MIT

There are no supported framework assets in this package.

Learn more about Target Frameworks and .NET Standard.

  • .NETStandard 2.0

    • No dependencies.

NuGet packages (1)

Showing the top 1 NuGet packages that depend on Morris.Moxy:

Package Downloads
Spice86.Core

Reverse engineer and rewrite real mode dos programs

GitHub repositories (1)

Showing the top 1 popular GitHub repositories that depend on Morris.Moxy:

Repository Stars
OpenRakis/Spice86
Reverse engineer and rewrite real mode DOS programs!
Version Downloads Last updated
1.10.0 4,716 4/15/2024
1.9.0 170 4/14/2024
1.8.0 1,333 9/22/2023
1.8.0-Beta3 160 9/22/2023
1.8.0-Beta2 209 9/22/2023
1.8.0-Beta1 176 9/18/2023
1.7.0 196 9/5/2023
1.6.0 210 8/24/2023
1.6.0-RC1 173 8/23/2023
1.6.0-Beta2 198 8/20/2023
1.6.0-Beta1 335 5/25/2023
1.5.0 293 5/23/2023
1.5.0-Beta1 211 5/23/2023
1.4.0 158 5/23/2023
1.3.1 151 5/23/2023
1.2.0 362 3/28/2023
1.1.0 290 2/28/2023
1.0.0 259 2/27/2023