From 64fd8a787aa0cc69c2de0618aef8072f9c8cd013 Mon Sep 17 00:00:00 2001
From: Zhang Dian <54255897+zdpcdt@users.noreply.github.com>
Date: Mon, 30 Dec 2024 14:08:24 +0800
Subject: [PATCH] misc: enhance .csproj files.
---
demo/Directory.Build.props | 9 ++++----
demo/Semi.Avalonia.Demo.Desktop/Program.cs | 10 ++++-----
.../Semi.Avalonia.Demo.Desktop.csproj | 8 +++----
demo/Semi.Avalonia.Demo.Drm/Program.cs | 2 +-
.../Semi.Avalonia.Demo.Drm.csproj | 10 ++++-----
.../Semi.Avalonia.Demo.Web.csproj | 1 +
.../Semi.Avalonia.Demo.csproj | 22 +++++++++++--------
.../Program.cs | 6 ++---
.../Semi.Avalonia.TreeDataGrid.Demo.csproj | 17 ++++++++------
.../Semi.Avalonia.DataGrid.csproj | 2 +-
10 files changed, 44 insertions(+), 43 deletions(-)
diff --git a/demo/Directory.Build.props b/demo/Directory.Build.props
index 65b1f445..d73fa6aa 100644
--- a/demo/Directory.Build.props
+++ b/demo/Directory.Build.props
@@ -1,7 +1,6 @@
-
- enable
- 11.2.2
- 8.3.2
-
+
+ 11.2.3
+ 8.4.0
+
diff --git a/demo/Semi.Avalonia.Demo.Desktop/Program.cs b/demo/Semi.Avalonia.Demo.Desktop/Program.cs
index f6fb44db..8de4d498 100644
--- a/demo/Semi.Avalonia.Demo.Desktop/Program.cs
+++ b/demo/Semi.Avalonia.Demo.Desktop/Program.cs
@@ -1,13 +1,11 @@
-using Avalonia;
+using System;
+using Avalonia;
using Avalonia.Dialogs;
using Avalonia.Media;
-using System;
-using System.Linq;
-using System.Threading;
namespace Semi.Avalonia.Demo.Desktop;
-class Program
+sealed class Program
{
// Initialization code. Don't use any Avalonia, third-party APIs or any
// SynchronizationContext-reliant code before AppMain is called: things aren't initialized
@@ -33,4 +31,4 @@ public static AppBuilder BuildAvaloniaApp()
.UsePlatformDetect()
.With(new Win32PlatformOptions())
.LogToTrace();
-}
+}
\ No newline at end of file
diff --git a/demo/Semi.Avalonia.Demo.Desktop/Semi.Avalonia.Demo.Desktop.csproj b/demo/Semi.Avalonia.Demo.Desktop/Semi.Avalonia.Demo.Desktop.csproj
index d697ebd7..0024d30b 100644
--- a/demo/Semi.Avalonia.Demo.Desktop/Semi.Avalonia.Demo.Desktop.csproj
+++ b/demo/Semi.Avalonia.Demo.Desktop/Semi.Avalonia.Demo.Desktop.csproj
@@ -19,16 +19,14 @@
-
+
-
-
-
+
-
+
diff --git a/demo/Semi.Avalonia.Demo.Drm/Program.cs b/demo/Semi.Avalonia.Demo.Drm/Program.cs
index 5a7662f0..c04db703 100644
--- a/demo/Semi.Avalonia.Demo.Drm/Program.cs
+++ b/demo/Semi.Avalonia.Demo.Drm/Program.cs
@@ -7,7 +7,7 @@
namespace Semi.Avalonia.Demo.Drm;
-class Program
+sealed class Program
{
// Initialization code. Don't use any Avalonia, third-party APIs or any
// SynchronizationContext-reliant code before AppMain is called: things aren't initialized
diff --git a/demo/Semi.Avalonia.Demo.Drm/Semi.Avalonia.Demo.Drm.csproj b/demo/Semi.Avalonia.Demo.Drm/Semi.Avalonia.Demo.Drm.csproj
index 2671f209..c9d6d527 100644
--- a/demo/Semi.Avalonia.Demo.Drm/Semi.Avalonia.Demo.Drm.csproj
+++ b/demo/Semi.Avalonia.Demo.Drm/Semi.Avalonia.Demo.Drm.csproj
@@ -19,17 +19,15 @@
-
+
-
-
-
-
+
+
-
+
diff --git a/demo/Semi.Avalonia.Demo.Web/Semi.Avalonia.Demo.Web.csproj b/demo/Semi.Avalonia.Demo.Web/Semi.Avalonia.Demo.Web.csproj
index 938a5699..be7b9425 100644
--- a/demo/Semi.Avalonia.Demo.Web/Semi.Avalonia.Demo.Web.csproj
+++ b/demo/Semi.Avalonia.Demo.Web/Semi.Avalonia.Demo.Web.csproj
@@ -3,6 +3,7 @@
net8.0-browser
Exe
true
+ enable
diff --git a/demo/Semi.Avalonia.Demo/Semi.Avalonia.Demo.csproj b/demo/Semi.Avalonia.Demo/Semi.Avalonia.Demo.csproj
index 9e5c54a0..1c20dc6e 100644
--- a/demo/Semi.Avalonia.Demo/Semi.Avalonia.Demo.csproj
+++ b/demo/Semi.Avalonia.Demo/Semi.Avalonia.Demo.csproj
@@ -4,22 +4,26 @@
enable
latest
-
+
-
+
-
-
+
+
+
-
-
+
+ None
+ All
+
+
-
-
-
+
+
+
diff --git a/demo/Semi.Avalonia.TreeDataGrid.Demo/Program.cs b/demo/Semi.Avalonia.TreeDataGrid.Demo/Program.cs
index b0b60d90..bcf0ebdc 100644
--- a/demo/Semi.Avalonia.TreeDataGrid.Demo/Program.cs
+++ b/demo/Semi.Avalonia.TreeDataGrid.Demo/Program.cs
@@ -1,10 +1,10 @@
-using Avalonia;
-using System;
+using System;
+using Avalonia;
using Avalonia.Media;
namespace Semi.Avalonia.TreeDataGrid.Demo;
-class Program
+sealed class Program
{
// Initialization code. Don't use any Avalonia, third-party APIs or any
// SynchronizationContext-reliant code before AppMain is called: things aren't initialized
diff --git a/demo/Semi.Avalonia.TreeDataGrid.Demo/Semi.Avalonia.TreeDataGrid.Demo.csproj b/demo/Semi.Avalonia.TreeDataGrid.Demo/Semi.Avalonia.TreeDataGrid.Demo.csproj
index 9327faec..30c42326 100644
--- a/demo/Semi.Avalonia.TreeDataGrid.Demo/Semi.Avalonia.TreeDataGrid.Demo.csproj
+++ b/demo/Semi.Avalonia.TreeDataGrid.Demo/Semi.Avalonia.TreeDataGrid.Demo.csproj
@@ -12,18 +12,21 @@
-
+
-
-
+
+
-
-
+
+ None
+ All
+
+
-
-
+
+
diff --git a/src/Semi.Avalonia.DataGrid/Semi.Avalonia.DataGrid.csproj b/src/Semi.Avalonia.DataGrid/Semi.Avalonia.DataGrid.csproj
index a4b94310..664926f7 100644
--- a/src/Semi.Avalonia.DataGrid/Semi.Avalonia.DataGrid.csproj
+++ b/src/Semi.Avalonia.DataGrid/Semi.Avalonia.DataGrid.csproj
@@ -1,7 +1,7 @@
-
+
Semi.Avalonia.DataGrid
Update to Semi.Avalonia.DataGrid 11.2.1.2