diff --git a/src/Uno.Templates/content/unoapp/.vscode/launch.json b/src/Uno.Templates/content/unoapp/.vscode/launch.json index 65647cd0..e123613e 100644 --- a/src/Uno.Templates/content/unoapp/.vscode/launch.json +++ b/src/Uno.Templates/content/unoapp/.vscode/launch.json @@ -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 ] } diff --git a/src/Uno.Templates/content/unoapp/.vscode/tasks.json b/src/Uno.Templates/content/unoapp/.vscode/tasks.json index d94afd64..7f4ec991 100644 --- a/src/Uno.Templates/content/unoapp/.vscode/tasks.json +++ b/src/Uno.Templates/content/unoapp/.vscode/tasks.json @@ -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 ]