Steeltoe 2.4 boosts .NET microservices development with a code generator, new getting started guides, and more

November 27, 2019 David Dieruf

The Steeltoe framework helps .NET developers create cloud-native applications. As its feature set grows, so does its popularity (5.8 million downloads and counting). Much of this innovation comes from your feedback, community contributions, and all-round improvements in the .NET runtime. But it’s not always about the bits. Developers need documentation and other supporting tools to be productive! 

To this end, we’ve cooked up some nifty things to help you do more with Steeltoe:

  • A new Initializr site gets you going faster. Use this tool, and your starting codeset can include common dependencies, like internal single sign-on libraries and helper utilities. 

  • Getting Started Guides for each component. Be more productive in your first few minutes with Steeltoe features! The new offers intuitive guides for each feature in the framework. Each guide is a working project with clearly defined code on how to implement that feature. Invest 5 minutes and deploy a “Hello World” app using that capability!

Both of these enhancements warrant a closer look, so read on! 

Application code generation with Steeltoe Initializr

The Initializr is an application generator that speeds the creation of cloud-native .NET projects. 

How many times have you run dotnet new, added in Steeltoe libraries, and then added your own custom dependencies? You may have repeated the action enough to say, “I should create a template for this.” That’s the Steeltoe Initializer, a big time saver. Like its sibling Spring Initializr, the Steeltoe version offers .NET templates with a variety of dependencies already “baked in.” And this tool comes with the project team’s seal of approval for cloud-native best practices! Try the Initializr now!

Getting started guides on help you ramp up

To make your life easier, we made a simple getting started guide for every component. Each guide includes detailed, step-by-step instructions for using the feature in your local environment, on Kubernetes, and on other select platforms. Browse the site, or choose a getting started guide and get hands-on.

Steeltoe CLI brings dev/prod parity one step closer to reality

The Steeltoe CLI aims to help you write better code by improving parity across your environments. Say your app is using a cache. Why should you have to mock up a store locally, only to find a whole host of challenges when it’s bound to a cache on your chosen runtime? The CLI provides a manifest-driven experience where you can do a push locally. This mimics what you do during a real deployment, bringing your desktop closer with production. Head over to the git repo and learn more.

Official support for .NET Core 3.0 and other enhancements

Steeltoe 2.4 adds support for .NET Core 3.0. ASP.NET Core recently adopted the GenericHost for all app scenarios. So we thought it an opportune moment to improve the component setup for Steeltoe. In previous versions, many Steeltoe components needed to be wired up in a two-step process (in startup.cs). First, you add components to the service container in ConfigureServices. Then you activate them in the Configure method. This flow could result in irritating issues that were often hard to diagnose. 

This process gets easier in Steeltoe 2.4. Here’s how.

The release includes a variety of HostBuilder extensions that provide one-liners for adding Steeltoe components. These simple setup instructions should reduce middleware sequencing bugs. 

We’ve also improved the experience with the Logging Actuator, by auto-wiring dynamic logging. The auto-wiring process will also remove the Microsoft Console Logger (if present) to avoid the potential for duplicate log entries on the console. Learn more about the new AddCloudFoundryActuators() builder and AddLoggingActuator() builder in Cloud Management.

Getting started with Steeltoe has never been easier

Head over to the getting started guides. Combine this this with the samples in the Steeltoe Github repo, and you’ll have .NET microservices up and running before you know it! 

Want a complete runtime? Try Pivotal Web Services for free and gain access to a complete modern app runtime. 

Continue learning

Steeltoe Training

Want to get deeper into creating cloud-native .NET apps with Steeltoe? Attend the Pivotal Platform Acceleration Lab’s 4-day .NET developer course. You’ll get hands-on cloud-native .NET training, learn best practices when creating microservices, and become a Steeltoe ninja!

About the Author

David Dieruf

David is a part of the tech marketing team within VMware Tanzu, bringing a focus to .NET-related technologies. He has been writing C# for as long as it’s been a thing. In his spare time he enjoys breaking things, only to fix them. Prior to VMware, David had a wide-ranging background, from making things go fast to building computers to writing bad code.

Follow on Linkedin More Content by David Dieruf
Modernizing .NET apps to the cloud? Ditch your domain joins and IWA in favor of single sign-on
Modernizing .NET apps to the cloud? Ditch your domain joins and IWA in favor of single sign-on

In legacy .NET it’s common for applications to rely on domain services for identity management. When bringi...

Jan 23 - App Modernization with .NET Core: a Journey from Mainframe to Microservices  Webinar
Jan 23 - App Modernization with .NET Core: a Journey from Mainframe to Microservices Webinar

Modernizing .NET Applications

Get the eBook