- VS Code (latest stable)
- GitHub Copilot extension enabled (and Copilot Chat access)
- Signed in to GitHub with Copilot subscription / access
This document details a complete .NET SDK workload corruption that prevented any .NET development, the attempted resolution strategies, and the eventual recovery process. The issue initially manifested during .NET Aspire development but affected the entire .NET SDK installation.
- OS: Windows 11 (Build 10.0.26200)
# .NET Aspire Azure Beast Mode - Comprehensive Azure Development Assistant
You are a .NET Aspire Azure agent - the ultimate .NET Aspire and Azure development assistant You are designed to autonomously create, deploy, and manage complete .NET Aspire applications on Azure with production-grade security, performance, and best practices.
**IMPORTANT**: Always use .NET 9.0 or later and the Aspire CLI for all .NET Aspire projects. Never target .NET 8.0 for new projects.
NEVER use dotnet workloads or install dotnet workloads as they are not relevant or needed for .NET 9 or later projects.
**CRITICAL PREFERENCE**: Use `aspire run` for .NET Aspire applications - this is the preferred modern approach. Alternative: `dotnet run --project {AppHost}` from solution root. NEVER use `dotnet run` alone as it bypasses AppHost orchestration.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
o [Music] hello hello everyone welcome to the vs code live stream if you are new here my name is Olivia I am a developer Advocate on the vs code team um and I'm so happy to be here with you all um the live streams are a great chance for us to bring guests on Spotlight different features different things that use vs code um we have a really great lineup today that we're going to be talking about some great guests um but before we dive into that let me know where you're watching from in the chat um if you haven't been | |
in these before we really like to make this an interactive experience um so as we go through the demo today talking about the product we'll be showing off um definitely let us know your questions we'll be monitoring the chat for that um and asking our guests as we go so it's a great chance for you to be able to talk firsthand with the people people who work on the product you love hello abriel Hi how are you doing thanks so much for joining um definitely drop in the |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@description('Generated from /subscriptions/<mysubid>/resourceGroups/dotnetazdsample-rg/providers/Microsoft.Web/sites/app-api-us4wfunnnezqy') | |
resource appapiuswfunnnezqy 'Microsoft.Web/sites@2022-03-01' = { | |
name: 'app-api-us4wfunnnezqy' | |
kind: 'app' | |
location: 'South Central US' | |
tags: { | |
'azd-env-name': 'dotnetazdsample' | |
'azd-service-name': 'api' | |
} |
File > New Project > Empty Web
- This shows the minimal microservices that .NET Core offers, receiving a request, returning a route.
- We have found that when talking to customers that they were building APIs having MVC was more than needed. The "V" was unused, the folder structure may have not made sense etc.
- Talk to Endpoint Routing
- Add Health Check - speak to the built in capabilities if Docker and K8s looking for a health endpoint and acting on fail/success
dotnet new worker -o worker
cd worker
code-insiders .
- Add Dockerfile
az acr build -t workersidecar1:latest -r shayne .
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class Program | |
{ | |
public static void Main(string[] args) | |
{ | |
CreateWebHostBuilder(args).Build().Run(); | |
} | |
public static IWebHostBuilder CreateWebHostBuilder(string[] args) => | |
WebHost.CreateDefaultBuilder(args) | |
.UseStartup<Startup>(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apiVersion: apps/v1 | |
kind: Deployment | |
metadata: | |
name: apiservice | |
labels: | |
app: apiservice | |
spec: | |
replicas: 1 | |
template: | |
metadata: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function dockerstopall { | |
echo ’stopping all containers’; | |
docker stop $(docker ps -a -q); | |
} | |
function dockerremoveallcontainers { | |
echo ‘removing all containers’; | |
docker rm $(docker ps -a -q); | |
} |
NewerOlder