diff --git a/samples/ControlCatalog/Pages/OpenGlPage.xaml.cs b/samples/ControlCatalog/Pages/OpenGlPage.xaml.cs
index f7a7e60f894..aaaa3f772b5 100644
--- a/samples/ControlCatalog/Pages/OpenGlPage.xaml.cs
+++ b/samples/ControlCatalog/Pages/OpenGlPage.xaml.cs
@@ -43,7 +43,7 @@ private async void SnapshotClick(object sender, RoutedEventArgs e)
Source = snap
}
}
- }.ShowDialog((Window)TopLevel.GetTopLevel(this));
+ }.ShowDialog((Window)TopLevel.GetTopLevel(this)!);
}
}
diff --git a/samples/IntegrationTestApp/IntegrationTestApp.csproj b/samples/IntegrationTestApp/IntegrationTestApp.csproj
index 7d23408eddc..65347872263 100644
--- a/samples/IntegrationTestApp/IntegrationTestApp.csproj
+++ b/samples/IntegrationTestApp/IntegrationTestApp.csproj
@@ -3,7 +3,7 @@
WinExe
$(AvsCurrentTargetFramework)
enable
- $(NoWarn);AVP1012
+ $(NoWarn);AVP1012;AVLN3001
app.manifest
true
diff --git a/samples/IntegrationTestApp/MacOSIntegration.cs b/samples/IntegrationTestApp/MacOSIntegration.cs
index f700a5b4e26..b4a06b7f4bd 100644
--- a/samples/IntegrationTestApp/MacOSIntegration.cs
+++ b/samples/IntegrationTestApp/MacOSIntegration.cs
@@ -21,7 +21,7 @@ static MacOSIntegration()
public static long GetOrderedIndex(Window window)
{
- return Int64_objc_msgSend(window.PlatformImpl!.Handle.Handle, s_orderedIndexSelector);
+ return Int64_objc_msgSend(window.PlatformImpl!.Handle!.Handle, s_orderedIndexSelector);
}
}
}
diff --git a/src/Avalonia.Base/Rendering/UiThreadRenderTimer.cs b/src/Avalonia.Base/Rendering/UiThreadRenderTimer.cs
index 940495253ea..42ecc41238e 100644
--- a/src/Avalonia.Base/Rendering/UiThreadRenderTimer.cs
+++ b/src/Avalonia.Base/Rendering/UiThreadRenderTimer.cs
@@ -1,11 +1,6 @@
using System;
using System.Diagnostics;
using Avalonia.Metadata;
-using Avalonia.Reactive;
-using Avalonia.Threading;
-using System;
-using System.Diagnostics;
-using Avalonia.Metadata;
using Avalonia.Threading;
namespace Avalonia.Rendering;
diff --git a/src/Avalonia.Controls/Embedding/Offscreen/OffscreenTopLevelImpl.cs b/src/Avalonia.Controls/Embedding/Offscreen/OffscreenTopLevelImpl.cs
index 14bb65f0df6..bdc7c8894b9 100644
--- a/src/Avalonia.Controls/Embedding/Offscreen/OffscreenTopLevelImpl.cs
+++ b/src/Avalonia.Controls/Embedding/Offscreen/OffscreenTopLevelImpl.cs
@@ -29,7 +29,8 @@ public OffscreenTopLevelImplBase()
public abstract IEnumerable