Dapr .NET SDK Development with Project Tye
.NET Project Tye is a microservices development tool designed to make running many .NET services easy. Tye enables you to store a configuration of multiple .NET services, processes, and container images as a runnable application.
Tye is advantageous for a .NET Dapr developer because:
- Tye has the ability to automate the dapr CLI built-in
- Tye understands .NET’s conventions and requires almost no configuration for .NET services
Pros/cons:
- Pro: Tye can automate all of the steps described above. You no longer need to think about concepts like ports or app-ids.
- Pro: Since Tye can also manage containers for you, you can make those part of the application definition and stop the long-running containers on your machine.
Next follow the steps in the to add Dapr. Make sure to specify the relative path to your components folder with in tye.yaml
.
Next add any additional container dependencies and add component definitions to the folder you created earlier.
You should end up with something like this:
You can now use tye run
to launch the whole application from one terminal. When running, Tye has a dashboard at to view application status and logs.
Next steps
Tye runs your services locally as normal .NET process. If you need to debug, then use the attach feature of your debugger to attach to one of the running processes. Since Tye is .NET aware, it has the ability to for startup debugging.
Tye also has an option to run your services in containers if you wish to test locally in containers.