diff --git a/.vscode/tasks.json b/.vscode/tasks.json
index 6ae7b4f..d66ae11 100644
--- a/.vscode/tasks.json
+++ b/.vscode/tasks.json
@@ -22,6 +22,37 @@
}
}
},
+ {
+ "label": "publish",
+ "command": "dotnet",
+ "type": "process",
+ "args": [
+ "publish",
+ "${workspaceFolder}/src/Duempelkas.Desktop/Duempelkas.Desktop.csproj",
+ "-c",
+ "Release",
+ "-r",
+ "win-x64",
+ "--self-contained",
+ "true",
+ "/p:PublishSingleFile=true",
+ "/p:EnableCompressionInSingleFile=true",
+ "/p:IncludeNativeLibrariesForSelfExtract=true",
+ "/p:IncludeAllContentForSelfExtract=true",
+ "/p:DebugType=None",
+ "/p:DebugSymbols=false",
+ "-o",
+ "${workspaceFolder}/Publish"
+ ],
+ "problemMatcher": "$msCompile",
+ "options": {
+ "statusbar": {
+ "label": "$(package) Publish",
+ "color": "#22c55e",
+ "detail": "Publish desktop app into Publish folder"
+ }
+ }
+ },
{
"label": "watch",
"command": "dotnet",
@@ -34,6 +65,10 @@
],
"problemMatcher": "$msCompile",
"isBackground": true,
+ "presentation": {
+ "reveal": "never",
+ "panel": "dedicated"
+ },
"options": {
"statusbar": {
"label": "$(eye) Watch",
diff --git a/src/Duempelkas.App/Components/Layout/MainLayout.razor b/src/Duempelkas.App/Components/Layout/MainLayout.razor
index ee4eea7..16c7827 100644
--- a/src/Duempelkas.App/Components/Layout/MainLayout.razor
+++ b/src/Duempelkas.App/Components/Layout/MainLayout.razor
@@ -1,4 +1,5 @@
@inherits LayoutComponentBase
+@using System.Reflection