Ansight.Tools.Preferences
1.3.0-preview.2
See the version list below for details.
dotnet add package Ansight.Tools.Preferences --version 1.3.0-preview.2
NuGet\Install-Package Ansight.Tools.Preferences -Version 1.3.0-preview.2
<PackageReference Include="Ansight.Tools.Preferences" Version="1.3.0-preview.2" />
<PackageVersion Include="Ansight.Tools.Preferences" Version="1.3.0-preview.2" />
<PackageReference Include="Ansight.Tools.Preferences" />
paket add Ansight.Tools.Preferences --version 1.3.0-preview.2
#r "nuget: Ansight.Tools.Preferences, 1.3.0-preview.2"
#:package Ansight.Tools.Preferences@1.3.0-preview.2
#addin nuget:?package=Ansight.Tools.Preferences&version=1.3.0-preview.2&prerelease
#tool nuget:?package=Ansight.Tools.Preferences&version=1.3.0-preview.2&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 (>= 1.3.0-preview.2)
-
net9.0-android35.0
- Ansight.Core (>= 1.3.0-preview.2)
-
net9.0-ios18.0
- Ansight.Core (>= 1.3.0-preview.2)
-
net9.0-maccatalyst18.0
- Ansight.Core (>= 1.3.0-preview.2)
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 |
|---|---|---|
| 1.3.0-preview.3 | 0 | 8/10/2026 |
| 1.3.0-preview.2 | 0 | 8/10/2026 |
| 1.3.0-preview.1 | 0 | 8/10/2026 |
| 1.2.0-preview.3 | 46 | 8/5/2026 |
| 1.2.0-preview.2 | 51 | 8/4/2026 |
| 1.2.0-preview.1 | 53 | 8/4/2026 |
| 1.1.0-preview.1 | 57 | 7/31/2026 |
| 1.0.2-preview.8 | 66 | 7/29/2026 |
| 1.0.2-preview.7 | 55 | 7/28/2026 |
| 1.0.2-preview.6 | 56 | 7/28/2026 |
| 1.0.2-preview.5 | 64 | 7/27/2026 |
| 1.0.2-preview.4 | 60 | 7/27/2026 |
| 1.0.2-preview.3 | 127 | 7/7/2026 |
| 1.0.2-preview.2 | 75 | 7/6/2026 |
| 1.0.2-preview.1 | 70 | 6/30/2026 |
| 1.0.1 | 184 | 6/24/2026 |
| 0.2.0-preview.1 | 84 | 6/3/2026 |
| 0.1.0 | 215 | 5/26/2026 |
| 0.1.0-preview.24 | 86 | 5/25/2026 |
| 0.1.0-preview.23 | 71 | 5/23/2026 |