Skip to content

Commit 797c14a

Browse files
committed
删除不必要的内容。增加支持的版本
1 parent 0d13f06 commit 797c14a

19 files changed

Lines changed: 70 additions & 50 deletions

File tree

.gitignore

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,4 +69,7 @@ AgentHelper/
6969
Task.md
7070
manual/dev
7171
build.ps1
72-
build.sh
72+
build.sh
73+
publish-nuget.ps1
74+
global.json
75+
push-nuget.ps1

AutoSettingUI.Demo.Shared/AutoSettingUI.Demo.Shared.csproj

Lines changed: 0 additions & 9 deletions
This file was deleted.

AutoSettingUI.Demo.Shared/Class1.cs

Lines changed: 0 additions & 5 deletions
This file was deleted.

AutoSettingUI.Extension.Shared/AutoSettingUI.Extension.Shared.csproj

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22

33
<PropertyGroup>
4-
<TargetFramework>net9.0</TargetFramework>
4+
<TargetFrameworks>net8.0;net9.0;net10.0</TargetFrameworks>
55
<ImplicitUsings>enable</ImplicitUsings>
66
<Nullable>enable</Nullable>
77
<IsAotCompatible>true</IsAotCompatible>
88
<EnableTrimAnalyzer>true</EnableTrimAnalyzer>
9+
<NoWarn>$(NoWarn);IL2026;IL2057;IL2070;IL2072;IL2075;IL3050</NoWarn>
910

1011
<!-- NuGet Packaging -->
1112
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>

Demo/AutoSettingUI.Avalonia.CrossPlatform.Demo/AutoSettingUI.Avalonia.CrossPlatform.Demo.Android/AutoSettingUI.Avalonia.CrossPlatform.Demo.Android.csproj

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
<TargetFramework>net9.0-android</TargetFramework>
55
<SupportedOSPlatformVersion>21</SupportedOSPlatformVersion>
66
<Nullable>enable</Nullable>
7+
<NoWarn>$(NoWarn);MSB3277;XA0141</NoWarn>
78
<ApplicationId>com.CompanyName.AutoSettingUI.Avalonia.CrossPlatform.Demo</ApplicationId>
89
<ApplicationVersion>1</ApplicationVersion>
910
<ApplicationDisplayVersion>1.0</ApplicationDisplayVersion>

Demo/AutoSettingUI.Avalonia.CrossPlatform.Demo/AutoSettingUI.Avalonia.CrossPlatform.Demo.Browser/AutoSettingUI.Avalonia.CrossPlatform.Demo.Browser.csproj

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
<OutputType>Exe</OutputType>
55
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
66
<Nullable>enable</Nullable>
7+
<NoWarn>$(NoWarn);MSB3277</NoWarn>
78
</PropertyGroup>
89

910
<ItemGroup>
@@ -13,4 +14,5 @@
1314
<ItemGroup>
1415
<ProjectReference Include="..\AutoSettingUI.Avalonia.CrossPlatform.Demo\AutoSettingUI.Avalonia.CrossPlatform.Demo.csproj"/>
1516
</ItemGroup>
17+
1618
</Project>

Demo/AutoSettingUI.Avalonia.CrossPlatform.Demo/AutoSettingUI.Avalonia.CrossPlatform.Demo.iOS/AutoSettingUI.Avalonia.CrossPlatform.Demo.iOS.csproj

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
<TargetFramework>net9.0-ios</TargetFramework>
55
<SupportedOSPlatformVersion>13.0</SupportedOSPlatformVersion>
66
<Nullable>enable</Nullable>
7+
<NoWarn>$(NoWarn);MSB3277</NoWarn>
78
</PropertyGroup>
89

910
<ItemGroup>

Demo/AutoSettingUI.Avalonia.CrossPlatform.Demo/AutoSettingUI.Avalonia.CrossPlatform.Demo/AutoSettingUI.Avalonia.CrossPlatform.Demo.csproj

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
<Nullable>enable</Nullable>
55
<LangVersion>latest</LangVersion>
66
<AvaloniaUseCompiledBindingsByDefault>true</AvaloniaUseCompiledBindingsByDefault>
7+
<NoWarn>$(NoWarn);IL2026;IL2057;IL2067;IL2070;IL2072;IL2075;IL2104;IL3050</NoWarn>
78

