# IDotnetProgramResource

- Kind: `interface`
- Package: [Aspire.Hosting](/reference/api/csharp/aspire.hosting.md)
- Version: `17.0.0`
- Namespace: `Aspire.Hosting.ApplicationModel`
- Target framework: `net10.0`
- Source: [GitHub](https://github.com/microsoft/aspire/blob/2d325b13709752ba6d9a943635c5e2940a2530c0/src/Aspire.Hosting/ApplicationModel/IDotnetProgramResource.cs)
- Implements: [IResource](/reference/api/csharp/aspire.hosting/iresource.md)

Represents a resource backed by a .NET program, such as a project file or a file-based app.

## Definition

```csharp
namespace Aspire.Hosting.ApplicationModel;

public interface IDotnetProgramResource
    : Aspire.Hosting.ApplicationModel.IResource
{
    // ...
}
```

## Remarks

This interface identifies the source-program model shared by legacy [ProjectResource](/reference/api/csharp/aspire.hosting/projectresource.md) instances and language integrations such as `Aspire.Hosting.Dotnet`. Implementing this interface does not by itself apply project metadata, launch defaults, build coordination, or SDK container publishing. Use the configuration supplied by the resource's builder API.
