csharp-sdk/Makefile
Eirik Tsarpalis 8beafedddb
Update to .NET SDK to 10.rc2 (#883)
* Update to .NET SDK to 10.rc2

* Tweak Makefile

* Update docfx
2025-10-24 19:25:17 +03:00

44 lines
1.1 KiB
Makefile

SOURCE_DIRECTORY := $(dir $(realpath $(lastword $(MAKEFILE_LIST))))
ARTIFACT_PATH := $(SOURCE_DIRECTORY)artifacts
DOCS_PATH := $(SOURCE_DIRECTORY)docs
CONFIGURATION ?= Release
clean:
dotnet clean
rm -rf $(ARTIFACT_PATH)/*
rm -rf $(DOCS_PATH)/api
restore:
dotnet tool restore
dotnet restore
build: restore
dotnet build --no-restore --configuration $(CONFIGURATION)
test: build
dotnet test \
--no-build \
--configuration $(CONFIGURATION) \
--filter '(Execution!=Manual)' \
--blame \
--blame-crash \
--blame-hang-timeout 7m \
--diag "$(ARTIFACT_PATH)/diag.txt" \
--logger "trx" \
--logger "GitHubActions;summary.includePassedTests=true;summary.includeSkippedTests=true" \
--collect "XPlat Code Coverage" \
--results-directory $(ARTIFACT_PATH)/testresults \
-- \
RunConfiguration.CollectSourceInformation=true
pack: restore
dotnet pack --no-restore --configuration $(CONFIGURATION)
generate-docs: restore
dotnet build -c Release
dotnet docfx $(DOCS_PATH)/docfx.json --warningsAsErrors true
serve-docs: generate-docs
dotnet docfx serve $(ARTIFACT_PATH)/_site --port 8080
.DEFAULT_GOAL := build