diff --git a/.vscode/launch.json b/.vscode/launch.json index 4c66257..010aabd 100644 --- a/.vscode/launch.json +++ b/.vscode/launch.json @@ -8,7 +8,7 @@ "name": ".NET Core Launch (console)", "type": "coreclr", "request": "launch", - "preLaunchTask": "build", + "preLaunchTask": "build cli", "program": "${workspaceFolder}/src/ConsoleApp/FileTime.ConsoleUI/bin/Debug/net6.0/FileTime.ConsoleUI.dll", "args": [], "cwd": "${workspaceFolder}/src/ConsoleApp/FileTime.ConsoleUI", @@ -19,44 +19,6 @@ "name": ".NET Core Attach", "type": "coreclr", "request": "attach" - }, - { - // 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": "Skia.GTK (Debug)", - "type": "coreclr", - "request": "launch", - "preLaunchTask": "build-skia-gtk", - // If you have changed target frameworks, make sure to update the program path. - "program": "${workspaceFolder}/src/GuiApp/FileTime.Uno/FileTime.Uno.Skia.Gtk/bin/Debug/net6.0/FileTime.Uno.Skia.Gtk.dll", - "args": [], - "env": { - "DOTNET_MODIFIABLE_ASSEMBLIES": "debug" - }, - "cwd": "${workspaceFolder}/src/GuiApp/FileTime.Uno/FileTime.Uno.Skia.Gtk", - // For more information about the 'console' field, see https://aka.ms/VSCode-CS-LaunchJson-Console - "console": "internalConsole", - "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": "Skia.Linux.FrameBuffer (Debug)", - "type": "coreclr", - "request": "launch", - "preLaunchTask": "build-skia-gtk", - // If you have changed target frameworks, make sure to update the program path. - "program": "${workspaceFolder}/src/GuiApp/FileTime.Uno/FileTime.Uno.Skia.Linux.FrameBuffer/bin/Debug/net6.0/FileTime.Uno.Skia.Linux.FrameBuffer.dll", - "args": [], - "env": { - "DOTNET_MODIFIABLE_ASSEMBLIES": "debug" - }, - "cwd": "${workspaceFolder}/src/GuiApp/FileTime.Uno/FileTime.Uno.Skia.Linux.FrameBuffer", - // For more information about the 'console' field, see https://aka.ms/VSCode-CS-LaunchJson-Console - "console": "internalConsole", - "stopAtEntry": false } ] } diff --git a/.vscode/tasks.json b/.vscode/tasks.json index af93506..b17530d 100644 --- a/.vscode/tasks.json +++ b/.vscode/tasks.json @@ -2,7 +2,7 @@ "version": "2.0.0", "tasks": [ { - "label": "build", + "label": "build cli", "command": "dotnet", "type": "process", "args": [ @@ -14,7 +14,7 @@ "problemMatcher": "$msCompile" }, { - "label": "publish", + "label": "publish cli", "command": "dotnet", "type": "process", "args": [ @@ -26,7 +26,7 @@ "problemMatcher": "$msCompile" }, { - "label": "publish singlefile linux", + "label": "publish singlefile linux cli", "command": "dotnet", "type": "process", "args": [ @@ -43,7 +43,7 @@ "problemMatcher": "$msCompile" }, { - "label": "publish singlefile windows", + "label": "publish singlefile windows cli", "command": "dotnet", "type": "process", "args": [ @@ -59,6 +59,20 @@ ], "problemMatcher": "$msCompile" }, + { + "label": "publish windows gui", + "command": "dotnet", + "type": "process", + "args": [ + "publish", + "${workspaceFolder}/src/GuiApp/FileTime.Avalonia/FileTime.Avalonia.csproj", + "-c", + "Release", + "-r", + "win-x64" + ], + "problemMatcher": "$msCompile" + }, { "label": "watch", "command": "dotnet", @@ -71,42 +85,6 @@ "/consoleloggerparameters:NoSummary" ], "problemMatcher": "$msCompile" - }, - { - "label": "build-skia-gtk", - "command": "dotnet", - "type": "process", - "args": [ - "build", - "${workspaceFolder}/src/GuiApp/FileTime.Uno/FileTime.Uno.Skia.Gtk/FileTime.Uno.Skia.Gtk.csproj", - "/property:GenerateFullPaths=true", - "/consoleloggerparameters:NoSummary" - ], - "problemMatcher": "$msCompile" - }, - { - "label": "publish-skia-gtk", - "command": "dotnet", - "type": "process", - "args": [ - "publish", - "${workspaceFolder}/src//GuiApp/FileTime.Uno/FileTime.Uno.Skia.Gtk/FileTime.Uno.Skia.Gtk.csproj", - "/property:GenerateFullPaths=true", - "/consoleloggerparameters:NoSummary" - ], - "problemMatcher": "$msCompile" - }, - { - "label": "build-skia-framebuffer", - "command": "dotnet", - "type": "process", - "args": [ - "build", - "${workspaceFolder}/src/GuiApp/FileTime.Uno/FileTime.Uno.Skia.Linux.FrameBuffer/FileTime.Uno.Skia.Linux.FrameBuffer.csproj", - "/property:GenerateFullPaths=true", - "/consoleloggerparameters:NoSummary" - ], - "problemMatcher": "$msCompile" - }, + } ] } diff --git a/src/global.json b/src/global.json new file mode 100644 index 0000000..05958ac --- /dev/null +++ b/src/global.json @@ -0,0 +1,3 @@ +{ + "sdk": { "version": "6.0.101" } +}