mirror of
https://github.com/immense/Remotely.git
synced 2025-10-26 11:27:15 +00:00
Add platform guards for Windows APIs.
This commit is contained in:
parent
ff11f18f8b
commit
69902ea217
@ -114,6 +114,7 @@ dotnet_style_qualification_for_field = false:silent
|
||||
|
||||
# IDE0130: Namespace does not match folder structure
|
||||
dotnet_diagnostic.IDE0130.severity = error
|
||||
dotnet_diagnostic.CA1416.severity = error
|
||||
|
||||
[*.cs]
|
||||
csharp_indent_labels = one_less_than_current
|
||||
@ -174,3 +175,4 @@ dotnet_diagnostic.CS8602.severity = error
|
||||
|
||||
# CS8631: The type cannot be used as type parameter in the generic type or method. Nullability of type argument doesn't match constraint type.
|
||||
dotnet_diagnostic.CS8631.severity = error
|
||||
csharp_style_prefer_primary_constructors = true:suggestion
|
||||
|
||||
@ -14,6 +14,7 @@ using Immense.RemoteControl.Desktop.UI.Services;
|
||||
using Avalonia;
|
||||
using Immense.RemoteControl.Desktop.UI;
|
||||
using Desktop.Shared.Services;
|
||||
using System.Runtime.Versioning;
|
||||
|
||||
namespace Remotely.Desktop.Win;
|
||||
|
||||
@ -26,6 +27,8 @@ public class Program
|
||||
.WithInterFont()
|
||||
.LogToTrace();
|
||||
|
||||
|
||||
[SupportedOSPlatform("windows")]
|
||||
public static async Task Main(string[] args)
|
||||
{
|
||||
var version = AppVersionHelper.GetAppVersion();
|
||||
|
||||
@ -1 +1 @@
|
||||
Subproject commit ab9f9604be3d9ece45de0810e4826fe28ac5a932
|
||||
Subproject commit 80d184c4aca15e7c0482ec2bd014730968643909
|
||||
Loading…
Reference in New Issue
Block a user