Skip to content
Docs Try Aspire

DotnetToolAnnotation Properties

Class Properties 6 members
Represents an annotation for dotnet tool resources.
IgnoreExistingFeeds Section titled IgnoreExistingFeeds bool
Are custom sources used in addition or instead of existing feeds.
public bool IgnoreExistingFeeds { get; set; }
This value has no impact if DotnetToolAnnotation.Sources is empty.
IgnoreFailedSources Section titled IgnoreFailedSources bool
Treats package source failures as warnings.
public bool IgnoreFailedSources { get; set; }
The NuGet package ID of the .NET tool to execute. You can optionally specify a version using the @ syntax, for example dotnetsay@2.1.
public string PackageId { get; set; }
Allows prerelease packages to be selected when resolving the version to install.
public bool Prerelease { get; set; }
Sources Section titled Sources List<string>
NuGet package sources to use during installation
public List<string> Sources { get; }
Version Section titled Version nullable string?
The version of the tool package to install.
public string? Version { get; set; }