diff --git a/samples/ControlCatalog.Android/ControlCatalog.Android.v2.ncrunchproject b/samples/ControlCatalog.Android/ControlCatalog.Android.v2.ncrunchproject new file mode 100644 index 0000000000..e1b4d7cf28 --- /dev/null +++ b/samples/ControlCatalog.Android/ControlCatalog.Android.v2.ncrunchproject @@ -0,0 +1,26 @@ + + true + 1000 + false + false + false + true + false + false + true + false + false + false + true + false + true + true + true + 60000 + + + + AutoDetect + STA + x86 + \ No newline at end of file diff --git a/src/Android/Avalonia.Android/Platform/SkiaPlatform/MainWindowImpl.cs b/src/Android/Avalonia.Android/Platform/SkiaPlatform/MainWindowImpl.cs index 5c8778aa96..690c509b53 100644 --- a/src/Android/Avalonia.Android/Platform/SkiaPlatform/MainWindowImpl.cs +++ b/src/Android/Avalonia.Android/Platform/SkiaPlatform/MainWindowImpl.cs @@ -14,7 +14,7 @@ namespace Avalonia.Android.Platform.SkiaPlatform { } - public WindowState WindowState + public new WindowState WindowState { get { return WindowState.Normal; } set { } diff --git a/src/Avalonia.Animation/Avalonia.Animation.csproj b/src/Avalonia.Animation/Avalonia.Animation.csproj index 65489f3308..d74f4d9c69 100644 --- a/src/Avalonia.Animation/Avalonia.Animation.csproj +++ b/src/Avalonia.Animation/Avalonia.Animation.csproj @@ -25,6 +25,7 @@ prompt 4 bin\Debug\Avalonia.Animation.XML + false pdbonly @@ -35,6 +36,7 @@ 4 bin\Release\Avalonia.Animation.XML CS1591 + true diff --git a/src/Avalonia.Base/Avalonia.Base.csproj b/src/Avalonia.Base/Avalonia.Base.csproj index 46e24aa15a..bc52e31d2c 100644 --- a/src/Avalonia.Base/Avalonia.Base.csproj +++ b/src/Avalonia.Base/Avalonia.Base.csproj @@ -38,6 +38,7 @@ 4 bin\Release\Avalonia.Base.XML CS1591 + true diff --git a/src/Avalonia.Base/Data/InstancedBinding.cs b/src/Avalonia.Base/Data/InstancedBinding.cs index 7df1017f05..899cfed1fe 100644 --- a/src/Avalonia.Base/Data/InstancedBinding.cs +++ b/src/Avalonia.Base/Data/InstancedBinding.cs @@ -12,7 +12,7 @@ namespace Avalonia.Data /// /// Whereas an holds a description of a binding such as "Bind to the X /// property on a control's DataContext"; this class represents a binding that has been - /// *instanced* by calling + /// *instanced* by calling /// on a target object. /// /// When a binding is initiated, it can return one of 3 possible sources for the binding: diff --git a/src/Avalonia.Base/Platform/IPlatformThreadingInterface.cs b/src/Avalonia.Base/Platform/IPlatformThreadingInterface.cs index e4f24d8638..a63ccec7c2 100644 --- a/src/Avalonia.Base/Platform/IPlatformThreadingInterface.cs +++ b/src/Avalonia.Base/Platform/IPlatformThreadingInterface.cs @@ -21,9 +21,6 @@ namespace Avalonia.Platform /// An used to stop the timer. IDisposable StartTimer(TimeSpan interval, Action tick); - /// - /// Sends a message that causes to exit. - /// void Signal(); bool CurrentThreadIsLoopThread { get; } diff --git a/src/Avalonia.Base/PriorityBindingEntry.cs b/src/Avalonia.Base/PriorityBindingEntry.cs index 580b593666..25b7bede7e 100644 --- a/src/Avalonia.Base/PriorityBindingEntry.cs +++ b/src/Avalonia.Base/PriorityBindingEntry.cs @@ -21,7 +21,6 @@ namespace Avalonia /// /// The binding index. Later bindings should have higher indexes. /// - /// The validation settings for the binding. public PriorityBindingEntry(PriorityLevel owner, int index) { _owner = owner; diff --git a/src/Avalonia.Controls/AppBuilderBase.cs b/src/Avalonia.Controls/AppBuilderBase.cs index e241f953e7..c53cca19d1 100644 --- a/src/Avalonia.Controls/AppBuilderBase.cs +++ b/src/Avalonia.Controls/AppBuilderBase.cs @@ -9,9 +9,9 @@ using Avalonia.Platform; namespace Avalonia.Controls { /// - /// Initializes up platform-specific services for an . + /// Base class for initializing platform-specific services for an . /// - /// + /// The type of the AppBuilder class itself. public abstract class AppBuilderBase where TAppBuilder : AppBuilderBase, new() { /// @@ -140,6 +140,7 @@ namespace Avalonia.Controls /// Specifies a windowing subsystem to use. /// /// The method to call to initialize the windowing subsystem. + /// The name of the windowing subsystem. /// An instance. public TAppBuilder UseWindowingSubsystem(Action initializer, string name = "") { @@ -159,6 +160,7 @@ namespace Avalonia.Controls /// Specifies a rendering subsystem to use. /// /// The method to call to initialize the rendering subsystem. + /// The name of the rendering subsystem. /// An instance. public TAppBuilder UseRenderingSubsystem(Action initializer, string name = "") { diff --git a/src/Avalonia.Controls/Avalonia.Controls.csproj b/src/Avalonia.Controls/Avalonia.Controls.csproj index 7192abd620..3439ab3101 100644 --- a/src/Avalonia.Controls/Avalonia.Controls.csproj +++ b/src/Avalonia.Controls/Avalonia.Controls.csproj @@ -38,6 +38,7 @@ 4 bin\Release\Avalonia.Controls.XML CS1591 + true diff --git a/src/Avalonia.Controls/Generators/TreeItemContainerGenerator.cs b/src/Avalonia.Controls/Generators/TreeItemContainerGenerator.cs index 923d24775f..abcecb5b82 100644 --- a/src/Avalonia.Controls/Generators/TreeItemContainerGenerator.cs +++ b/src/Avalonia.Controls/Generators/TreeItemContainerGenerator.cs @@ -124,11 +124,6 @@ namespace Avalonia.Controls.Generators return false; } - /// - /// Gets the data template for the specified item. - /// - /// The item. - /// The template. private ITreeDataTemplate GetTreeDataTemplate(object item, IDataTemplate primary) { var template = Owner.FindDataTemplate(item, primary) ?? FuncDataTemplate.Default; diff --git a/src/Avalonia.Controls/HotkeyManager.cs b/src/Avalonia.Controls/HotkeyManager.cs index 6c64966ef1..4e36267fb3 100644 --- a/src/Avalonia.Controls/HotkeyManager.cs +++ b/src/Avalonia.Controls/HotkeyManager.cs @@ -30,8 +30,9 @@ namespace Avalonia.Controls public void Execute(object parameter) => GetCommand()?.Execute(parameter); - //Implementation isn't needed in this case +#pragma warning disable CS0067 // Event not used public event EventHandler CanExecuteChanged; +#pragma warning restore CS0067 } diff --git a/src/Avalonia.Diagnostics/Avalonia.Diagnostics.csproj b/src/Avalonia.Diagnostics/Avalonia.Diagnostics.csproj index 5cfd60b2fb..7ac724fcf4 100644 --- a/src/Avalonia.Diagnostics/Avalonia.Diagnostics.csproj +++ b/src/Avalonia.Diagnostics/Avalonia.Diagnostics.csproj @@ -38,6 +38,7 @@ 4 bin\Release\Avalonia.Diagnostics.XML CS1591 + true diff --git a/src/Avalonia.DotNetFrameworkRuntime/AppBuilder.cs b/src/Avalonia.DotNetFrameworkRuntime/AppBuilder.cs index 3510539bc7..3385e25d4f 100644 --- a/src/Avalonia.DotNetFrameworkRuntime/AppBuilder.cs +++ b/src/Avalonia.DotNetFrameworkRuntime/AppBuilder.cs @@ -1,27 +1,39 @@ using System; -using System.Collections.Generic; +using System.IO; using System.Linq; using System.Reflection; -using System.Text; -using System.Threading.Tasks; using Avalonia.Controls; using Avalonia.Platform; using Avalonia.Shared.PlatformSupport; -using System.IO; namespace Avalonia { + /// + /// Initializes platform-specific services for an . + /// public sealed class AppBuilder : AppBuilderBase { - public AppBuilder() : base(new StandardRuntimePlatform(), () => StandardRuntimePlatformServices.Register()) + /// + /// Initializes a new instance of the class. + /// + public AppBuilder() + : base(new StandardRuntimePlatform(), () => StandardRuntimePlatformServices.Register()) { } + /// + /// Initializes a new instance of the class. + /// + /// The instance. public AppBuilder(Application app) : this() { Instance = app; } + /// + /// Instructs the to use the best settings for the platform. + /// + /// An instance. public AppBuilder UsePlatformDetect() { var os = RuntimePlatform.GetRuntimeInfo().OperatingSystem; diff --git a/src/Avalonia.DotNetFrameworkRuntime/Avalonia.DotNetFrameworkRuntime.csproj b/src/Avalonia.DotNetFrameworkRuntime/Avalonia.DotNetFrameworkRuntime.csproj index b58ad3af1e..ff481f769e 100644 --- a/src/Avalonia.DotNetFrameworkRuntime/Avalonia.DotNetFrameworkRuntime.csproj +++ b/src/Avalonia.DotNetFrameworkRuntime/Avalonia.DotNetFrameworkRuntime.csproj @@ -31,6 +31,7 @@ prompt 4 bin\Release\Avalonia.DotNetFrameworkRuntime.xml + true diff --git a/src/Avalonia.Input/Avalonia.Input.csproj b/src/Avalonia.Input/Avalonia.Input.csproj index b697c91941..45a1ce9015 100644 --- a/src/Avalonia.Input/Avalonia.Input.csproj +++ b/src/Avalonia.Input/Avalonia.Input.csproj @@ -38,6 +38,7 @@ 4 bin\Release\Avalonia.Input.XML CS1591 + true diff --git a/src/Avalonia.Interactivity/Avalonia.Interactivity.csproj b/src/Avalonia.Interactivity/Avalonia.Interactivity.csproj index 778bb084db..a9ddc316ca 100644 --- a/src/Avalonia.Interactivity/Avalonia.Interactivity.csproj +++ b/src/Avalonia.Interactivity/Avalonia.Interactivity.csproj @@ -38,6 +38,7 @@ 4 bin\Release\Avalonia.Interactivity.XML CS1591 + true diff --git a/src/Avalonia.Layout/Avalonia.Layout.csproj b/src/Avalonia.Layout/Avalonia.Layout.csproj index aa299d4215..4db2398dbe 100644 --- a/src/Avalonia.Layout/Avalonia.Layout.csproj +++ b/src/Avalonia.Layout/Avalonia.Layout.csproj @@ -38,6 +38,7 @@ 4 bin\Release\Avalonia.Layout.XML CS1591 + true diff --git a/src/Avalonia.Logging.Serilog/Avalonia.Logging.Serilog.csproj b/src/Avalonia.Logging.Serilog/Avalonia.Logging.Serilog.csproj index e6490d16f4..e88dc86b00 100644 --- a/src/Avalonia.Logging.Serilog/Avalonia.Logging.Serilog.csproj +++ b/src/Avalonia.Logging.Serilog/Avalonia.Logging.Serilog.csproj @@ -1,4 +1,4 @@ - + @@ -34,6 +34,7 @@ prompt 4 bin\Release\Avalonia.Logging.Serilog.XML + true diff --git a/src/Avalonia.Logging.Serilog/SerilogLogger.cs b/src/Avalonia.Logging.Serilog/SerilogLogger.cs index 460469394e..99145d49e4 100644 --- a/src/Avalonia.Logging.Serilog/SerilogLogger.cs +++ b/src/Avalonia.Logging.Serilog/SerilogLogger.cs @@ -8,21 +8,33 @@ using SerilogLogEventLevel = Serilog.Events.LogEventLevel; namespace Avalonia.Logging.Serilog { + /// + /// Sends log output to serilog. + /// public class SerilogLogger : ILogSink { private readonly ILogger _output; private readonly Dictionary _areas = new Dictionary(); + /// + /// Initializes a new instance of the class. + /// + /// The serilog logger to use. public SerilogLogger(ILogger output) { _output = output; } + /// + /// Initializes the Avalonia logging with a new instance of a . + /// + /// The serilog logger to use. public static void Initialize(ILogger output) { Logger.Sink = new SerilogLogger(output); } + /// public void Log( AvaloniaLogEventLevel level, string area, diff --git a/src/Avalonia.SceneGraph/Avalonia.SceneGraph.csproj b/src/Avalonia.SceneGraph/Avalonia.SceneGraph.csproj index 1f2734b2e9..f472c18230 100644 --- a/src/Avalonia.SceneGraph/Avalonia.SceneGraph.csproj +++ b/src/Avalonia.SceneGraph/Avalonia.SceneGraph.csproj @@ -38,6 +38,7 @@ 4 bin\Release\Avalonia.SceneGraph.XML CS1591 + true diff --git a/src/Avalonia.SceneGraph/Media/DrawingContext.cs b/src/Avalonia.SceneGraph/Media/DrawingContext.cs index d56d2ae1ad..9fd8761ca5 100644 --- a/src/Avalonia.SceneGraph/Media/DrawingContext.cs +++ b/src/Avalonia.SceneGraph/Media/DrawingContext.cs @@ -208,6 +208,9 @@ namespace Avalonia.Media /// Pushes an opacity mask. /// /// The opacity mask. + /// + /// The size of the brush's target area. TODO: Are we sure this is needed? + /// /// A disposable to undo the opacity mask. public PushedState PushOpacityMask(IBrush mask, Rect bounds) { @@ -216,15 +219,24 @@ namespace Avalonia.Media } /// - /// Pushes a matrix transformation. + /// Pushes a matrix post-transformation. /// /// The matrix /// A disposable used to undo the transformation. public PushedState PushPostTransform(Matrix matrix) => PushSetTransform(CurrentTransform*matrix); + /// + /// Pushes a matrix pre-transformation. + /// + /// The matrix + /// A disposable used to undo the transformation. public PushedState PushPreTransform(Matrix matrix) => PushSetTransform(matrix*CurrentTransform); - + /// + /// Sets the current matrix transformation. + /// + /// The matrix + /// A disposable used to undo the transformation. PushedState PushSetTransform(Matrix matrix) { var oldMatrix = CurrentTransform; @@ -233,7 +245,10 @@ namespace Avalonia.Media return new PushedState(this, PushedState.PushedStateType.Matrix, oldMatrix); } - + /// + /// Pushes a new transform context. + /// + /// A disposable used to undo the transformation. public PushedState PushTransformContainer() { _transformContainers.Push(new TransformContainer(CurrentTransform, _currentContainerTransform)); @@ -242,6 +257,9 @@ namespace Avalonia.Media return new PushedState(this, PushedState.PushedStateType.MatrixContainer); } + /// + /// Disposes of any resources held by the . + /// public void Dispose() { while (_states.Count != 0) diff --git a/src/Avalonia.SceneGraph/Media/Imaging/RenderTargetBitmap.cs b/src/Avalonia.SceneGraph/Media/Imaging/RenderTargetBitmap.cs index 1687dc811e..4cc9c3fdf2 100644 --- a/src/Avalonia.SceneGraph/Media/Imaging/RenderTargetBitmap.cs +++ b/src/Avalonia.SceneGraph/Media/Imaging/RenderTargetBitmap.cs @@ -4,6 +4,7 @@ using System; using Avalonia.Platform; using Avalonia.Rendering; +using Avalonia.VisualTree; namespace Avalonia.Media.Imaging { diff --git a/src/Avalonia.SceneGraph/Media/MatrixTransform.cs b/src/Avalonia.SceneGraph/Media/MatrixTransform.cs index 4fa0e3adc1..1507720305 100644 --- a/src/Avalonia.SceneGraph/Media/MatrixTransform.cs +++ b/src/Avalonia.SceneGraph/Media/MatrixTransform.cs @@ -2,6 +2,7 @@ // Licensed under the MIT license. See licence.md file in the project root for full license information. using System; +using Avalonia.VisualTree; namespace Avalonia.Media { diff --git a/src/Avalonia.SceneGraph/Media/RotateTransform.cs b/src/Avalonia.SceneGraph/Media/RotateTransform.cs index be84cda974..41f2335ced 100644 --- a/src/Avalonia.SceneGraph/Media/RotateTransform.cs +++ b/src/Avalonia.SceneGraph/Media/RotateTransform.cs @@ -2,6 +2,7 @@ // Licensed under the MIT license. See licence.md file in the project root for full license information. using System; +using Avalonia.VisualTree; namespace Avalonia.Media { diff --git a/src/Avalonia.SceneGraph/Media/ScaleTransform.cs b/src/Avalonia.SceneGraph/Media/ScaleTransform.cs index c0f291ed88..dc7d38fde0 100644 --- a/src/Avalonia.SceneGraph/Media/ScaleTransform.cs +++ b/src/Avalonia.SceneGraph/Media/ScaleTransform.cs @@ -2,6 +2,7 @@ // Licensed under the MIT license. See licence.md file in the project root for full license information. using System; +using Avalonia.VisualTree; namespace Avalonia.Media { diff --git a/src/Avalonia.SceneGraph/Media/Transform.cs b/src/Avalonia.SceneGraph/Media/Transform.cs index 075411d3f7..f81938dad7 100644 --- a/src/Avalonia.SceneGraph/Media/Transform.cs +++ b/src/Avalonia.SceneGraph/Media/Transform.cs @@ -3,6 +3,7 @@ using System; using Avalonia.Animation; +using Avalonia.VisualTree; namespace Avalonia.Media { diff --git a/src/Avalonia.SceneGraph/Media/TranslateTransform.cs b/src/Avalonia.SceneGraph/Media/TranslateTransform.cs index f680757925..0c9ca5debc 100644 --- a/src/Avalonia.SceneGraph/Media/TranslateTransform.cs +++ b/src/Avalonia.SceneGraph/Media/TranslateTransform.cs @@ -2,6 +2,7 @@ // Licensed under the MIT license. See licence.md file in the project root for full license information. using System; +using Avalonia.VisualTree; namespace Avalonia.Media { diff --git a/src/Avalonia.Styling/Avalonia.Styling.csproj b/src/Avalonia.Styling/Avalonia.Styling.csproj index 4c1fc4533a..067900e5ca 100644 --- a/src/Avalonia.Styling/Avalonia.Styling.csproj +++ b/src/Avalonia.Styling/Avalonia.Styling.csproj @@ -38,6 +38,7 @@ 4 bin\Release\Avalonia.Styling.XML CS1591 + true diff --git a/src/Avalonia.Styling/Styling/SelectorMatch.cs b/src/Avalonia.Styling/Styling/SelectorMatch.cs index e1d7f8dbaf..f73c1497ce 100644 --- a/src/Avalonia.Styling/Styling/SelectorMatch.cs +++ b/src/Avalonia.Styling/Styling/SelectorMatch.cs @@ -6,12 +6,12 @@ using System; namespace Avalonia.Styling { /// - /// Holds the result of a match. + /// Holds the result of a match. /// /// /// There are two types of selectors - ones whose match can never change for a particular - /// control (such as ) and ones whose result can - /// change over time (such as . For the first + /// control (such as ) and ones whose result can + /// change over time (such as . For the first /// category of selectors, the value of will be set but for the /// second, will be null and will /// hold an observable which tracks the match. diff --git a/src/Avalonia.Themes.Default/Avalonia.Themes.Default.csproj b/src/Avalonia.Themes.Default/Avalonia.Themes.Default.csproj index 76ed678350..cd0bf77eae 100644 --- a/src/Avalonia.Themes.Default/Avalonia.Themes.Default.csproj +++ b/src/Avalonia.Themes.Default/Avalonia.Themes.Default.csproj @@ -36,6 +36,7 @@ prompt 4 bin\Release\Avalonia.Themes.Default.XML + true diff --git a/src/Gtk/Avalonia.Gtk/EmbeddableImpl.cs b/src/Gtk/Avalonia.Gtk/EmbeddableImpl.cs index 62b2513856..a5a34cd47b 100644 --- a/src/Gtk/Avalonia.Gtk/EmbeddableImpl.cs +++ b/src/Gtk/Avalonia.Gtk/EmbeddableImpl.cs @@ -14,7 +14,9 @@ namespace Avalonia.Gtk { class EmbeddableImpl : WindowImplBase, IEmbeddableWindowImpl { +#pragma warning disable CS0067 // Method not used public event Action LostFocus; +#pragma warning restore CS0067 public EmbeddableImpl(DrawingArea area) : base(area) { diff --git a/src/Markup/Avalonia.Markup.Xaml/AvaloniaXamlLoader.cs b/src/Markup/Avalonia.Markup.Xaml/AvaloniaXamlLoader.cs index 437e6e849f..7b3d0036ef 100644 --- a/src/Markup/Avalonia.Markup.Xaml/AvaloniaXamlLoader.cs +++ b/src/Markup/Avalonia.Markup.Xaml/AvaloniaXamlLoader.cs @@ -8,14 +8,14 @@ using System.Reflection; using System.Text; using OmniXaml; using Avalonia.Platform; +using Avalonia.Markup.Xaml.Context; +using Avalonia.Markup.Xaml.Styling; +using OmniXaml.ObjectAssembler; +using Avalonia.Controls; +using Avalonia.Markup.Xaml.Data; namespace Avalonia.Markup.Xaml { - using Context; - using Controls; - using Data; - using OmniXaml.ObjectAssembler; - using System.Linq; /// /// Loads XAML for a avalonia application. /// @@ -47,7 +47,7 @@ namespace Avalonia.Markup.Xaml /// /// /// TODO: Making this internal for now as I'm not sure that this is the correct - /// thing to do, but its needd by to get the URL of + /// thing to do, but its needed by to get the URL of /// the currently loading XAML file, as we can't use the OmniXAML parsing context /// there. Maybe we need a way to inject OmniXAML context into the objects its /// constructing? diff --git a/src/Markup/Avalonia.Markup/Avalonia.Markup.csproj b/src/Markup/Avalonia.Markup/Avalonia.Markup.csproj index 738f381f4e..88c4a6ab18 100644 --- a/src/Markup/Avalonia.Markup/Avalonia.Markup.csproj +++ b/src/Markup/Avalonia.Markup/Avalonia.Markup.csproj @@ -36,6 +36,7 @@ 4 bin\Release\Avalonia.Markup.XML CS1591 + true diff --git a/src/Shared/PlatformSupport/AssetLoader.cs b/src/Shared/PlatformSupport/AssetLoader.cs index fb695aeeeb..e2f0e5e777 100644 --- a/src/Shared/PlatformSupport/AssetLoader.cs +++ b/src/Shared/PlatformSupport/AssetLoader.cs @@ -20,6 +20,12 @@ namespace Avalonia.Shared.PlatformSupport private AssemblyDescriptor _defaultAssembly; + /// + /// Initializes a new instance of the class. + /// + /// + /// The default assembly from which to load assets for which no assembly is specified. + /// public AssetLoader(Assembly assembly = null) { if (assembly == null) @@ -28,6 +34,10 @@ namespace Avalonia.Shared.PlatformSupport _defaultAssembly = new AssemblyDescriptor(assembly); } + /// + /// Sets the default assembly from which to load assets for which no assembly is specified. + /// + /// The default assembly. public void SetDefaultAssembly(Assembly assembly) { _defaultAssembly = new AssemblyDescriptor(assembly); diff --git a/src/Windows/Avalonia.Direct2D1/Avalonia.Direct2D1.csproj b/src/Windows/Avalonia.Direct2D1/Avalonia.Direct2D1.csproj index 13113ed748..f11eba2397 100644 --- a/src/Windows/Avalonia.Direct2D1/Avalonia.Direct2D1.csproj +++ b/src/Windows/Avalonia.Direct2D1/Avalonia.Direct2D1.csproj @@ -34,6 +34,7 @@ 4 bin\Release\Avalonia.Direct2D1.XML CS1591 + true diff --git a/src/Windows/Avalonia.Direct2D1/Media/StreamGeometryImpl.cs b/src/Windows/Avalonia.Direct2D1/Media/StreamGeometryImpl.cs index 7e88fe8e12..213c4b5c03 100644 --- a/src/Windows/Avalonia.Direct2D1/Media/StreamGeometryImpl.cs +++ b/src/Windows/Avalonia.Direct2D1/Media/StreamGeometryImpl.cs @@ -8,7 +8,7 @@ using D2DGeometry = SharpDX.Direct2D1.Geometry; namespace Avalonia.Direct2D1.Media { /// - /// A Direct2D implementation of a . + /// A Direct2D implementation of a . /// public class StreamGeometryImpl : GeometryImpl, IStreamGeometryImpl { @@ -56,7 +56,7 @@ namespace Avalonia.Direct2D1.Media /// Opens the geometry to start defining it. /// /// - /// A which can be used to define the geometry. + /// An which can be used to define the geometry. /// public IStreamGeometryContextImpl Open() { diff --git a/src/Windows/Avalonia.Win32/Avalonia.Win32.csproj b/src/Windows/Avalonia.Win32/Avalonia.Win32.csproj index 074fe84914..c4bb5c8a25 100644 --- a/src/Windows/Avalonia.Win32/Avalonia.Win32.csproj +++ b/src/Windows/Avalonia.Win32/Avalonia.Win32.csproj @@ -36,6 +36,7 @@ bin\Release\Avalonia.Win32.XML true CS1591 + true diff --git a/tests/Avalonia.Controls.UnitTests/Primitives/TabStripTests.cs b/tests/Avalonia.Controls.UnitTests/Primitives/TabStripTests.cs index fdc68bb96a..55b3d6f756 100644 --- a/tests/Avalonia.Controls.UnitTests/Primitives/TabStripTests.cs +++ b/tests/Avalonia.Controls.UnitTests/Primitives/TabStripTests.cs @@ -19,8 +19,10 @@ namespace Avalonia.Controls.UnitTests.Primitives { var items = new[] { +#pragma warning disable CS0252 // Possible unintended reference comparison; left hand side needs cast Mock.Of(x => x.Header == "foo"), Mock.Of(x => x.Header == "bar"), +#pragma warning restore CS0252 // Possible unintended reference comparison; left hand side needs cast }; var target = new TabStrip diff --git a/tests/Avalonia.Styling.UnitTests/TestControlBase.cs b/tests/Avalonia.Styling.UnitTests/TestControlBase.cs index 2ceccbd06b..f57ac836fb 100644 --- a/tests/Avalonia.Styling.UnitTests/TestControlBase.cs +++ b/tests/Avalonia.Styling.UnitTests/TestControlBase.cs @@ -17,7 +17,9 @@ namespace Avalonia.Styling.UnitTests SubscribeCheckObservable = new TestObservable(); } +#pragma warning disable CS0067 // Event not used public event EventHandler PropertyChanged; +#pragma warning restore CS0067 public string Name { get; set; }