Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/lambdageek/modext

adding things
https://github.com/lambdageek/modext

Last synced: 25 days ago
JSON representation

adding things

Awesome Lists containing this project

README

        

# Adding extra stuff

```console
$ dotnet run
Thing1 did it
$ dotnet run -p:AddExtra=true
Extra initialized
Thing1 did it
Thing 2 did it
```

Also works with `publish -p:PublishAot=true`

## Details

Add a `[ModuleInitializer]` method to the main assembly that calls a predetermined method in the extra assembly which augments some stuff in a singleton.