This repository contains a dev container which contains all the required SDKs to develop toolkit. See dev container website for more information how to run it.
- Check that you have latest .NET SDK 8 sdk version installed.
- Clone the repository.
- Run
dotnet restore
to restore the dependencies. - Run
dotnet build
to build the project.
From the repository root directory:
- Run
dotnet build
to build the project. - Run
dotnet test
to run the tests. - Run
dotnet pack
to pack the project. The package will be created in theoutput
directory.
- Open repository folder in terminal.
- Run the script to set up example solution or check manual project build.
setup-example.cmd
- Open
examples
folder in your IDE of choice (tested: Visual Studio, Visual Studio Code, Raider).
- Run command to build the project.
dotnet build
- Run command to create NuGet package. Package will be created in
output
folder.dotnet pack
- Open
examples
folder in terminal. - Run command to build the example project.
dotnet build
- Run command to test the example project.
dotnet test
- Run command to restore compiler tool in the example project.
dotnet tool restore
- Run command to compile policies in the example project.
dotnet azure-apim-policy-compiler --s .\source\ --o .\target\ --format true