# DotnetToolAnnotation Properties

- Package: [Aspire.Hosting](/reference/api/csharp/aspire.hosting.md)
- Type: [DotnetToolAnnotation](/reference/api/csharp/aspire.hosting/dotnettoolannotation.md)
- Kind: `Properties`
- Members: `6`

Represents an annotation for dotnet tool resources.

## IgnoreExistingFeeds

- Name: `IgnoreExistingFeeds`
- Modifiers: `get; set`
- Returns: `bool`
- Source: [GitHub](https://github.com/microsoft/aspire/blob/bd20f904cde09ecb9c9ae5116a6f13614bf2d7c2/src/Aspire.Hosting/ApplicationModel/DotnetToolAnnotation.cs)

Are custom sources used in addition or instead of existing feeds.

```csharp
public bool IgnoreExistingFeeds { get; set; }
```

## Remarks

This value has no impact if [DotnetToolAnnotation.Sources](/reference/api/csharp/aspire.hosting/dotnettoolannotation/properties.md#sources) is empty.

## IgnoreFailedSources

- Name: `IgnoreFailedSources`
- Modifiers: `get; set`
- Returns: `bool`
- Source: [GitHub](https://github.com/microsoft/aspire/blob/bd20f904cde09ecb9c9ae5116a6f13614bf2d7c2/src/Aspire.Hosting/ApplicationModel/DotnetToolAnnotation.cs)

Treats package source failures as warnings.

```csharp
public bool IgnoreFailedSources { get; set; }
```

## PackageId

- Name: `PackageId`
- Modifiers: `get; set`
- Returns: `string`
- Source: [GitHub](https://github.com/microsoft/aspire/blob/bd20f904cde09ecb9c9ae5116a6f13614bf2d7c2/src/Aspire.Hosting/ApplicationModel/DotnetToolAnnotation.cs)

The NuGet package ID of the .NET tool to execute. You can optionally specify a version using the `@` syntax, for example `dotnetsay@2.1`.

```csharp
public string PackageId { get; set; }
```

## Prerelease

- Name: `Prerelease`
- Modifiers: `get; set`
- Returns: `bool`
- Source: [GitHub](https://github.com/microsoft/aspire/blob/bd20f904cde09ecb9c9ae5116a6f13614bf2d7c2/src/Aspire.Hosting/ApplicationModel/DotnetToolAnnotation.cs)

Allows prerelease packages to be selected when resolving the version to install.

```csharp
public bool Prerelease { get; set; }
```

## Sources

- Name: `Sources`
- Modifiers: `get`
- Returns: `List<string>`
- Source: [GitHub](https://github.com/microsoft/aspire/blob/bd20f904cde09ecb9c9ae5116a6f13614bf2d7c2/src/Aspire.Hosting/ApplicationModel/DotnetToolAnnotation.cs#L31)

NuGet package sources to use during installation

```csharp
public List<string> Sources { get; }
```

## Version

- Name: `Version`
- Modifiers: `nullable` `get; set`
- Returns: `string?`
- Source: [GitHub](https://github.com/microsoft/aspire/blob/bd20f904cde09ecb9c9ae5116a6f13614bf2d7c2/src/Aspire.Hosting/ApplicationModel/DotnetToolAnnotation.cs)

The version of the tool package to install.

```csharp
public string? Version { get; set; }
```
