Skip to content

feat: Adapt to UIGF 4.0 #1507

feat: Adapt to UIGF 4.0

feat: Adapt to UIGF 4.0 #1507

Triggered via pull request January 22, 2025 04:31
Status Success
Total duration 7m 15s
Artifacts 4

build.yml

on: pull_request
Matrix: build
Fit to window
Zoom out
Zoom in

Annotations

40 warnings
build (Debug, arm64): src/Starward.RPC/RpcClientFactory.cs#L69
'type' argument does not satisfy 'DynamicallyAccessedMemberTypes.PublicConstructors' in call to 'System.Activator.CreateInstance(Type, params Object[])'. The generic parameter 'T' of 'Starward.RPC.RpcClientFactory.CreateRpcClient<T>()' does not have matching annotations. The source value must declare at least the same requirements as those declared on the target location it is assigned to.
build (Debug, arm64): src/Starward.Core/Gacha/StarRail/StarRailGachaItem.cs#L42
Using member 'System.Text.Json.JsonSerializer.Serialize<TValue>(Utf8JsonWriter, TValue, JsonSerializerOptions)' which has 'RequiresUnreferencedCodeAttribute' can break functionality when trimming application code. JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.
build (Debug, arm64): src/Starward.Core/Gacha/StarRail/StarRailGachaItem.cs#L23
Using member 'System.Text.Json.JsonSerializer.Deserialize<TValue>(String, JsonSerializerOptions)' which has 'RequiresUnreferencedCodeAttribute' can break functionality when trimming application code. JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.
build (Debug, arm64): src/Starward.Core/HoYoPlay/HoYoPlayClient.cs#L56
Using member 'System.Text.Json.JsonSerializer.Deserialize<TValue>(JsonNode, JsonSerializerOptions)' which has 'RequiresUnreferencedCodeAttribute' can break functionality when trimming application code. JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.
build (Debug, arm64): src/Starward/Controls/InstallGameDialog.xaml.cs#L290
The variable 'ex' is declared but never used
build (Debug, arm64): src/Starward/Services/Launcher/LauncherBackgroundService.cs#L98
Dereference of a possibly null reference.
build (Debug, arm64): src/Starward/Controls/GameBizSelector.xaml.cs#L136
The variable 'ex' is declared but never used
build (Debug, arm64): src/Starward/Controls/GameBannerAndPost.xaml.cs#L236
This async method lacks 'await' operators and will run synchronously. Consider using the 'await' operator to await non-blocking API calls, or 'await Task.Run(...)' to do CPU-bound work on a background thread.
build (Debug, arm64): src/Starward/Services/LauncherContentService.cs#L126
Dereference of a possibly null reference.
build (Debug, arm64): src/Starward/Features/Setting/SettingPage.xaml.cs#L361
The variable 'ex' is declared but never used
build (Debug, x64): src/Starward.Launcher/Starward.Launcher.cpp#L23
'argument': conversion from 'size_t' to 'DWORD', possible loss of data
build (Debug, x64): src/Starward.Launcher/Starward.Launcher.cpp#L24
'argument': conversion from 'size_t' to 'DWORD', possible loss of data
build (Debug, x64): src/Starward.RPC/RpcClientFactory.cs#L69
'type' argument does not satisfy 'DynamicallyAccessedMemberTypes.PublicConstructors' in call to 'System.Activator.CreateInstance(Type, params Object[])'. The generic parameter 'T' of 'Starward.RPC.RpcClientFactory.CreateRpcClient<T>()' does not have matching annotations. The source value must declare at least the same requirements as those declared on the target location it is assigned to.
build (Debug, x64): src/Starward.Core/Gacha/StarRail/StarRailGachaItem.cs#L23
Using member 'System.Text.Json.JsonSerializer.Deserialize<TValue>(String, JsonSerializerOptions)' which has 'RequiresUnreferencedCodeAttribute' can break functionality when trimming application code. JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.
build (Debug, x64): src/Starward.Core/Gacha/StarRail/StarRailGachaItem.cs#L42
Using member 'System.Text.Json.JsonSerializer.Serialize<TValue>(Utf8JsonWriter, TValue, JsonSerializerOptions)' which has 'RequiresUnreferencedCodeAttribute' can break functionality when trimming application code. JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.
build (Debug, x64): src/Starward.Core/HoYoPlay/HoYoPlayClient.cs#L56
Using member 'System.Text.Json.JsonSerializer.Deserialize<TValue>(JsonNode, JsonSerializerOptions)' which has 'RequiresUnreferencedCodeAttribute' can break functionality when trimming application code. JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.
build (Debug, x64): src/Starward/Controls/ColorfulTextBlock.xaml.cs#L117
The variable 'ex' is declared but never used
build (Debug, x64): src/Starward/Controls/GameBannerAndPost.xaml.cs#L236
This async method lacks 'await' operators and will run synchronously. Consider using the 'await' operator to await non-blocking API calls, or 'await Task.Run(...)' to do CPU-bound work on a background thread.
build (Debug, x64): src/Starward/Controls/GameBizSelector.xaml.cs#L136
The variable 'ex' is declared but never used
build (Debug, x64): src/Starward/Services/Launcher/LauncherBackgroundService.cs#L98
Dereference of a possibly null reference.
build (Release, arm64): src/Starward.RPC/RpcClientFactory.cs#L69
'type' argument does not satisfy 'DynamicallyAccessedMemberTypes.PublicConstructors' in call to 'System.Activator.CreateInstance(Type, params Object[])'. The generic parameter 'T' of 'Starward.RPC.RpcClientFactory.CreateRpcClient<T>()' does not have matching annotations. The source value must declare at least the same requirements as those declared on the target location it is assigned to.
build (Release, arm64): src/Starward.Core/Gacha/StarRail/StarRailGachaItem.cs#L23
Using member 'System.Text.Json.JsonSerializer.Deserialize<TValue>(String, JsonSerializerOptions)' which has 'RequiresUnreferencedCodeAttribute' can break functionality when trimming application code. JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.
build (Release, arm64): src/Starward.Core/Gacha/StarRail/StarRailGachaItem.cs#L42
Using member 'System.Text.Json.JsonSerializer.Serialize<TValue>(Utf8JsonWriter, TValue, JsonSerializerOptions)' which has 'RequiresUnreferencedCodeAttribute' can break functionality when trimming application code. JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.
build (Release, arm64): src/Starward.Core/HoYoPlay/HoYoPlayClient.cs#L56
Using member 'System.Text.Json.JsonSerializer.Deserialize<TValue>(JsonNode, JsonSerializerOptions)' which has 'RequiresUnreferencedCodeAttribute' can break functionality when trimming application code. JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.
build (Release, arm64): src/Starward/Controls/InstallGameDialog.xaml.cs#L290
The variable 'ex' is declared but never used
build (Release, arm64): src/Starward/Services/Launcher/LauncherBackgroundService.cs#L98
Dereference of a possibly null reference.
build (Release, arm64): src/Starward/Controls/ColorfulTextBlock.xaml.cs#L117
The variable 'ex' is declared but never used
build (Release, arm64): src/Starward/Controls/GameBizSelector.xaml.cs#L136
The variable 'ex' is declared but never used
build (Release, arm64): src/Starward/Controls/GameBannerAndPost.xaml.cs#L236
This async method lacks 'await' operators and will run synchronously. Consider using the 'await' operator to await non-blocking API calls, or 'await Task.Run(...)' to do CPU-bound work on a background thread.
build (Release, arm64): src/Starward/Features/Background/BackgroundService.cs#L197
Dereference of a possibly null reference.
build (Release, x64): src/Starward.Launcher/Starward.Launcher.cpp#L23
'argument': conversion from 'size_t' to 'DWORD', possible loss of data
build (Release, x64): src/Starward.Launcher/Starward.Launcher.cpp#L24
'argument': conversion from 'size_t' to 'DWORD', possible loss of data
build (Release, x64): src/Starward.RPC/RpcClientFactory.cs#L69
'type' argument does not satisfy 'DynamicallyAccessedMemberTypes.PublicConstructors' in call to 'System.Activator.CreateInstance(Type, params Object[])'. The generic parameter 'T' of 'Starward.RPC.RpcClientFactory.CreateRpcClient<T>()' does not have matching annotations. The source value must declare at least the same requirements as those declared on the target location it is assigned to.
build (Release, x64): src/Starward.Core/Gacha/StarRail/StarRailGachaItem.cs#L23
Using member 'System.Text.Json.JsonSerializer.Deserialize<TValue>(String, JsonSerializerOptions)' which has 'RequiresUnreferencedCodeAttribute' can break functionality when trimming application code. JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.
build (Release, x64): src/Starward.Core/Gacha/StarRail/StarRailGachaItem.cs#L42
Using member 'System.Text.Json.JsonSerializer.Serialize<TValue>(Utf8JsonWriter, TValue, JsonSerializerOptions)' which has 'RequiresUnreferencedCodeAttribute' can break functionality when trimming application code. JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.
build (Release, x64): src/Starward.Core/HoYoPlay/HoYoPlayClient.cs#L56
Using member 'System.Text.Json.JsonSerializer.Deserialize<TValue>(JsonNode, JsonSerializerOptions)' which has 'RequiresUnreferencedCodeAttribute' can break functionality when trimming application code. JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.
build (Release, x64): src/Starward/Controls/InstallGameDialog.xaml.cs#L290
The variable 'ex' is declared but never used
build (Release, x64): src/Starward/Services/Launcher/LauncherBackgroundService.cs#L98
Dereference of a possibly null reference.
build (Release, x64): src/Starward/Services/LauncherContentService.cs#L126
Dereference of a possibly null reference.
build (Release, x64): src/Starward/Controls/GameBizSelector.xaml.cs#L136
The variable 'ex' is declared but never used

Artifacts

Produced during runtime
Name Size
Starward_Debug_arm64_331d75a
68 MB
Starward_Debug_x64_331d75a
68 MB
Starward_Release_arm64_331d75a
85.4 MB
Starward_Release_x64_331d75a
86.7 MB