Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/lambdageek/modext
adding things
https://github.com/lambdageek/modext
Last synced: 25 days ago
JSON representation
adding things
- Host: GitHub
- URL: https://github.com/lambdageek/modext
- Owner: lambdageek
- License: mit
- Created: 2024-09-12T19:09:38.000Z (about 2 months ago)
- Default Branch: main
- Last Pushed: 2024-09-12T19:10:42.000Z (about 2 months ago)
- Last Synced: 2024-09-13T08:53:05.035Z (about 2 months ago)
- Language: C#
- Size: 6.84 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.TXT
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.