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:
See the sections Versioning your service and Using Azure.Core versions for more details about service versioning.
NOTE: The
Azure.Core
version used in this tutorial may be out of date! Thetypespec-azure-core
README.md file contains the versions listing which describes the available versions.