Skip to content
Merged
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
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
runs-on: windows-latest

env:
Solution: "src/CleanMyPosts.sln"
Solution: "src/CleanMyPosts.slnx"
Test_Project: "src/Tests/Tests.csproj"
FORCE_COLOR: "true"
DOTNET_LOGGING__CONSOLE__COLORBEHAVIOR: Enabled
Expand All @@ -30,7 +30,7 @@ jobs:
- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: 9.x
dotnet-version: 10.x

- name: Install .NET Tools (local)
run: |
Expand Down
9 changes: 5 additions & 4 deletions .github/workflows/deploy-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ jobs:
runs-on: windows-latest

env:
Solution: "src/CleanMyPosts.sln"
UI_Project: "src/UI/UI.csproj"
Solution: "src/CleanMyPosts.slnx"
UI_Project: "src/CleanMyPosts/CleanMyPosts.csproj"
Test_Project: "src/Tests/Tests.csproj"
Installer_Script: "installer/Installer.iss"
FORCE_COLOR: "true"
Expand All @@ -32,7 +32,7 @@ jobs:
- name: Install .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: 9.x
dotnet-version: 10.x

- name: Install Inno Setup
run: choco install innosetup --yes
Expand Down Expand Up @@ -72,7 +72,8 @@ jobs:

- name: Build Installer x64
run: |
iscc "/DMyAppVersion=${{ env.VERSION }}" "/DMyAppExePath=..\\artifacts\\publish-x64\\*" "${{ env.Installer_Script }}"
$exePath = "${{ github.workspace }}\artifacts\publish-x64\CleanMyPosts.exe"
iscc "/DMyAppVersion=${{ env.VERSION }}" "/DMyAppExePath=$exePath" "${{ env.Installer_Script }}"

- name: Copy Installer Exe to Artifacts
run: |
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -370,3 +370,4 @@ installer/Output

github-stats.txt
/CleanMyPosts.sln.lnk
/CleanMyPosts.slnx.lnk
3 changes: 3 additions & 0 deletions release-notes/v2.1.2.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
### What's Changed

* Refactoring: Migrated to .NET 10 for improved platform compatibility.
56 changes: 0 additions & 56 deletions src/CleanMyPosts.sln

This file was deleted.

16 changes: 16 additions & 0 deletions src/CleanMyPosts.slnx
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
<Solution>
<Folder Name="/Solution Items/">
<File Path="../.editorconfig" />
<File Path="../.gitattributes" />
<File Path="../.gitignore" />
<File Path="../installer/Installer.iss" />
<File Path="../LICENSE.txt" />
<File Path="../README.md" />
</Folder>
<Folder Name="/Solution Items/workflows/">
<File Path="../.github/workflows/ci.yml" />
<File Path="../.github/workflows/deploy-release.yml" />
</Folder>
<Project Path="Tests/Tests.csproj" />
<Project Path="CleanMyPosts/CleanMyPosts.csproj" />
</Solution>
2 changes: 1 addition & 1 deletion src/UI/App.xaml → src/CleanMyPosts/App.xaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<Application
x:Class="CleanMyPosts.UI.App"
x:Class="CleanMyPosts.App"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
DispatcherUnhandledException="OnDispatcherUnhandledException"
Expand Down
6 changes: 3 additions & 3 deletions src/UI/App.xaml.cs → src/CleanMyPosts/App.xaml.cs
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
using System.Windows;
using System.Windows.Threading;
using CleanMyPosts.UI.Services;
using CleanMyPosts.UI.ViewModels;
using CleanMyPosts.Services;
using CleanMyPosts.ViewModels;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.Hosting;
using Microsoft.Extensions.Logging;
using Serilog;

namespace CleanMyPosts.UI;
namespace CleanMyPosts;

