> ## Documentation Index
> Fetch the complete documentation index at: https://docs.streamnative.io/llms.txt
> Use this file to discover all available pages before exploring further.

# Produce Messages

The `dotnet` command is used to build and run the .NET project.

In order to run the producer, use the `dotnet run` command from the `producer` directory:

```bash theme={null}
cd producer
dotnet run
```

You should see output resembling this:

```bash theme={null}
Produced event to topic purchases: key = sgarcia    value = alarm clock
Produced event to topic purchases: key = jsmith     value = alarm clock
Produced event to topic purchases: key = sgarcia    value = book
Produced event to topic purchases: key = htanaka    value = batteries
Produced event to topic purchases: key = htanaka    value = book
Produced event to topic purchases: key = eabara     value = batteries
Produced event to topic purchases: key = jbernard   value = batteries
Produced event to topic purchases: key = eabara     value = t-shirts
Produced event to topic purchases: key = jbernard   value = t-shirts
Produced event to topic purchases: key = eabara     value = t-shirts
10 messages were produced to topic purchases
```
