Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Add config for VS Code for WinAppSDK #863

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
36 changes: 36 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,42 @@
"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/MyExtensionsApp.1.exe",
// "args": [],
// "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
]
}
57 changes: 57 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,63 @@
"/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",
// "--output", "${workspaceFolder}/MyExtensionsApp.1/bin/Debug/net8.0-windows10.0.19041/AppX/"
// ],
// "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",
// "--output", "${workspaceFolder}/MyExtensionsApp.1/bin/Debug/net8.0-windows10.0.19041/AppX/"
// ],
// "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
Loading