Hi.
Yes, looks like I will need to get a new laptop :))
But for the mean time...
I still get error messages...
So, I use .Net 6, C# Extension v2.33.17. I had to download latest visual studio code, be able to see and download an older extension for C#, so now I have Version: 1.93.1 (Universal). Do I need something else? What about C# Dev Kit? Do I need it to? Or any other extra extensions or downloads to my computer? What am I missing... I add some screen shots and json files.
Ps: I did try to instal C# Dev Kit as pop up window showed up with instruction to download it, but still same errors. I uninstall it after, to wait for your reply.
Thank you for your help! Thank you for your time.
![Screenshot 2024-09-25 at 08.31.42](https://learn-attachment.microsoft.com/api/attachments/cf9a1899-382b-45e9-bc84-3f55ca73de93?platform=QnA)
![Screenshot 2024-09-25 at 08.32.09](https://learn-attachment.microsoft.com/api/attachments/05b943cd-23c5-4954-a01d-bcad30f5e2b2?platform=QnA)
![Screenshot 2024-09-25 at 08.33.35](https://learn-attachment.microsoft.com/api/attachments/5eb371c3-0874-481f-bafc-582bdb17c82a?platform=QnA)
![Screenshot 2024-09-25 at 08.34.22](https://learn-attachment.microsoft.com/api/attachments/9b917973-6207-4756-b670-32a33c77f318?platform=QnA)
![Screenshot 2024-09-25 at 08.57.08](https://learn-attachment.microsoft.com/api/attachments/27381ff0-16e7-4b18-a2f9-cb2a158bdfff?platform=QnA)
launch.json:
{
"version": "0.2.0",
"configurations": [
{
// Use IntelliSense to find out which attributes exist for C# debugging
// Use hover for the description of the existing attributes
// For further information visit https://github.com/dotnet/vscode-csharp/blob/main/debugger-launchjson.md
"name": ".NET Core Launch (console)",
"type": "coreclr",
"request": "launch",
"preLaunchTask": "build",
// If you have changed target frameworks, make sure to update the program path.
"program": "${workspaceFolder}/bin/Debug/net8.0/helloworld.dll",
"args": [],
"cwd": "${workspaceFolder}",
// For more information about the 'console' field, see https://aka.ms/VSCode-CS-LaunchJson-Console
"console": "internalConsole",
"stopAtEntry": false
},
{
"name": ".NET Core Attach",
"type": "coreclr",
"request": "attach"
}
]
}
tasks.json:
{
"version": "2.0.0",
"tasks": [
{
"label": "build",
"command": "dotnet",
"type": "process",
"args": [
"build",
"${workspaceFolder}/helloworld.csproj",
"/property:GenerateFullPaths=true",
"/consoleloggerparameters:NoSummary;ForceNoAlign"
],
"problemMatcher": "$msCompile"
},
{
"label": "publish",
"command": "dotnet",
"type": "process",
"args": [
"publish",
"${workspaceFolder}/helloworld.csproj",
"/property:GenerateFullPaths=true",
"/consoleloggerparameters:NoSummary;ForceNoAlign"
],
"problemMatcher": "$msCompile"
},
{
"label": "watch",
"command": "dotnet",
"type": "process",
"args": [
"watch",
"run",
"--project",
"${workspaceFolder}/helloworld.csproj"
],
"problemMatcher": "$msCompile"
}
]
}
global.json:
{
"sdk": {
"version": "6.0.425"
}
}
helloworld.csproj:
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>net8.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
</PropertyGroup>
</Project>