# IDotnetProgramResource

- Kind: `interface`
- Package: [Aspire.Hosting](/reference/api/csharp/aspire.hosting.md)
- Version: `13.6.0`
- Namespace: `Aspire.Hosting.ApplicationModel`
- Target framework: `net10.0`
- Source: [GitHub](https://github.com/microsoft/aspire/blob/f4c27f2d43ddc1cacd0dd083b30d1fea1cee7a62/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 enable SDK container publishing; use the publishing configuration supplied by the resource's builder API.
