Skip to content

Commit 32202ee

Browse files
committed
Adding .NET 9 to the devcontainer image
1 parent a22a5bf commit 32202ee

File tree

3 files changed

+12
-5
lines changed

3 files changed

+12
-5
lines changed

.devcontainer/devcontainer.json

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,11 @@
55

66
"features": {
77
"ghcr.io/azure/azure-dev/azd:latest": {},
8-
"ghcr.io/devcontainers/features/dotnet:latest": {},
8+
"ghcr.io/devcontainers/features/dotnet:2": {
9+
"version": "8.0",
10+
"additionalVersions": "9.0",
11+
"workloads": "aspire"
12+
},
913
"ghcr.io/devcontainers/features/github-cli:latest": {},
1014
"ghcr.io/devcontainers/features/java:latest": {
1115
"installGradle": true,

.devcontainer/post-create.sh

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,6 @@ sudo apt-get update && \
44
sudo apt clean -y && \
55
sudo rm -rf /var/lib/apt/lists/*
66

7-
## Install .NET Aspire workload
8-
sudo dotnet workload install aspire
9-
sudo dotnet workload update --from-previous-sdk
10-
117
## Install dev certs
128
dotnet tool update -g linux-dev-certs
139
dotnet linux-dev-certs install

Directory.Build.targets

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
<Project>
2+
<Target Name="_SetVSTestLogger" BeforeTargets="VSTest" Condition=" '$(TrxLogFileNameSuffix)' != '' ">
3+
<PropertyGroup>
4+
<VSTestLogger>trx%3BLogFileName=$(AssemblyName)-$(TrxLogFileNameSuffix)-$(TargetFramework).trx</VSTestLogger>
5+
</PropertyGroup>
6+
</Target>
7+
</Project>

0 commit comments

Comments
 (0)