Summary
Gets the registry.
- Namespace
- Cake
.Core - Containing Type
- CakeContextAdapter
Syntax
public virtual IRegistry Registry { get; }
Examples
Task("Framework-Release")
.Does(context =>
{
using (var key = context.Registry.LocalMachine.OpenKey(@"SOFTWARE\Microsoft\NET Framework Setup\NDP\v4\Full"))
{
Information("Release: {0}", key?.GetValue("Release"));
}
});
Value
| Type | Description |
|---|---|
| IRegistry | The registry. |
