![]() |
VOOZH | about |
dotnet add package Ansight.Tools.Reflection --version 0.1.0
NuGet\Install-Package Ansight.Tools.Reflection -Version 0.1.0
<PackageReference Include="Ansight.Tools.Reflection" Version="0.1.0" />
<PackageVersion Include="Ansight.Tools.Reflection" Version="0.1.0" />Directory.Packages.props
<PackageReference Include="Ansight.Tools.Reflection" />Project file
paket add Ansight.Tools.Reflection --version 0.1.0
#r "nuget: Ansight.Tools.Reflection, 0.1.0"
#:package Ansight.Tools.Reflection@0.1.0
#addin nuget:?package=Ansight.Tools.Reflection&version=0.1.0Install as a Cake Addin
#tool nuget:?package=Ansight.Tools.Reflection&version=0.1.0Install as a Cake Tool
Grouped live-object reflection tools for the Ansight .NET SDK.
The Ansight SDK is source-available software under the Ansight SDK Source-Available License. It is not open-source software. Production use is licensed only for use with Ansight Services.
Registered tools:
reflect.list_rootsreflect.inspect_objectreflect.describe_typereflect.set_member_valuereflect.invoke_methodusing Ansight;
using Ansight.Tools.Reflection;
var session = new DebugSessionViewModel();
var options = Options.CreateBuilder()
.WithReflectionTools(reflection =>
{
reflection.WithDefaultMemberVisibility(ReflectionMemberVisibility.PublicOnly);
})
.WithReadWriteToolAccess()
.Build();
using var sessionRoot = ReflectionRootRegistry.Register(
"session",
session,
new ReflectionRootMetadata("Current Session")
{
Description = "Active session view model",
Hints = ["debug", "session"]
});
using var detailRoot = ReflectionRootRegistry.Register(
"details",
() => session.CurrentDetails,
new ReflectionRootMetadata("Current Details"));
detailRoot.Deregister();
Registering a root grants access to visible members and instance methods reachable from that root. The tools use stateless paths from registered roots; there are no per-member allow-list APIs in the current simplified surface. Choose the roots you expose carefully, and choose an appropriate tool guard.
Direct object roots use weak references by default when registered with Register(...). Pass ReferenceType.Strong when the registry should retain the root for the lifetime of the toolsuite. Register a Func<object?> getter when the exposed root can change over time, such as the current view model or selected document; the root is reported as unavailable while the getter returns null. Runtime registration returns a ReflectionRootRegistrationHandle; dispose it or call Deregister() to remove that specific registration, or call ReflectionRootRegistry.Deregister(id) to remove the current root by identifier. Metadata, including Description and Hints, is supplied through the ReflectionRootMetadata argument.
Recursive traversal is open by default. Use WithAssemblyTraversalMode(ReflectionAssemblyTraversalMode.AllowListedOnly) and WithNamespaceTraversalMode(ReflectionNamespaceTraversalMode.AllowListedOnly) with AllowAssembly(...) / AllowNamespacePrefix(...) only when you need to restrict expansion to selected assemblies or namespaces.
WithReadOnlyToolAccess() exposes reflect.list_roots, reflect.inspect_object, and reflect.describe_type. reflect.set_member_value and reflect.invoke_method are write-scoped and require WithReadWriteToolAccess() or a custom ToolGuard.
These tools are intended for local debugging only and may expose or mutate sensitive runtime state.
Projects that reference this package are covered by AnsightRemoteToolsPolicy. The default AllowedWithWarnings policy logs detected tool type and assembly details and emits a build warning when remote tools are included. Because this package contains remote tools, Disallowed only succeeds when the package is omitted from that build, for example with Debug-only package references. Use Allowed to bypass remote tool scanning and warnings. Set AnsightLogRemoteTools=false to suppress the detected-tool list.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net9.0 net9.0 is compatible. net9.0-android net9.0-android was computed. net9.0-android35.0 net9.0-android35.0 is compatible. net9.0-browser net9.0-browser was computed. net9.0-ios net9.0-ios was computed. net9.0-ios18.0 net9.0-ios18.0 is compatible. net9.0-maccatalyst net9.0-maccatalyst was computed. net9.0-maccatalyst18.0 net9.0-maccatalyst18.0 is compatible. net9.0-macos net9.0-macos was computed. net9.0-tvos net9.0-tvos was computed. net9.0-windows net9.0-windows was computed. net10.0 net10.0 was computed. net10.0-android net10.0-android was computed. net10.0-browser net10.0-browser was computed. net10.0-ios net10.0-ios was computed. net10.0-maccatalyst net10.0-maccatalyst was computed. net10.0-macos net10.0-macos was computed. net10.0-tvos net10.0-tvos was computed. net10.0-windows net10.0-windows was computed. |
Showing the top 1 NuGet packages that depend on Ansight.Tools.Reflection:
| Package | Downloads |
|---|---|
|
Ansight
All-in-one Ansight SDK package for .NET apps, including core runtime, pairing, and remote tools. |
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 0.2.0-preview.1 | 62 | 6/3/2026 |
| 0.1.0 | 146 | 5/26/2026 |
| 0.1.0-preview.24 | 73 | 5/25/2026 |
| 0.1.0-preview.23 | 61 | 5/23/2026 |
| 0.1.0-preview.22 | 64 | 5/23/2026 |
| 0.1.0-preview.21 | 65 | 5/19/2026 |
| 0.1.0-preview.20 | 67 | 5/15/2026 |
| 0.1.0-preview.19 | 78 | 5/8/2026 |
| 0.1.0-preview.18 | 74 | 5/8/2026 |
| 0.1.0-preview.17 | 59 | 5/8/2026 |
| 0.1.0-preview.16 | 64 | 5/6/2026 |
| 0.1.0-preview.15 | 56 | 5/5/2026 |
| 0.1.0-preview.14 | 64 | 5/5/2026 |
| 0.1.0-preview.13 | 60 | 5/5/2026 |
| 0.1.0-pre9 | 126 | 5/3/2026 |
| 0.1.0-pre8 | 90 | 5/3/2026 |
| 0.1.0-pre7 | 89 | 4/30/2026 |
| 0.1.0-pre12 | 122 | 5/4/2026 |
| 0.1.0-pre11 | 116 | 5/4/2026 |
| 0.1.0-pre10 | 122 | 5/3/2026 |