public partial class App : Application
{
Expand Down
File renamed without changes.
File renamed without changes
File renamed without changes.
38 changes: 19 additions & 19 deletions src/UI/UI.csproj → src/CleanMyPosts/CleanMyPosts.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -5,33 +5,37 @@
<UseWPF>true</UseWPF>
<ApplicationManifest>app.manifest</ApplicationManifest>
<ImplicitUsings>enable</ImplicitUsings>
<RootNamespace>CleanMyPosts.UI</RootNamespace>
<DefaultNamespace>CleanMyPosts.UI</DefaultNamespace>
<RootNamespace>CleanMyPosts</RootNamespace>
<DefaultNamespace>CleanMyPosts</DefaultNamespace>
<ApplicationIcon>Assets\logo.ico</ApplicationIcon>
<AssemblyName>CleanMyPosts</AssemblyName>
<TargetFramework>net9.0-windows</TargetFramework>
<Version>2.0.1</Version>
<TargetFramework>net10.0-windows</TargetFramework>
<Version>2.1.2</Version>
<IncludeSourceRevisionInInformationalVersion>false</IncludeSourceRevisionInInformationalVersion>
<AnalysisLevel>latest</AnalysisLevel>
<EnableNETAnalyzers>True</EnableNETAnalyzers>
</PropertyGroup>

<ItemGroup>

<PackageReference Include="Ardalis.GuardClauses" Version="5.0.0" />
<PackageReference Include="Microsoft.Extensions.Http" Version="10.0.1" />
<PackageReference Include="Newtonsoft.Json" Version="13.0.4" />
<PackageReference Include="Autoupdater.NET.Official" Version="1.9.2" />
<PackageReference Include="CommunityToolkit.Mvvm" Version="8.4.0" />
<PackageReference Include="MahApps.Metro" Version="2.4.10" />
<PackageReference Include="MahApps.Metro.IconPacks" Version="5.1.0" />
<PackageReference Include="MahApps.Metro.IconPacks.FontAwesome" Version="5.1.0" />
<PackageReference Include="MahApps.Metro.IconPacks.Material" Version="5.1.0" />
<PackageReference Include="Microsoft.Extensions.Hosting" Version="9.0.4" />
<PackageReference Include="Microsoft.Web.WebView2" Version="1.0.3179.45" />
<PackageReference Include="Serilog.Extensions.Hosting" Version="9.0.0" />
<PackageReference Include="Serilog.Extensions.Logging" Version="9.0.1" />
<PackageReference Include="Serilog.Settings.Configuration" Version="9.0.0" />
<PackageReference Include="Serilog.Sinks.Console" Version="6.0.0" />
<PackageReference Include="MahApps.Metro" Version="2.4.11" />
<PackageReference Include="MahApps.Metro.IconPacks" Version="6.2.1" />
<PackageReference Include="MahApps.Metro.IconPacks.FontAwesome" Version="6.2.1" />
<PackageReference Include="MahApps.Metro.IconPacks.Material" Version="6.2.1" />
<PackageReference Include="Microsoft.Extensions.Hosting" Version="10.0.1" />
<PackageReference Include="Microsoft.Web.WebView2" Version="1.0.3650.58" />
<PackageReference Include="Serilog.Extensions.Hosting" Version="10.0.0" />
<PackageReference Include="Serilog.Extensions.Logging" Version="10.0.0" />
<PackageReference Include="Serilog.Settings.Configuration" Version="10.0.0" />
<PackageReference Include="Serilog.Sinks.Console" Version="6.1.1" />
<PackageReference Include="Serilog.Sinks.Debug" Version="3.0.0" />
<PackageReference Include="Serilog.Sinks.File" Version="7.0.0" />
<PackageReference Include="SonarAnalyzer.CSharp" Version="10.10.0.116381">
<PackageReference Include="SonarAnalyzer.CSharp" Version="10.16.1.129956">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
Expand All @@ -43,10 +47,6 @@
</AssemblyAttribute>
</ItemGroup>

<ItemGroup>
<ProjectReference Include="..\Core\Core.csproj" />
</ItemGroup>

<ItemGroup>
<Resource Include="Assets\logo.ico">
<CopyToOutputDirectory>Never</CopyToOutputDirectory>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace CleanMyPosts.UI.Contracts.Activation;
namespace CleanMyPosts.Contracts.Activation;

public interface IActivationHandler
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
using CleanMyPosts.UI.ViewModels;
using CleanMyPosts.ViewModels;
using Microsoft.Extensions.Configuration;
using Serilog;

namespace CleanMyPosts.UI.Contracts.Services;
namespace CleanMyPosts.Contracts.Services;

public interface IAppSetupService
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace CleanMyPosts.Core.Contracts.Services;
namespace CleanMyPosts.Contracts.Services;

public interface IFileService
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
using CleanMyPosts.UI.ViewModels;
using CleanMyPosts.ViewModels;
using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.Hosting;

namespace CleanMyPosts.UI.Contracts.Services;
namespace CleanMyPosts.Contracts.Services;

public interface IHostService
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using System.Windows.Controls;

namespace CleanMyPosts.UI.Contracts.Services;
namespace CleanMyPosts.Contracts.Services;

public interface INavigationService
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using System.Windows.Controls;

namespace CleanMyPosts.UI.Contracts.Services;
namespace CleanMyPosts.Contracts.Services;

public interface IPageService
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using CleanMyPosts.UI.Models;
using CleanMyPosts.Models;

namespace CleanMyPosts.UI.Contracts.Services;
namespace CleanMyPosts.Contracts.Services;

public interface IUserSettingsService
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
using CleanMyPosts.UI.Models;
using CleanMyPosts.Models;
using Microsoft.Web.WebView2.Wpf;

namespace CleanMyPosts.UI.Contracts.Services;
namespace CleanMyPosts.Contracts.Services;

public interface IWebViewHostService
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using System.Windows;

namespace CleanMyPosts.UI.Contracts.Services;
namespace CleanMyPosts.Contracts.Services;

public interface IWindowManagerService
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace CleanMyPosts.UI.Contracts.Services;
namespace CleanMyPosts.Contracts.Services;

public interface IXScriptService
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace CleanMyPosts.UI.Contracts.ViewModels;
namespace CleanMyPosts.Contracts.ViewModels;

public interface INavigationAware
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using System.Windows.Controls;

namespace CleanMyPosts.UI.Contracts.Views;
namespace CleanMyPosts.Contracts.Views;

public interface IShellDialogWindow
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using System.Windows.Controls;

namespace CleanMyPosts.UI.Contracts.Views;
namespace CleanMyPosts.Contracts.Views;

public interface IShellWindow
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
using System.Globalization;
using System.Windows.Data;

namespace CleanMyPosts.UI.Converters;
namespace CleanMyPosts.Converters;

public class EnumToBooleanConverter : IValueConverter
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace CleanMyPosts.Core.Exception;
namespace CleanMyPosts.Exceptions;

/// <summary>
/// Represents errors that occur within the CleanMyPosts system.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
using System.Windows;
using System.Windows.Controls;

namespace CleanMyPosts.UI.Extensions;
namespace CleanMyPosts.Extensions;

public static class FrameExtensions
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
using CleanMyPosts.UI.Helpers;
using CleanMyPosts.UI.ViewModels;
using CleanMyPosts.Helpers;
using CleanMyPosts.ViewModels;
using Serilog;
using Serilog.Configuration;

namespace CleanMyPosts.UI.Extensions;
namespace CleanMyPosts.Extensions;

public static class LogViewModelSinkExtensions
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
using System.Windows;
using System.Windows.Controls;

namespace CleanMyPosts.UI.Extensions;
namespace CleanMyPosts.Extensions;

public static class WindowExtensions
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace CleanMyPosts.UI.Helpers;
namespace CleanMyPosts.Helpers;
public static class Helper
{
public static string CleanJsonResult(string json)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
using System.Text;
using CleanMyPosts.UI.ViewModels;

using System.Text;
using CleanMyPosts.ViewModels;
using Serilog.Core;
using Serilog.Events;

namespace CleanMyPosts.UI.Helpers;
namespace CleanMyPosts.Helpers;

public class LogViewModelSink(LogViewModel logViewModel) : ILogEventSink
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace CleanMyPosts.UI.Models;
namespace CleanMyPosts.Models;


public class AppConfig
Expand Down
Loading