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 restoreto restore the dependencies. - Run
dotnet buildto build the project.
From the repository root directory:
- Run
dotnet buildto build the project. - Run
dotnet testto run the tests. - Run
dotnet packto pack the project. The package will be created in theoutputdirectory.
- Open repository folder in terminal.
- Run the script to set up example solution or check manual project build.
setup-example.cmd
- Open
examplesfolder 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
outputfolder.dotnet pack
- Open
examplesfolder 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