# DotnetToolAnnotation

- Kind: `class`
- Package: [Aspire.Hosting](/reference/api/csharp/aspire.hosting.md)
- Version: `13.3.0`
- Namespace: `Aspire.Hosting.ApplicationModel`
- Target framework: `net8.0`
- Source: [GitHub](https://github.com/microsoft/aspire/blob/bd20f904cde09ecb9c9ae5116a6f13614bf2d7c2/src/Aspire.Hosting/ApplicationModel/DotnetToolAnnotation.cs)
- Implements: [IResourceAnnotation](/reference/api/csharp/aspire.hosting/iresourceannotation.md)

Represents an annotation for dotnet tool resources.

## Definition

```csharp
namespace Aspire.Hosting.ApplicationModel;

public class DotnetToolAnnotation
    : Aspire.Hosting.ApplicationModel.IResourceAnnotation
{
    // ...
}
```

## Constructors

- [DotnetToolAnnotation](/reference/api/csharp/aspire.hosting/dotnettoolannotation/constructors.md#constructor)

## Properties

- [IgnoreExistingFeeds](/reference/api/csharp/aspire.hosting/dotnettoolannotation/properties.md#ignoreexistingfeeds) : `bool` `get; set` -- Are custom sources used in addition or instead of existing feeds.
- [IgnoreFailedSources](/reference/api/csharp/aspire.hosting/dotnettoolannotation/properties.md#ignorefailedsources) : `bool` `get; set` -- Treats package source failures as warnings.
- [PackageId](/reference/api/csharp/aspire.hosting/dotnettoolannotation/properties.md#packageid) : `string` `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`.
- [Prerelease](/reference/api/csharp/aspire.hosting/dotnettoolannotation/properties.md#prerelease) : `bool` `get; set` -- Allows prerelease packages to be selected when resolving the version to install.
- [Sources](/reference/api/csharp/aspire.hosting/dotnettoolannotation/properties.md#sources) : `List<string>` `get` -- NuGet package sources to use during installation
- [Version](/reference/api/csharp/aspire.hosting/dotnettoolannotation/properties.md#version) : `string?` `get; set` -- The version of the tool package to install.
