Created
January 1, 2018 13:59
-
-
Save anuraj/2cde106ee32a49e0750820cccc77a118 to your computer and use it in GitHub Desktop.
Launching different browsers from VS Code
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
{ | |
// 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/OmniSharp/omnisharp-vscode/blob/master/debugger-launchjson.md | |
"version": "0.2.0", | |
"configurations": [ | |
{ | |
"name": ".NET Core Launch (web)", | |
"type": "coreclr", | |
"request": "launch", | |
"preLaunchTask": "build", | |
// If you have changed target frameworks, make sure to update the program path. | |
"program": "${workspaceFolder}/bin/Debug/netcoreapp2.0/DemoWebApp.dll", | |
"args": [], | |
"cwd": "${workspaceFolder}", | |
"stopAtEntry": false, | |
"internalConsoleOptions": "openOnSessionStart", | |
"launchBrowser": { | |
"enabled": true, | |
"args": "${auto-detect-url}", | |
"windows": { | |
"command": "cmd.exe", | |
"args": "/C start ${auto-detect-url}" | |
}, | |
"osx": { | |
"command": "open" | |
}, | |
"linux": { | |
"command": "xdg-open" | |
} | |
}, | |
"env": { | |
"ASPNETCORE_ENVIRONMENT": "Development" | |
}, | |
"sourceFileMap": { | |
"/Views": "${workspaceFolder}/Views" | |
} | |
}, | |
{ | |
"name": ".NET Core Launch - Chrome", | |
"type": "coreclr", | |
"request": "launch", | |
"preLaunchTask": "build", | |
// If you have changed target frameworks, make sure to update the program path. | |
"program": "${workspaceFolder}/bin/Debug/netcoreapp2.0/DemoWebApp.dll", | |
"args": [], | |
"cwd": "${workspaceFolder}", | |
"stopAtEntry": false, | |
"internalConsoleOptions": "openOnSessionStart", | |
"launchBrowser": { | |
"enabled": true, | |
"args": "${auto-detect-url}", | |
"windows": { | |
"command": "cmd.exe", | |
"args": "/C start \"\" \"C:/Program Files (x86)/Google/Chrome/Application/chrome.exe\" ${auto-detect-url}" | |
} | |
}, | |
"env": { | |
"ASPNETCORE_ENVIRONMENT": "Development" | |
}, | |
"sourceFileMap": { | |
"/Views": "${workspaceFolder}/Views" | |
} | |
}, | |
{ | |
"name": ".NET Core Launch - Firefox", | |
"type": "coreclr", | |
"request": "launch", | |
"preLaunchTask": "build", | |
// If you have changed target frameworks, make sure to update the program path. | |
"program": "${workspaceFolder}/bin/Debug/netcoreapp2.0/DemoWebApp.dll", | |
"args": [], | |
"cwd": "${workspaceFolder}", | |
"stopAtEntry": false, | |
"internalConsoleOptions": "openOnSessionStart", | |
"launchBrowser": { | |
"enabled": true, | |
"args": "${auto-detect-url}", | |
"windows": { | |
"command": "cmd.exe", | |
"args": "/C start \"\" \"C:/Program Files/Mozilla Firefox/firefox.exe\" ${auto-detect-url}" | |
} | |
}, | |
"env": { | |
"ASPNETCORE_ENVIRONMENT": "Development" | |
}, | |
"sourceFileMap": { | |
"/Views": "${workspaceFolder}/Views" | |
} | |
}, | |
{ | |
"name": ".NET Core Launch - IE", | |
"type": "coreclr", | |
"request": "launch", | |
"preLaunchTask": "build", | |
// If you have changed target frameworks, make sure to update the program path. | |
"program": "${workspaceFolder}/bin/Debug/netcoreapp2.0/DemoWebApp.dll", | |
"args": [], | |
"cwd": "${workspaceFolder}", | |
"stopAtEntry": false, | |
"internalConsoleOptions": "openOnSessionStart", | |
"launchBrowser": { | |
"enabled": true, | |
"args": "${auto-detect-url}", | |
"windows": { | |
"command": "cmd.exe", | |
"args": "/C start \"\" \"C:/Program Files/internet explorer/iexplore.exe\" ${auto-detect-url}" | |
} | |
}, | |
"env": { | |
"ASPNETCORE_ENVIRONMENT": "Development" | |
}, | |
"sourceFileMap": { | |
"/Views": "${workspaceFolder}/Views" | |
} | |
}, | |
{ | |
"name": ".NET Core Attach", | |
"type": "coreclr", | |
"request": "attach", | |
"processId": "${command:pickProcess}" | |
} | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment