NuExt.Minimal.Mvvm.SourceGenerator 0.1.0

Prefix Reserved
There is a newer version of this package available.
See the version list below for details.
The owner has unlisted this package. This could mean that the package is deprecated, has security vulnerabilities or shouldn't be used anymore.
dotnet add package NuExt.Minimal.Mvvm.SourceGenerator --version 0.1.0                
NuGet\Install-Package NuExt.Minimal.Mvvm.SourceGenerator -Version 0.1.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="NuExt.Minimal.Mvvm.SourceGenerator" Version="0.1.0" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add NuExt.Minimal.Mvvm.SourceGenerator --version 0.1.0                
#r "nuget: NuExt.Minimal.Mvvm.SourceGenerator, 0.1.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 NuExt.Minimal.Mvvm.SourceGenerator as a Cake Addin
#addin nuget:?package=NuExt.Minimal.Mvvm.SourceGenerator&version=0.1.0

// Install NuExt.Minimal.Mvvm.SourceGenerator as a Cake Tool
#tool nuget:?package=NuExt.Minimal.Mvvm.SourceGenerator&version=0.1.0                

NuExt.Minimal.Mvvm.SourceGenerator

NuExt.Minimal.Mvvm.SourceGenerator is an extension for the lightweight MVVM framework NuExt.Minimal.Mvvm. This package includes a source generator that produces boilerplate code for your ViewModels at compile time, simplifying development and reducing routine work. By automating repetitive tasks, it helps you focus on implementing application-specific logic.

Features

  • Automatically generates boilerplate code for ViewModels.
  • Simplifies the development process by reducing repetitive coding tasks.
  • Seamlessly integrates with the NuExt.Minimal.Mvvm framework.
  • Enhances maintainability and readability of your codebase.

Installation

You can install NuExt.Minimal.Mvvm.SourceGenerator via NuGet:

dotnet add package NuExt.Minimal.Mvvm.SourceGenerator

Or through the Visual Studio package manager:

  1. Go to Tools -> NuGet Package Manager -> Manage NuGet Packages for Solution....
  2. Search for NuExt.Minimal.Mvvm.SourceGenerator.
  3. Click "Install".

Usage Examples

Example using auto-generated property notifications

Given a user class such as:

using Minimal.Mvvm;

public partial class MyModel : BindableBase
{
    [Notify]
    private string? _description;

    [Notify(Setter = AccessModifier.Private)]
    private string _name;
}

A generator could produce the following:

partial class MyModel
{
    public string Description
    {
        get => _description;
        set => SetProperty(ref _description, value);
    }

    public string Name
    {
        get => _name;
        private set => SetProperty(ref _name, value);
    }
}

Contributing

Contributions are welcome! Feel free to submit issues, fork the repository, and send pull requests. Your feedback and suggestions for improvement are highly appreciated.

License

Licensed under the MIT License. See the LICENSE file for details.

There are no supported framework assets in this 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
0.3.2 36 1/26/2025
0.3.1 60 1/22/2025
0.3.0 60 1/21/2025
0.2.7 108 12/1/2024