launch program (yeşil sağa ok ile başlayan açılır kutu) düğmesine tıkla
add configuration a tıkla
.NET: launch a local .net web core app seçtikten sonra yukarıdaki yeşil düğmenin
olduğu listede .net core launch (web) gelecek
yeşil oka tıkla, çalıştır
welcome gelirse OK
çalışmayıp "program" hatası verirse, çalışma yolunu manuel olarak değiştir
örnek launch.json:
{
"version": "0.2.0",
"configurations": [
{
"name": ".NET Core Launch (web)",
"type": "coreclr",
"request": "launch",
"preLaunchTask": "build",
"program": "D:/mvc/bin/Debug/net7.0/mvc.dll",
"args": [],
"cwd": "${workspaceFolder}",
"stopAtEntry": false,
"serverReadyAction": {
"action": "openExternally",
"pattern": "\\bNow listening on:\\s+(https?://\\S+)"
},
"env": {
"ASPNETCORE_ENVIRONMENT": "Development"
},
"sourceFileMap": {
"/Views": "${workspaceFolder}/Views"
}
}
]
}