项目作者: SharpILMixins

项目描述 :
SharpILMixins is a trait/mixin and IL weaving framework for C# using dnLib
高级语言: C#
项目地址: git://github.com/SharpILMixins/SharpILMixins.git
创建时间: 2020-10-08T18:43:47Z
项目社区:https://github.com/SharpILMixins/SharpILMixins

开源协议:MIT License

下载


SharpILMixins

SharpILMixins is a trait/mixin and IL weaving framework for C# using dnLib.

Usage

SharpILMixins has a processor tool that can apply Mixins made with SharpILMixins.

Help output:

  1. SharpILMixins.Processor
  2. Copyright (C) 2020 NickAcPT
  3. process, p (Default Verb) Offline process Mixins
  4. generate, g Generate helper code to work with Mixins
  5. help Display more information on a specific command.
  6. version Display version information.

Installation

The processor is a DotNet Global Tool.

To install, run the following command on the Terminal of your choice:

  1. dotnet tool install --global SharpILMixins.Processor

To update, run the following command on the Terminal of your choice:

  1. dotnet tool update --global SharpILMixins.Processor

Creating a Mixin project with SharpILMixins.

SharpILMixins provides a project template with the NuGet Package Id SharpILMixin.Template (NuGet Page) .

To install the template with dotnet new, run the following command on the Terminal of your choice:

  1. dotnet new -i SharpILMixin.Template

Then, you can create a new project with this template by running the following command:

  1. dotnet new sharpilmixins [-na <namespace>] [-t <target name>] [-o <output folder>]

More information:

  1. Mixin with SharpILMixins
  2. Author: NickAc
  3. Options:
  4. -na|--namespace
  5. string - Optional
  6. Default: SharpILMixins.Template
  7. -t|--target
  8. string - Optional
  9. Default: MixinTarget.dll

Runtime detour

This project does not support runtime detouring. The aim is to allow the user to modify their .NET Assemblies and do an offline replacement of the original files.