2021-09-30 11:01:26 +00:00
|
|
|
set -e
|
|
|
|
set -x
|
|
|
|
# Install dotnet-format
|
|
|
|
apt update -yqq
|
|
|
|
apt install -y gnupg apt-transport-https
|
|
|
|
curl https://packages.microsoft.com/keys/microsoft.asc | gpg --dearmor > microsoft.asc.gpg
|
|
|
|
mv microsoft.asc.gpg /etc/apt/trusted.gpg.d/
|
2023-03-15 19:01:47 +00:00
|
|
|
# FIXME: this is bullseye, but image is actually bookworm (testing at the time)
|
|
|
|
curl -O https://packages.microsoft.com/config/debian/11/prod.list
|
2021-09-30 11:01:26 +00:00
|
|
|
mv prod.list /etc/apt/sources.list.d/microsoft-prod.list
|
|
|
|
chown root:root /etc/apt/trusted.gpg.d/microsoft.asc.gpg
|
|
|
|
chown root:root /etc/apt/sources.list.d/microsoft-prod.list
|
|
|
|
apt update -yqq
|
2023-03-15 19:01:47 +00:00
|
|
|
apt install -y dotnet-sdk-7.0
|
2021-09-30 11:01:26 +00:00
|
|
|
dotnet tool install --global dotnet-format
|
|
|
|
ln -s ~/.dotnet/tools/dotnet-format /usr/local/bin/dotnet-format
|