Skip to content

Commit

Permalink
Merge pull request #702 from Azure/devcontainer
Browse files Browse the repository at this point in the history
Update dev container
  • Loading branch information
guythetechie authored Nov 7, 2024
1 parent 5c99038 commit 6e9f9b7
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 20 deletions.
20 changes: 11 additions & 9 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
{
"name": "C# (.NET)",
"name": "Dev container",
"image": "mcr.microsoft.com/devcontainers/base:ubuntu",
"features": {
"ghcr.io/devcontainers/features/dotnet:2": {
"version": "8.0",
"additionalVersions": "9.0",
"workloads": "aspire"
"additionalVersions": "9.0"
},
"ghcr.io/devcontainers/features/azure-cli:1": {
"version": "latest",
Expand All @@ -14,18 +13,21 @@
"ghcr.io/devcontainers/features/powershell:1": {
"version": "latest"
},
"ghcr.io/devcontainers/features/git:1": {}
"ghcr.io/devcontainers/features/git:1": {},
"ghcr.io/devcontainers/features/github-cli:1": {}
},
"postCreateCommand": "./.devcontainer/postCreateCommand.sh",
"postCreateCommand": "sh .devcontainer/install.sh",
"customizations": {
"vscode": {
"extensions": [
"ms-azuretools.vscode-bicep",
"ms-azure-devops.azure-pipelines",
"ms-dotnettools.csdevkit",
"github.copilot",
"github.copilot-chat",
"timonwong.shellcheck"
"ms-azure-devops.azure-pipelines",
"GitHub.vscode-github-actions",
"GitHub.copilot",
"timonwong.shellcheck",
"foxundermoon.shell-format",
"redhat.vscode-yaml"
]
}
}
Expand Down
4 changes: 4 additions & 0 deletions .devcontainer/install.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/bin/bash

# Install PowerShell modules
pwsh -Command "Install-Module -Name Az -Force"
9 changes: 0 additions & 9 deletions .devcontainer/postCreateCommand.sh

This file was deleted.

6 changes: 4 additions & 2 deletions tools/code/aspire/aspire.csproj
Original file line number Diff line number Diff line change
@@ -1,15 +1,17 @@
<Project Sdk="Microsoft.NET.Sdk">

<Sdk Name="Aspire.AppHost.Sdk" Version="9.0.0-rc.1.24511.1" />

<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>net8.0</TargetFramework>
<TargetFramework>net9.0</TargetFramework>
<Nullable>enable</Nullable>
<IsAspireHost>true</IsAspireHost>
<UserSecretsId>6ce9dc18-ea0d-4d82-8f1a-e63877f35b88</UserSecretsId>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Aspire.Hosting.AppHost" Version="8.1.0" />
<PackageReference Include="Aspire.Hosting.AppHost" Version="9.0.0-rc.1.24511.1" />
</ItemGroup>

<ItemGroup>
Expand Down

0 comments on commit 6e9f9b7

Please sign in to comment.