diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 286a5c8..530c9d4 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -20,14 +20,14 @@ jobs: fetch-depth: 0 ref: release - name: Build - run: dotnet build Needlework.Net.Desktop -c Release + run: dotnet build Needlework.Net -c Release - name: Publish - run: dotnet publish Needlework.Net.Desktop -c Release -p:PublishSingleFile=true -p:IncludeNativeLibrariesForSelfExtract=true -p:DebugType=None -p:DebugSymbols=false -o publish -r win-x64 --self-contained=false + run: dotnet publish Needlework.Net -c Release -p:PublishSingleFile=true -p:IncludeNativeLibrariesForSelfExtract=true -p:DebugType=None -p:DebugSymbols=false -o publish -r win-x64 --self-contained=false - name: Get Version id: version shell: powershell run: | - $xml=[xml](Get-Content .\Needlework.Net.Desktop\Needlework.Net.Desktop.csproj) + $xml=[xml](Get-Content .\Needlework.Net\Needlework.Net.csproj) $ver=($xml.Project.PropertyGroup).AssemblyVersion $ver="VERSION=$ver" $ver=$ver -replace '\s','' diff --git a/Needlework.Net.sln b/Needlework.Net.sln index 03b71a2..44bbbb1 100644 --- a/Needlework.Net.sln +++ b/Needlework.Net.sln @@ -5,7 +5,7 @@ VisualStudioVersion = 17.0.31903.59 MinimumVisualStudioVersion = 10.0.40219.1 Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Needlework.Net.Core", "Needlework.Net.Core\Needlework.Net.Core.csproj", "{B14E1B39-3C5A-400F-8148-CC3A4833CBC4}" EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Needlework.Net.Desktop", "Needlework.Net.Desktop\Needlework.Net.Desktop.csproj", "{7388B579-2DC0-46D6-957A-6683D0FCF5D3}" +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Needlework.Net", "Needlework.Net\Needlework.Net.csproj", "{7388B579-2DC0-46D6-957A-6683D0FCF5D3}" EndProject Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Needlework.Net.Core.Tests", "Needlework.Net.Core.Tests\Needlework.Net.Core.Tests.csproj", "{0E08542E-6E3F-4825-9F9C-7D6275D6AEC5}" EndProject diff --git a/Needlework.Net.Desktop/App.axaml b/Needlework.Net/App.axaml similarity index 87% rename from Needlework.Net.Desktop/App.axaml rename to Needlework.Net/App.axaml index 55e49e6..02d7a64 100644 --- a/Needlework.Net.Desktop/App.axaml +++ b/Needlework.Net/App.axaml @@ -1,8 +1,8 @@ diff --git a/Needlework.Net.Desktop/App.axaml.cs b/Needlework.Net/App.axaml.cs similarity index 91% rename from Needlework.Net.Desktop/App.axaml.cs rename to Needlework.Net/App.axaml.cs index 2ec30c9..2ee5261 100644 --- a/Needlework.Net.Desktop/App.axaml.cs +++ b/Needlework.Net/App.axaml.cs @@ -3,12 +3,12 @@ using Avalonia.Controls; using Avalonia.Controls.ApplicationLifetimes; using Avalonia.Markup.Xaml; using Microsoft.Extensions.DependencyInjection; -using Needlework.Net.Desktop.ViewModels; -using Needlework.Net.Desktop.Views; +using Needlework.Net.ViewModels; +using Needlework.Net.Views; using System; using System.Text.Json; -namespace Needlework.Net.Desktop; +namespace Needlework.Net; public partial class App(IServiceProvider serviceProvider) : Application { diff --git a/Needlework.Net.Desktop/Assets/Icons/home.png b/Needlework.Net/Assets/Icons/home.png similarity index 100% rename from Needlework.Net.Desktop/Assets/Icons/home.png rename to Needlework.Net/Assets/Icons/home.png diff --git a/Needlework.Net.Desktop/Assets/Icons/info-circle.png b/Needlework.Net/Assets/Icons/info-circle.png similarity index 100% rename from Needlework.Net.Desktop/Assets/Icons/info-circle.png rename to Needlework.Net/Assets/Icons/info-circle.png diff --git a/Needlework.Net.Desktop/Assets/Icons/list-alt.png b/Needlework.Net/Assets/Icons/list-alt.png similarity index 100% rename from Needlework.Net.Desktop/Assets/Icons/list-alt.png rename to Needlework.Net/Assets/Icons/list-alt.png diff --git a/Needlework.Net.Desktop/Assets/Icons/plug.png b/Needlework.Net/Assets/Icons/plug.png similarity index 100% rename from Needlework.Net.Desktop/Assets/Icons/plug.png rename to Needlework.Net/Assets/Icons/plug.png diff --git a/Needlework.Net.Desktop/Assets/Icons/terminal.png b/Needlework.Net/Assets/Icons/terminal.png similarity index 100% rename from Needlework.Net.Desktop/Assets/Icons/terminal.png rename to Needlework.Net/Assets/Icons/terminal.png diff --git a/Needlework.Net.Desktop/Assets/about.png b/Needlework.Net/Assets/about.png similarity index 100% rename from Needlework.Net.Desktop/Assets/about.png rename to Needlework.Net/Assets/about.png diff --git a/Needlework.Net.Desktop/Assets/app.ico b/Needlework.Net/Assets/app.ico similarity index 100% rename from Needlework.Net.Desktop/Assets/app.ico rename to Needlework.Net/Assets/app.ico diff --git a/Needlework.Net.Desktop/Assets/app.png b/Needlework.Net/Assets/app.png similarity index 100% rename from Needlework.Net.Desktop/Assets/app.png rename to Needlework.Net/Assets/app.png diff --git a/Needlework.Net.Desktop/Controls/BusyArea.axaml b/Needlework.Net/Controls/BusyArea.axaml similarity index 94% rename from Needlework.Net.Desktop/Controls/BusyArea.axaml rename to Needlework.Net/Controls/BusyArea.axaml index 51056a7..4b6ad74 100644 --- a/Needlework.Net.Desktop/Controls/BusyArea.axaml +++ b/Needlework.Net/Controls/BusyArea.axaml @@ -2,9 +2,9 @@ xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" - xmlns:controls="using:Needlework.Net.Desktop.Controls" + xmlns:controls="using:Needlework.Net.Controls" mc:Ignorable="d" d:DesignWidth="800" d:DesignHeight="450" - x:Class="Needlework.Net.Desktop.Controls.BusyArea"> + x:Class="Needlework.Net.Controls.BusyArea">