89
<PublishAot>true</PublishAot>
910
<SelfContained>true</SelfContained>
@@ -30,7 +31,16 @@
3031
<ItemGroup>
3132
<ProjectReference Include="..\..\..\src\AutoSettingUI.Core\AutoSettingUI.Core.csproj"/>
3233
<ProjectReference Include="..\..\..\src\Extensions\AutoSettingUI.Avalonia\AutoSettingUI.Avalonia.csproj"/>
33-
<!-- 直接引用Generator以确保为Demo项目中的Models生成AOT代码 -->
34-
<ProjectReference Include="..\..\..\src\AutoSettingUI.Generator\AutoSettingUI.Generator.csproj" OutputItemType="Analyzer" ReferenceOutputAssembly="false"/>
34+
</ItemGroup>
35+
36+
<!-- Generator: project reference for normal builds, prebuilt analyzer for AOT publish -->
37+
<ItemGroup Condition="'$(PublishAot)' != 'true'">
38+
<ProjectReference Include="..\..\..\src\AutoSettingUI.Generator\AutoSettingUI.Generator.csproj"
39+
OutputItemType="Analyzer"
40+
ReferenceOutputAssembly="false"/>
41+
</ItemGroup>
42+
43+
<ItemGroup Condition="'$(PublishAot)' == 'true'">
44+
<Analyzer Include="..\..\..\src\AutoSettingUI.Generator\bin\Release\netstandard2.0\AutoSettingUI.Generator.dll" />
3545
</ItemGroup>
3646
</Project>

Demo/AutoSettingUI.Ursa.Demo/AutoSettingUI.Ursa.Demo.csproj

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
<ApplicationManifest>app.manifest</ApplicationManifest>
88
<IsAotCompatible>true</IsAotCompatible>
99
<AvaloniaUseCompiledBindingsByDefault>true</AvaloniaUseCompiledBindingsByDefault>
10+
<NoWarn>$(NoWarn);IL2026;IL2057;IL2067;IL2070;IL2072;IL2075;IL2104;IL3050</NoWarn>
1011

1112
<PublishAot>true</PublishAot>
1213
<SelfContained>true</SelfContained>
@@ -35,8 +36,18 @@
3536
</ItemGroup>
3637

3738
<ItemGroup>
38-
<ProjectReference Include="..\..\src\Extensions\AutoSettingUI.Ursa\AutoSettingUI.Ursa.csproj" />
39-
<!-- 直接引用Generator以确保为Demo项目中的Models生成AOT代码 -->
40-
<ProjectReference Include="..\..\src\AutoSettingUI.Generator\AutoSettingUI.Generator.csproj" OutputItemType="Analyzer" ReferenceOutputAssembly="false" />
39+
<ProjectReference Include="..\..\src\Extensions\AutoSettingUI.Ursa\AutoSettingUI.Ursa.csproj"
40+
RemoveProperties="PublishAot" />
41+
</ItemGroup>
42+
43+
<!-- Generator: project reference for normal builds, prebuilt analyzer for AOT publish -->
44+
<ItemGroup Condition="'$(PublishAot)' != 'true'">
45+
<ProjectReference Include="..\..\src\AutoSettingUI.Generator\AutoSettingUI.Generator.csproj"
46+
OutputItemType="Analyzer"
47+
ReferenceOutputAssembly="false" />
48+
</ItemGroup>
49+
50+
<ItemGroup Condition="'$(PublishAot)' == 'true'">
51+
<Analyzer Include="..\..\src\AutoSettingUI.Generator\bin\Release\netstandard2.0\AutoSettingUI.Generator.dll" />
4152
</ItemGroup>
4253
</Project>

README.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,11 @@ Install the package for your preferred UI framework:
2626
<PackageReference Include="AutoSettingUI.WPF" Version="1.0.0" />
2727
```
2828

29-
> **Note:** `AutoSettingUI.Core` and `AutoSettingUI.Generator` are automatically included as dependencies.
29+
> **Note:** `AutoSettingUI.Core` is automatically included as a dependency. `AutoSettingUI.Generator` is only needed for AOT and should be referenced by the app project.
30+
31+
**Target frameworks:** `AutoSettingUI.Core`, `AutoSettingUI.Avalonia`, and `AutoSettingUI.Ursa` target `net8.0;net9.0;net10.0`. `AutoSettingUI.WPF` targets `net8.0-windows;net9.0-windows;net10.0-windows`.
32+
33+
**Avalonia version range:** `AutoSettingUI.Avalonia` references `[11.0.0,12.0.0)`. `AutoSettingUI.Ursa` references `[11.1.1,12.0.0)` (Ursa 1.13.0 requires Avalonia >= 11.1.1).
3034

3135
## Quick Start
3236

0 commit comments

Comments
 (0)