Ansight.Tools.Preferences
0.1.0-preview.19
dotnet add package Ansight.Tools.Preferences --version 0.1.0-preview.19
NuGet\Install-Package Ansight.Tools.Preferences -Version 0.1.0-preview.19
<PackageReference Include="Ansight.Tools.Preferences" Version="0.1.0-preview.19" />
<PackageVersion Include="Ansight.Tools.Preferences" Version="0.1.0-preview.19" />
<PackageReference Include="Ansight.Tools.Preferences" />
paket add Ansight.Tools.Preferences --version 0.1.0-preview.19
#r "nuget: Ansight.Tools.Preferences, 0.1.0-preview.19"
#:package Ansight.Tools.Preferences@0.1.0-preview.19
#addin nuget:?package=Ansight.Tools.Preferences&version=0.1.0-preview.19&prerelease
#tool nuget:?package=Ansight.Tools.Preferences&version=0.1.0-preview.19&prerelease
Ansight.Tools.Preferences
Grouped shared-preferences and user-defaults tool registrations for the Ansight .NET SDK.
License
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:
prefs.list_keysprefs.get_valueprefs.set_valueprefs.remove_key
Usage
using Ansight;
using Ansight.Tools.Preferences;
var options = Options.CreateBuilder()
.WithPreferencesTools(preferences =>
{
preferences.AllowKeyPrefix("ansight.");
})
.WithReadWriteToolAccess()
.Build();
prefs.remove_key is delete-scoped. Use WithAllToolAccess() or a custom ToolGuard if you want delete operations to execute.
Restrictions
Preferences tools can be constrained at registration time:
AllowStore(...)/AllowStores(...)AllowKey(...)/AllowKeys(...)AllowKeyPrefix(...)/AllowKeyPrefixes(...)WithDefaultStore(...)
When a value is not a plain string, the tool returns a string representation and a valueType. string_array values are represented as JSON arrays encoded in the value field.
These tools are intended for local debugging only and may expose sensitive application data.
Build-time remote tool policy
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 is compatible. net9.0-android was computed. net9.0-android35.0 is compatible. net9.0-browser was computed. net9.0-ios was computed. net9.0-ios18.0 is compatible. net9.0-maccatalyst was computed. net9.0-maccatalyst18.0 is compatible. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 was computed. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
-
net9.0
- Ansight.Core (>= 0.1.0-preview.19)
-
net9.0-android35.0
- Ansight.Core (>= 0.1.0-preview.19)
-
net9.0-ios18.0
- Ansight.Core (>= 0.1.0-preview.19)
-
net9.0-maccatalyst18.0
- Ansight.Core (>= 0.1.0-preview.19)
NuGet packages (1)
Showing the top 1 NuGet packages that depend on Ansight.Tools.Preferences:
| Package | Downloads |
|---|---|
|
Ansight
All-in-one Ansight SDK package for .NET apps, including core runtime, pairing, and remote tools. |
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 0.1.0-preview.19 | 43 | 5/8/2026 |
| 0.1.0-preview.18 | 52 | 5/8/2026 |
| 0.1.0-preview.17 | 40 | 5/8/2026 |
| 0.1.0-preview.16 | 46 | 5/6/2026 |
| 0.1.0-preview.15 | 45 | 5/5/2026 |
| 0.1.0-preview.14 | 47 | 5/5/2026 |
| 0.1.0-preview.13 | 42 | 5/5/2026 |
| 0.1.0-pre9 | 58 | 5/3/2026 |
| 0.1.0-pre8 | 44 | 5/3/2026 |
| 0.1.0-pre7 | 48 | 4/30/2026 |
| 0.1.0-pre6 | 46 | 4/30/2026 |
| 0.1.0-pre5 | 42 | 4/30/2026 |
| 0.1.0-pre4 | 55 | 4/27/2026 |
| 0.1.0-pre3 | 53 | 4/21/2026 |
| 0.1.0-pre2 | 67 | 4/4/2026 |
| 0.1.0-pre12 | 53 | 5/4/2026 |
| 0.1.0-pre11 | 65 | 5/4/2026 |
| 0.1.0-pre10 | 49 | 5/3/2026 |
| 0.1.0-pre1 | 56 | 3/31/2026 |