3. Using the versioned Azure.Core types
Before you can use the models and operations defined in the Azure.Core namespace, you will need to specify the API version of the Azure.Core library that your service uses. You can do this by adding the @useDependency decorator to the Contoso.WidgetManager namespace as seen here:
@service(#{ title: "Contoso Widget Manager" })namespace Contoso.WidgetManager;See the sections Versioning your service and Using Azure.Core versions for more details about service versioning.
NOTE: The
Azure.Coreversion used in this tutorial may be out of date! Thetypespec-azure-coreREADME.md file contains the versions listing which describes the available versions.