Skip to content

Instantly share code, notes, and snippets.

@NikiforovAll
Created September 14, 2020 08:55
Show Gist options
  • Select an option

  • Save NikiforovAll/9f7d2e7c1d32a60d334b29bb7aff0e3a to your computer and use it in GitHub Desktop.

Select an option

Save NikiforovAll/9f7d2e7c1d32a60d334b29bb7aff0e3a to your computer and use it in GitHub Desktop.
Example of how to run workspace containing dotnet core and dotnet framework projects
{
"folders": [
{
"path": "..\\..\\nuts-telecom\\nuts_telecom_contacts\\Nuts.Telecom.Contacts"
},
{
"path": "..\\..\\nuts-telecom\\nuts_telecom_crmbackend_adapter\\Nuts.Telecom.CrmBackendAdapter"
},
{
"path": "..\\mnt-contacts_crmbackend-adapter-devtest"
}
],
"settings": {
"workbench.colorCustomizations": {
"activityBar.activeBackground": "#368e52",
"activityBar.activeBorder": "#c7bae5",
"activityBar.background": "#368e52",
"activityBar.foreground": "#e7e7e7",
"activityBar.inactiveForeground": "#e7e7e799",
"activityBarBadge.background": "#c7bae5",
"activityBarBadge.foreground": "#15202b",
"statusBar.background": "#28693d",
"statusBar.foreground": "#e7e7e7",
"statusBarItem.hoverBackground": "#368e52",
"titleBar.activeBackground": "#28693d",
"titleBar.activeForeground": "#e7e7e7",
"titleBar.inactiveBackground": "#28693d99",
"titleBar.inactiveForeground": "#e7e7e799"
},
"search.exclude": {
"**/node_modules": true,
"**/bin": true,
"**/packages": true
},
"peacock.color": "#28693d",
"dotnet-test-explorer.testProjectPath": "**/*Tests.@(csproj|vbproj|fsproj)",
"rest-client.environmentVariables": {
"$dev": {
"urlContacts": "http://localhost:5000",
"urlCrmBackendAdapter": "http://localhost:8733/CrmBackendAdapterService/"
},
"$shared": {}
}
},
"tasks": {
"version": "2.0.0",
"tasks": [
{
"label": "build",
"command": "dotnet",
"type": "shell",
"args": [
"build",
"/property:GenerateFullPaths=true",
"/consoleloggerparameters:NoSummary"
],
"group": {
"kind": "build",
"isDefault": true
},
"presentation": {
"reveal": "always",
"focus": true,
},
"problemMatcher": "$msCompile"
},
{
"label": "watch",
"command": "dotnet",
"type": "process",
"args": [
"watch",
"run",
"${workspaceFolder}/",
"/property:GenerateFullPaths=true",
"/consoleloggerparameters:NoSummary"
],
"problemMatcher": "$msCompile"
},
{
"label": "build-adapter",
"type": "shell",
"group": "build",
"presentation": {
"echo": true,
"reveal": "always",
"focus": false,
"panel": "shared",
"showReuseMessage": true,
"clear": false
},
"command": "cd '${workspaceFolder:Nuts.Telecom.CrmBackendAdapter}\\Nuts.Telecom.CrmBackendAdapter.WinService' && dotnet build",
"problemMatcher": []
},
{
"label": "run-adapter",
"presentation": {
"echo": true,
"reveal": "always",
"focus": false,
"panel": "new",
"showReuseMessage": false,
"clear": false
},
"type": "shell",
"group": "build",
"isBackground": true,
"dependsOn": [
"build adapter"
],
"command": "cd '${workspaceFolder:Nuts.Telecom.CrmBackendAdapter}\\Nuts.Telecom.CrmBackendAdapter.WinService' && 'bin\\Debug\\Nuts.Telecom.CrmBackendAdapter'.WinService.exe",
"problemMatcher": []
},
{
"label": "test",
"command": "dotnet",
"type": "shell",
"args": [
"test",
"/property:GenerateFullPaths=true",
"/consoleloggerparameters:NoSummary"
],
"group": {
"kind": "test",
"isDefault": true
},
"presentation": {
"reveal": "always"
},
"problemMatcher": "$msCompile"
}
]
},
"launch": {
"version": "0.2.0",
"configurations": [
{
"name": "PowerShell: Launch Current File",
"type": "PowerShell",
"request": "launch",
"script": "${file}",
"cwd": "${file}"
},
{
// https://github.com/OmniSharp/omnisharp-vscode/wiki/Desktop-.NET-Framework
"name": "Run CrmBackend.Adapter",
"type": "clr",
"program": "Debug\\Nuts.Telecom.CrmBackendAdapter.WinService.exe",
"preLaunchTask": "build-adapter",
"console": "externalTerminal",
"request": "launch",
"cwd": "${workspaceFolder:Nuts.Telecom.CrmBackendAdapter}\\Nuts.Telecom.CrmBackendAdapter.WinService\\bin",
"stopAtEntry": true
},
{
"name": ".NET Core Launch (web)",
"type": "coreclr",
"request": "launch",
"preLaunchTask": "build",
"console": "externalTerminal",
// If you have changed target frameworks, make sure to update the program path.
"program": "${workspaceFolder:Nuts.Telecom.Contacts}/Nuts.Telecom.Contacts.RestApi/bin/Debug/netcoreapp3.1/Nuts.Telecom.Contacts.RestApi.dll",
"args": [],
"cwd": "${workspaceFolder:Nuts.Telecom.Contacts}/Nuts.Telecom.Contacts.RestApi",
"stopAtEntry": false,
"env": {
"ASPNETCORE_ENVIRONMENT": "Development"
}
},
]
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment