From 4ea8eda979adb8224f070f6c09d09c29678d2c9a Mon Sep 17 00:00:00 2001 From: Sergio Pedri Date: Sun, 15 Jan 2023 16:28:25 +0100 Subject: [PATCH] Switch UWP sample to PolySharp, remove local polyfill --- .../ComputeSharp.SwapChain.Uwp.csproj | 8 ++++++-- .../Properties/SkipLocalsInitAttribute.cs | 16 ---------------- 2 files changed, 6 insertions(+), 18 deletions(-) delete mode 100644 samples/ComputeSharp.SwapChain.Uwp/Properties/SkipLocalsInitAttribute.cs diff --git a/samples/ComputeSharp.SwapChain.Uwp/ComputeSharp.SwapChain.Uwp.csproj b/samples/ComputeSharp.SwapChain.Uwp/ComputeSharp.SwapChain.Uwp.csproj index 228dd36e..1877ab6d 100644 --- a/samples/ComputeSharp.SwapChain.Uwp/ComputeSharp.SwapChain.Uwp.csproj +++ b/samples/ComputeSharp.SwapChain.Uwp/ComputeSharp.SwapChain.Uwp.csproj @@ -80,7 +80,6 @@ - MainView.xaml @@ -160,7 +159,7 @@ - 8.0.0 + 8.1.0-preview3 5.0.1 @@ -183,6 +182,11 @@ 2.8.2 + + 1.10.0 + build; analyzers + all + diff --git a/samples/ComputeSharp.SwapChain.Uwp/Properties/SkipLocalsInitAttribute.cs b/samples/ComputeSharp.SwapChain.Uwp/Properties/SkipLocalsInitAttribute.cs deleted file mode 100644 index 56e0896b..00000000 --- a/samples/ComputeSharp.SwapChain.Uwp/Properties/SkipLocalsInitAttribute.cs +++ /dev/null @@ -1,16 +0,0 @@ -namespace System.Runtime.CompilerServices; - -/// -/// Used to indicate to the compiler that the .locals init flag should not be set in method headers. -/// -[AttributeUsage(AttributeTargets.Module - | AttributeTargets.Class - | AttributeTargets.Struct - | AttributeTargets.Interface - | AttributeTargets.Constructor - | AttributeTargets.Method - | AttributeTargets.Property - | AttributeTargets.Event, Inherited = false)] -internal sealed class SkipLocalsInitAttribute : Attribute -{ -} \ No newline at end of file