DryIoc.dll 6.0.0-preview-09
Hello Sailor,
Compile-time Dependency Injection
DryIoc has an optional compile-time Dependency Injection with the source package (previously it was available as a separate DryIocZero package).
You may ignore this information if you don't want to use the compile-time DI. Everything will work without it, but wait... you will like some compile-time DI!
How to use [@WIP]
- Copy contents of "%USERPROFILE%.nuget\packages\DryIoc<version>\CompileTimeDI" folder to your project, e.g. "Container.Generated.tt", "CompileTimeRegistrations.ttinclude", and "CompileTimeRegistrations.Example.cs".
- Add your registrations into the "CompileTimeRegistrations.ttinclude" file, the file already contains the registrations from the "CompileTimeGenerate.Example.cs", you may remove them or use it as a guideline.
- [@WIP] Save (or re-save) the "Container.Generated.tt" file in the Visual Studio or JetBrains Rider (you may get a prompt - accept it). If everything is fine you will see the generated "Container.Generated.cs" file under the "Container.Generated.tt" in Solution Explorer. The "Container.Generated.cs" will contain the generated methods to create the services registered in "CompileTimeRegistrations.ttinclude"
T4 Text Template Transformation Tooling
First you may install the dotnet-t4 CLI tool from NuGet to play and experiment with templates.
For editing and viewing the T4 text template files you may use:
- T4 Support extension plugin in VS Code
- ForTea plugin for JetBrains ReSharper in Visual Studio
- The native T4 support in JetBrains Rider :-)
Showing the top 20 packages that depend on DryIoc.dll.
Packages | Downloads |
---|---|
DryIoc.CommonServiceLocator.dll
Implementation of CommonServiceLocator for DryIoc container, see rationale at https://commonservicelocator.codeplex.com/
|
2 |
DryIoc.CommonServiceLocator.dll
Implementation of CommonServiceLocator for DryIoc container, see rationale at https://commonservicelocator.codeplex.com/
|
1 |
## v6.0.0 Major feature release
- Decrease memory footprint
- Remove Obsolete API
- @WIP Compile-time Dependency Injection
.NET Framework 4.5
- System.ValueTuple (>= 4.5.0)
.NET 6.0
- No dependencies.
.NET 7.0
- No dependencies.
.NET 8.0
- No dependencies.
.NET Standard 2.0
- System.Reflection.Emit.Lightweight (>= 4.7.0)
.NET Standard 2.1
- No dependencies.