Skip to content

Commit

Permalink
feat: Add config for VS Code for WinAppSDK
Browse files Browse the repository at this point in the history
  • Loading branch information
agneszitte committed Jul 18, 2024
1 parent 7afc508 commit c7807d7
Show file tree
Hide file tree
Showing 2 changed files with 92 additions and 0 deletions.
37 changes: 37 additions & 0 deletions src/Uno.Templates/content/unoapp/.vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,43 @@
"console": "internalConsole",
"stopAtEntry": false
},
//#endif
//#if (useWinAppSdk)
// Commenting WinAppSDK Packaged at the moment as I am still doing some tests
// {
// // 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
// "name": "Uno Platform WinAppSDK Packaged Debug",
// "type": "coreclr",
// "request": "launch",
// "preLaunchTask": "build-win-packaged",
// "program": "${workspaceFolder}/MyExtensionsApp.1/bin/Debug/$baseTargetFramework$-windows10.0.19041/AppX/...",
// "args": [],
// "launchSettingsProfile": "MyExtensionsApp.1 (WinAppSDK Packaged)",
// "cwd": "${workspaceFolder}/MyExtensionsApp.1",
// // For more information about the 'console' field, see https://aka.ms/VSCode-CS-LaunchJson-Console
// "console": "internalConsole",
// "internalConsoleOptions": "openOnSessionStart",
// "stopAtEntry": false
// },
{
// 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
"name": "Uno Platform WinAppSDK Unpackaged Debug",
"type": "coreclr",
"request": "launch",
"preLaunchTask": "build-win-unpackaged",
"program": "${workspaceFolder}/MyExtensionsApp.1/bin/Debug/$baseTargetFramework$-windows10.0.19041/MyExtensionsApp.1.exe",
"args": [],
"launchSettingsProfile": "MyExtensionsApp.1 (WinAppSDK Unpackaged)",
"cwd": "${workspaceFolder}/MyExtensionsApp.1",
// For more information about the 'console' field, see https://aka.ms/VSCode-CS-LaunchJson-Console
"console": "internalConsole",
"internalConsoleOptions": "openOnSessionStart",
"stopAtEntry": false
}
//#endif
]
}
55 changes: 55 additions & 0 deletions src/Uno.Templates/content/unoapp/.vscode/tasks.json
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,61 @@
"/consoleloggerparameters:NoSummary"
],
"problemMatcher": "$msCompile"
},
//#endif
//#if (useWinAppSdk)
// Commenting WinAppSDK Packaged at the moment as I am still doing some tests (verifying if I need to use msbuild instead here)
// {
// "label": "build-win-packaged",
// "command": "dotnet",
// "type": "process",
// "args": [
// "build",
// "${workspaceFolder}/MyExtensionsApp.1/MyExtensionsApp.1.csproj",
// "/property:GenerateFullPaths=true",
// "/property:TargetFramework=$baseTargetFramework$-net8.0-windows10.0.19041",
// "/consoleloggerparameters:NoSummary"
// ],
// "problemMatcher": "$msCompile"
// },
// {
// "label": "publish-win-packaged",
// "command": "dotnet",
// "type": "process",
// "args": [
// "publish",
// "${workspaceFolder}/MyExtensionsApp.1/MyExtensionsApp.1.csproj",
// "/property:GenerateFullPaths=true",
// "/property:TargetFramework=$baseTargetFramework$-net8.0-windows10.0.19041",
// "/consoleloggerparameters:NoSummary"
// ],
// "problemMatcher": "$msCompile"
// },
{
"label": "build-win-unpackaged",
"command": "dotnet",
"type": "process",
"args": [
"build",
"${workspaceFolder}/MyExtensionsApp.1/MyExtensionsApp.1.csproj",
"/property:GenerateFullPaths=true",
"/property:TargetFramework=$baseTargetFramework$-net8.0-windows10.0.19041",
"/consoleloggerparameters:NoSummary"
],
"problemMatcher": "$msCompile"
},
{
"label": "publish-win-unpackaged",
"command": "dotnet",
"type": "process",
"args": [
"publish",
"${workspaceFolder}/MyExtensionsApp.1/MyExtensionsApp.1.csproj",
"/property:GenerateFullPaths=true",
"/property:TargetFramework=$baseTargetFramework$-net8.0-windows10.0.19041",
"/consoleloggerparameters:NoSummary"
],
"problemMatcher": "$msCompile"
}
//#endif
]
Expand Down

0 comments on commit c7807d7

Please sign in to comment.