NotificationAPI SDK for server-side (back-end) .NET projects.
- Free software: MIT license
Please refer to our documentation.
- Install .NET SDK 8.0 or later:
- Download from https://dotnet.microsoft.com/download
We use a Makefile to simplify common development tasks. Before submitting a PR, please ensure you follow these steps:
- Restore dependencies:
make restore
- Build the project:
make build
- Run tests:
make test
- Format the code:
make format
- Verify code formatting:
make format-check
- 100% code coverage is required for all new code.
- All code must pass the formatting check before a PR will be accepted.
- The GitHub Actions workflow will automatically verify formatting and run tests on your PR.
If you prefer not to use the Makefile, you can run the commands directly:
# Restore dependencies
dotnet restore src/NotificationApi.Server.sln
# Build the project
dotnet build src/NotificationApi.Server.sln --configuration Release --no-restore
# Run tests
dotnet test src/NotificationApi.Server.Tests --configuration Release --no-build --verbosity normal
# Format code
dotnet format src/NotificationApi.Server.sln
# Check formatting
dotnet format src/NotificationApi.Server.sln --verify-no-changes --verbosity diagnostic