Skip to content

Commit 864fa9a

Browse files
committed
feat: release automation with FAKE and minimal documentation
* Added build and release automation * Updated tools * Added a logo and corrected packaging settings * Updated NuGet packages * Added Copilot instructions * Fixed documentation * Migrated test coverage to TRX * Set .NET SDK to `9.x` in pipelines * Added `dotnet tool update` and fixed `dotnet tool restore` * Migrated to `slnx`
1 parent 3abf483 commit 864fa9a

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

76 files changed

+5188
-926
lines changed

.config/dotnet-tools.json

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
{
2+
"version": 1,
3+
"isRoot": true,
4+
"tools": {
5+
"dotnet-reportgenerator-globaltool": {
6+
"version": "5.4.7",
7+
"commands": [
8+
"reportgenerator"
9+
],
10+
"rollForward": false
11+
},
12+
"fsharp-analyzers": {
13+
"version": "0.31.0",
14+
"commands": [
15+
"fsharp-analyzers"
16+
],
17+
"rollForward": false
18+
},
19+
"fantomas": {
20+
"version": "7.0.2",
21+
"commands": [
22+
"fantomas"
23+
],
24+
"rollForward": false
25+
},
26+
"fsdocs-tool": {
27+
"version": "20.0.1",
28+
"commands": [
29+
"fsdocs"
30+
],
31+
"rollForward": false
32+
}
33+
}
34+
}

.devcontainer/Dockerfile

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# [Choice] Debian version (use bullseye on local arm64/Apple Silicon): bookworm, bullseye, buster
2+
ARG VARIANT="bookworm"
3+
FROM buildpack-deps:${VARIANT}-curl
4+
5+
6+
ENV \
7+
# Enable detection of running in a container
8+
DOTNET_RUNNING_IN_CONTAINER=true \
9+
DOTNET_ROOT=/usr/share/dotnet/ \
10+
DOTNET_NOLOGO=true \
11+
DOTNET_CLI_TELEMETRY_OPTOUT=false\
12+
DOTNET_USE_POLLING_FILE_WATCHER=true
13+
14+
15+
# [Optional] Uncomment this section to install additional OS packages.
16+
# RUN apt-get update && export DEBIAN_FRONTEND=noninteractive \
17+
# && apt-get -y install --no-install-recommends <your-package-list-here>

.devcontainer/devcontainer.json

Lines changed: 73 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,73 @@
1+
{
2+
"name": "dotnet",
3+
// Set the build context one level higher so we can grab metadata like global.json
4+
"context": "..",
5+
"dockerFile": "Dockerfile",
6+
"forwardPorts": [
7+
0
8+
],
9+
"features": {
10+
// https://github.com/devcontainers/features/blob/main/src/common-utils/README.md
11+
"ghcr.io/devcontainers/features/common-utils:2": {
12+
"installZsh": true,
13+
"installOhMyZshConfig": true,
14+
"configureZshAsDefaultShell": true,
15+
"username": "vscode",
16+
"userUid": "1000",
17+
"userGid": "1000",
18+
"upgradePackages": true
19+
},
20+
// https://github.com/devcontainers/features/blob/main/src/github-cli/README.md
21+
"ghcr.io/devcontainers/features/github-cli:1": {},
22+
// https://github.com/devcontainers-contrib/features/blob/main/src/starship/README.md
23+
"ghcr.io/devcontainers-contrib/features/starship:1": {},
24+
// https://github.com/devcontainers/features/blob/main/src/dotnet/README.md
25+
"ghcr.io/devcontainers/features/dotnet:2": {
26+
"version": "9.0",
27+
"additionalVersions": "8.0"
28+
}
29+
},
30+
"overrideFeatureInstallOrder": [
31+
"ghcr.io/devcontainers/features/common-utils",
32+
"ghcr.io/devcontainers/features/github-cli",
33+
"ghcr.io/devcontainers-contrib/features/starship",
34+
"ghcr.io/devcontainers/features/dotnet"
35+
],
36+
"customizations": {
37+
"vscode": {
38+
// Add the IDs of extensions you want installed when the container is created.
39+
"extensions": [
40+
"ms-dotnettools.csharp",
41+
"Ionide.Ionide-fsharp",
42+
"tintoy.msbuild-project-tools",
43+
"ionide.ionide-paket",
44+
"usernamehw.errorlens",
45+
"alefragnani.Bookmarks",
46+
"oderwat.indent-rainbow",
47+
"vscode-icons-team.vscode-icons",
48+
"EditorConfig.EditorConfig",
49+
"ms-azuretools.vscode-docker",
50+
"GitHub.vscode-pull-request-github",
51+
"github.vscode-github-actions"
52+
],
53+
"settings": {
54+
"terminal.integrated.defaultProfile.linux": "zsh",
55+
"csharp.suppressDotnetInstallWarning": true
56+
}
57+
}
58+
},
59+
"remoteUser": "vscode",
60+
"containerUser": "vscode",
61+
"containerEnv": {
62+
// Expose the local environment variable to the container
63+
// They are used for releasing and publishing from the container
64+
"GITHUB_TOKEN": "${localEnv:GITHUB_TOKEN}"
65+
},
66+
"onCreateCommand": {
67+
"enable-starship": "echo 'eval \"$(starship init zsh)\"' >> ~/.zshrc"
68+
},
69+
"postAttachCommand": {
70+
"restore": "dotnet tool restore && dotnet restore"
71+
},
72+
"waitFor": "updateContentCommand"
73+
}

0 commit comments

Comments
 (0)