diff --git a/src/ComputeSharp.Core.NetStandard/ComputeSharp.Core.NetStandard.projitems b/src/ComputeSharp.Core.NetStandard/ComputeSharp.Core.NetStandard.projitems
index 62c4d520..ea15b033 100644
--- a/src/ComputeSharp.Core.NetStandard/ComputeSharp.Core.NetStandard.projitems
+++ b/src/ComputeSharp.Core.NetStandard/ComputeSharp.Core.NetStandard.projitems
@@ -9,10 +9,6 @@
ComputeSharp.Core.NetStandard
-
-
-
-
\ No newline at end of file
diff --git a/src/ComputeSharp.Core.NetStandard/System/Runtime.CompilerServices/InterpolatedStringHandlerArgumentAttribute.cs b/src/ComputeSharp.Core.NetStandard/System/Runtime.CompilerServices/InterpolatedStringHandlerArgumentAttribute.cs
deleted file mode 100644
index 38c625ca..00000000
--- a/src/ComputeSharp.Core.NetStandard/System/Runtime.CompilerServices/InterpolatedStringHandlerArgumentAttribute.cs
+++ /dev/null
@@ -1,34 +0,0 @@
-namespace System.Runtime.CompilerServices;
-
-///
-/// Indicates which arguments to a method involving an interpolated string handler should be passed to that handler.
-///
-[AttributeUsage(AttributeTargets.Parameter, AllowMultiple = false, Inherited = false)]
-internal sealed class InterpolatedStringHandlerArgumentAttribute : Attribute
-{
- ///
- /// Initializes a new instance of the class.
- ///
- /// The name of the argument that should be passed to the handler.
- /// may be used as the name of the receiver in an instance method.
- public InterpolatedStringHandlerArgumentAttribute(string argument)
- {
- Arguments = new string[] { argument };
- }
-
- ///
- /// Initializes a new instance of the class.
- ///
- /// The names of the arguments that should be passed to the handler.
- /// may be used as the name of the receiver in an instance method.
- public InterpolatedStringHandlerArgumentAttribute(params string[] arguments)
- {
- Arguments = arguments;
- }
-
- ///
- /// Gets the names of the arguments that should be passed to the handler.
- ///
- /// may be used as the name of the receiver in an instance method.
- public string[] Arguments { get; }
-}
\ No newline at end of file
diff --git a/src/ComputeSharp.Core.NetStandard/System/Runtime.CompilerServices/InterpolatedStringHandlerAttribute.cs b/src/ComputeSharp.Core.NetStandard/System/Runtime.CompilerServices/InterpolatedStringHandlerAttribute.cs
deleted file mode 100644
index b618403c..00000000
--- a/src/ComputeSharp.Core.NetStandard/System/Runtime.CompilerServices/InterpolatedStringHandlerAttribute.cs
+++ /dev/null
@@ -1,9 +0,0 @@
-namespace System.Runtime.CompilerServices;
-
-///
-/// Indicates the attributed type is to be used as an interpolated string handler.
-///
-[AttributeUsage(AttributeTargets.Class | AttributeTargets.Struct, AllowMultiple = false, Inherited = false)]
-internal sealed class InterpolatedStringHandlerAttribute : Attribute
-{
-}
\ No newline at end of file
diff --git a/src/ComputeSharp.Core.NetStandard/System/Runtime.CompilerServices/IsExternalInit.cs b/src/ComputeSharp.Core.NetStandard/System/Runtime.CompilerServices/IsExternalInit.cs
deleted file mode 100644
index c02e30d6..00000000
--- a/src/ComputeSharp.Core.NetStandard/System/Runtime.CompilerServices/IsExternalInit.cs
+++ /dev/null
@@ -1,15 +0,0 @@
-// Licensed to the .NET Foundation under one or more agreements.
-// The .NET Foundation licenses this file to you under the MIT license.
-
-using System.ComponentModel;
-
-namespace System.Runtime.CompilerServices;
-
-///
-/// Reserved to be used by the compiler for tracking metadata.
-/// This class should not be used by developers in source code.
-///
-[EditorBrowsable(EditorBrowsableState.Never)]
-internal static class IsExternalInit
-{
-}
\ No newline at end of file
diff --git a/src/ComputeSharp.Core.NetStandard/System/Runtime.CompilerServices/SkipLocalsInitAttribute.cs b/src/ComputeSharp.Core.NetStandard/System/Runtime.CompilerServices/SkipLocalsInitAttribute.cs
deleted file mode 100644
index 6d63a804..00000000
--- a/src/ComputeSharp.Core.NetStandard/System/Runtime.CompilerServices/SkipLocalsInitAttribute.cs
+++ /dev/null
@@ -1,27 +0,0 @@
-namespace System.Runtime.CompilerServices;
-
-///
-/// Used to indicate to the compiler that the .locals init
-/// flag should not be set in method headers.
-///
-///
-/// This attribute is unsafe because it may reveal uninitialized memory to
-/// the application in certain instances (e.g., reading from uninitialized
-/// stackalloc'd memory). If applied to a method directly, the attribute
-/// applies to that method and all nested functions (lambdas, local
-/// functions) below it. If applied to a type or module, it applies to all
-/// methods nested inside. This attribute is intentionally not permitted on
-/// assemblies. Use at the module level instead to apply to multiple type
-/// declarations.
-///
-[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
diff --git a/src/ComputeSharp.Core.SourceGenerators/ComputeSharp.Core.SourceGenerators.csproj b/src/ComputeSharp.Core.SourceGenerators/ComputeSharp.Core.SourceGenerators.csproj
index f7347d86..69e2024c 100644
--- a/src/ComputeSharp.Core.SourceGenerators/ComputeSharp.Core.SourceGenerators.csproj
+++ b/src/ComputeSharp.Core.SourceGenerators/ComputeSharp.Core.SourceGenerators.csproj
@@ -1,4 +1,4 @@
-
+netstandard2.0
@@ -15,7 +15,6 @@
manually linking the source files from ComputeSharp\Core in here. We only need them to extract metadata
and to match members based on full name, so the types being in the generator assembly are not an issue.-->
-
diff --git a/src/ComputeSharp.Core/Properties/Polyfills/UnscopedRefAttribute.cs b/src/ComputeSharp.Core/Properties/Polyfills/UnscopedRefAttribute.cs
deleted file mode 100644
index f6f5776c..00000000
--- a/src/ComputeSharp.Core/Properties/Polyfills/UnscopedRefAttribute.cs
+++ /dev/null
@@ -1,36 +0,0 @@
-// Licensed to the .NET Foundation under one or more agreements.
-// The .NET Foundation licenses this file to you under the MIT license.
-
-namespace System.Diagnostics.CodeAnalysis;
-
-///
-/// Used to indicate a byref escapes and is not scoped.
-///
-///
-///
-/// There are several cases where the C# compiler treats a as implicitly
-/// - where the compiler does not allow the to escape the method.
-///
-///
-/// For example:
-///
-/// for instance methods.
-/// parameters that refer to types.
-/// parameters.
-///
-///
-///
-/// This attribute is used in those instances where the should be allowed to escape.
-///
-///
-/// Applying this attribute, in any form, has impact on consumers of the applicable API. It is necessary for
-/// API authors to understand the lifetime implications of applying this attribute and how it may impact their users.
-///
-///
-[AttributeUsage(
- AttributeTargets.Method | AttributeTargets.Property | AttributeTargets.Parameter,
- AllowMultiple = false,
- Inherited = false)]
-internal sealed class UnscopedRefAttribute : Attribute
-{
-}
\ No newline at end of file
diff --git a/src/ComputeSharp.D2D1.NetStandard/ComputeSharp.D2D1.NetStandard.projitems b/src/ComputeSharp.D2D1.NetStandard/ComputeSharp.D2D1.NetStandard.projitems
index 4e744618..9100c500 100644
--- a/src/ComputeSharp.D2D1.NetStandard/ComputeSharp.D2D1.NetStandard.projitems
+++ b/src/ComputeSharp.D2D1.NetStandard/ComputeSharp.D2D1.NetStandard.projitems
@@ -10,16 +10,9 @@
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/src/ComputeSharp.D2D1.NetStandard/System/Diagnostics.CodeAnalysis/DisallowNullAttribute.cs b/src/ComputeSharp.D2D1.NetStandard/System/Diagnostics.CodeAnalysis/DisallowNullAttribute.cs
deleted file mode 100644
index a584aa30..00000000
--- a/src/ComputeSharp.D2D1.NetStandard/System/Diagnostics.CodeAnalysis/DisallowNullAttribute.cs
+++ /dev/null
@@ -1,13 +0,0 @@
-// Licensed to the .NET Foundation under one or more agreements.
-// The .NET Foundation licenses this file to you under the MIT license.
-// See the LICENSE file in the project root for more information.
-
-namespace System.Diagnostics.CodeAnalysis;
-
-///
-/// Specifies that null is disallowed as an input even if the corresponding type allows it.
-///
-[AttributeUsage(AttributeTargets.Field | AttributeTargets.Parameter | AttributeTargets.Property, Inherited = false)]
-internal sealed class DisallowNullAttribute : Attribute
-{
-}
\ No newline at end of file
diff --git a/src/ComputeSharp.D2D1.NetStandard/System/Diagnostics.CodeAnalysis/DoesNotReturnAttribute.cs b/src/ComputeSharp.D2D1.NetStandard/System/Diagnostics.CodeAnalysis/DoesNotReturnAttribute.cs
deleted file mode 100644
index 1c661961..00000000
--- a/src/ComputeSharp.D2D1.NetStandard/System/Diagnostics.CodeAnalysis/DoesNotReturnAttribute.cs
+++ /dev/null
@@ -1,14 +0,0 @@
-// Licensed to the .NET Foundation under one or more agreements.
-// The .NET Foundation licenses this file to you under the MIT license.
-// See the LICENSE file in the project root for more information.
-
-namespace System.Diagnostics.CodeAnalysis;
-
-///
-/// Applied to a method that will never return under any circumstance.
-///
-/// Internal copy from the BCL attribute.
-[AttributeUsage(AttributeTargets.Method, Inherited = false)]
-internal sealed class DoesNotReturnAttribute : Attribute
-{
-}
\ No newline at end of file
diff --git a/src/ComputeSharp.D2D1.NetStandard/System/Diagnostics.CodeAnalysis/NotNullAttribute.cs b/src/ComputeSharp.D2D1.NetStandard/System/Diagnostics.CodeAnalysis/NotNullAttribute.cs
deleted file mode 100644
index ca082723..00000000
--- a/src/ComputeSharp.D2D1.NetStandard/System/Diagnostics.CodeAnalysis/NotNullAttribute.cs
+++ /dev/null
@@ -1,15 +0,0 @@
-// Licensed to the .NET Foundation under one or more agreements.
-// The .NET Foundation licenses this file to you under the MIT license.
-// See the LICENSE file in the project root for more information.
-
-namespace System.Diagnostics.CodeAnalysis;
-
-///
-/// Specifies that an output will not be null even if the corresponding type allows it.
-/// Specifies that an input argument was not null when the call returns.
-///
-/// Internal copy from the BCL attribute.
-[AttributeUsage(AttributeTargets.Field | AttributeTargets.Parameter | AttributeTargets.Property | AttributeTargets.ReturnValue, Inherited = false)]
-internal sealed class NotNullAttribute : Attribute
-{
-}
\ No newline at end of file
diff --git a/src/ComputeSharp.D2D1.NetStandard/System/Diagnostics.CodeAnalysis/NotNullIfNotNullAttribute.cs b/src/ComputeSharp.D2D1.NetStandard/System/Diagnostics.CodeAnalysis/NotNullIfNotNullAttribute.cs
deleted file mode 100644
index 4629b739..00000000
--- a/src/ComputeSharp.D2D1.NetStandard/System/Diagnostics.CodeAnalysis/NotNullIfNotNullAttribute.cs
+++ /dev/null
@@ -1,29 +0,0 @@
-// Licensed to the .NET Foundation under one or more agreements.
-// The .NET Foundation licenses this file to you under the MIT license.
-
-namespace System.Diagnostics.CodeAnalysis;
-
-///
-/// Specifies that the output will be non-null if the named parameter is non-null.
-///
-[AttributeUsage(
- AttributeTargets.Parameter |
- AttributeTargets.Property |
- AttributeTargets.ReturnValue,
- AllowMultiple = true, Inherited = false)]
-internal sealed class NotNullIfNotNullAttribute : Attribute
-{
- ///
- /// Initializes the attribute with the associated parameter name.
- ///
- /// The associated parameter name. The output will be non-null if the argument to the parameter specified is non-null.
- public NotNullIfNotNullAttribute(string parameterName)
- {
- ParameterName = parameterName;
- }
-
- ///
- /// Gets the associated parameter name.
- ///
- public string ParameterName { get; }
-}
\ No newline at end of file
diff --git a/src/ComputeSharp.D2D1.SourceGenerators/ComputeSharp.D2D1.SourceGenerators.csproj b/src/ComputeSharp.D2D1.SourceGenerators/ComputeSharp.D2D1.SourceGenerators.csproj
index 30518540..b86b7108 100644
--- a/src/ComputeSharp.D2D1.SourceGenerators/ComputeSharp.D2D1.SourceGenerators.csproj
+++ b/src/ComputeSharp.D2D1.SourceGenerators/ComputeSharp.D2D1.SourceGenerators.csproj
@@ -15,7 +15,6 @@
-
@@ -65,7 +64,6 @@
-
diff --git a/src/ComputeSharp.D2D1/Properties/Polyfills/CompilerFeatureRequiredAttribute.cs b/src/ComputeSharp.D2D1/Properties/Polyfills/CompilerFeatureRequiredAttribute.cs
deleted file mode 100644
index 3da8c78b..00000000
--- a/src/ComputeSharp.D2D1/Properties/Polyfills/CompilerFeatureRequiredAttribute.cs
+++ /dev/null
@@ -1,40 +0,0 @@
-// Licensed to the .NET Foundation under one or more agreements.
-// The .NET Foundation licenses this file to you under the MIT license.
-
-namespace System.Runtime.CompilerServices;
-
-///
-/// Indicates that compiler support for a particular feature is required for the location where this attribute is applied.
-///
-[AttributeUsage(AttributeTargets.All, AllowMultiple = true, Inherited = false)]
-internal sealed class CompilerFeatureRequiredAttribute : Attribute
-{
- ///
- /// Initializes the with the identifier of the syntax used.
- ///
- /// The name of the compiler feature.
- public CompilerFeatureRequiredAttribute(string featureName)
- {
- FeatureName = featureName;
- }
-
- ///
- /// The name of the compiler feature.
- ///
- public string FeatureName { get; }
-
- ///
- /// If true, the compiler can choose to allow access to the location where this attribute is applied if it does not understand .
- ///
- public bool IsOptional { get; init; }
-
- ///
- /// The used for the ref structs C# feature.
- ///
- public const string RefStructs = nameof(RefStructs);
-
- ///
- /// The used for the required members C# feature.
- ///
- public const string RequiredMembers = nameof(RequiredMembers);
-}
\ No newline at end of file
diff --git a/src/ComputeSharp.D2D1/Properties/Polyfills/RequiredMemberAttribute.cs b/src/ComputeSharp.D2D1/Properties/Polyfills/RequiredMemberAttribute.cs
deleted file mode 100644
index 8b14f9a2..00000000
--- a/src/ComputeSharp.D2D1/Properties/Polyfills/RequiredMemberAttribute.cs
+++ /dev/null
@@ -1,18 +0,0 @@
-// Licensed to the .NET Foundation under one or more agreements.
-// The .NET Foundation licenses this file to you under the MIT license.
-
-namespace System.Runtime.CompilerServices;
-
-///
-/// Specifies that a type has required members or that a member is required.
-///
-[AttributeUsage(
- AttributeTargets.Class |
- AttributeTargets.Struct |
- AttributeTargets.Field |
- AttributeTargets.Property,
- AllowMultiple = false,
- Inherited = false)]
-internal sealed class RequiredMemberAttribute : Attribute
-{
-}
\ No newline at end of file
diff --git a/src/ComputeSharp.D2D1/Properties/Polyfills/StringSyntaxAttribute.cs b/src/ComputeSharp.D2D1/Properties/Polyfills/StringSyntaxAttribute.cs
deleted file mode 100644
index bb9a2248..00000000
--- a/src/ComputeSharp.D2D1/Properties/Polyfills/StringSyntaxAttribute.cs
+++ /dev/null
@@ -1,42 +0,0 @@
-// Licensed to the .NET Foundation under one or more agreements.
-// The .NET Foundation licenses this file to you under the MIT license.
-
-namespace System.Diagnostics.CodeAnalysis;
-
-///
-/// Specifies the syntax used in a string.
-///
-[AttributeUsage(AttributeTargets.Parameter | AttributeTargets.Field | AttributeTargets.Property, AllowMultiple = false, Inherited = false)]
-internal sealed class StringSyntaxAttribute : Attribute
-{
- ///
- /// Initializes the with the identifier of the syntax used.
- ///
- /// The syntax identifier.
- public StringSyntaxAttribute(string syntax)
- {
- Syntax = syntax;
- Arguments = Array.Empty
\ No newline at end of file
diff --git a/src/ComputeSharp.NetStandard/System/Diagnostics.CodeAnalysis/MemberNotNullAttribute.cs b/src/ComputeSharp.NetStandard/System/Diagnostics.CodeAnalysis/MemberNotNullAttribute.cs
deleted file mode 100644
index 2d663176..00000000
--- a/src/ComputeSharp.NetStandard/System/Diagnostics.CodeAnalysis/MemberNotNullAttribute.cs
+++ /dev/null
@@ -1,34 +0,0 @@
-// Licensed to the .NET Foundation under one or more agreements.
-// The .NET Foundation licenses this file to you under the MIT license.
-
-namespace System.Diagnostics.CodeAnalysis;
-
-///
-/// Specifies that the method or property will ensure that the listed field and property members have not-null values.
-///
-[AttributeUsage(AttributeTargets.Method | AttributeTargets.Property, Inherited = false, AllowMultiple = true)]
-internal sealed class MemberNotNullAttribute : Attribute
-{
- ///
- /// Initializes the attribute with a field or property member.
- ///
- /// The field or property member that is promised to be not-null.
- public MemberNotNullAttribute(string member)
- {
- Members = new[] { member };
- }
-
- ///
- /// Initializes the attribute with the list of field and property members.
- ///
- /// The list of field and property members that are promised to be not-null.
- public MemberNotNullAttribute(params string[] members)
- {
- Members = members;
- }
-
- ///
- /// Gets field or property member names.
- ///
- public string[] Members { get; }
-}
\ No newline at end of file
diff --git a/src/ComputeSharp.NetStandard/System/Diagnostics.CodeAnalysis/RequiresUnreferencedCodeAttribute.cs b/src/ComputeSharp.NetStandard/System/Diagnostics.CodeAnalysis/RequiresUnreferencedCodeAttribute.cs
deleted file mode 100644
index 699a1844..00000000
--- a/src/ComputeSharp.NetStandard/System/Diagnostics.CodeAnalysis/RequiresUnreferencedCodeAttribute.cs
+++ /dev/null
@@ -1,39 +0,0 @@
-// Licensed to the .NET Foundation under one or more agreements.
-// The .NET Foundation licenses this file to you under the MIT license.
-
-namespace System.Diagnostics.CodeAnalysis;
-
-///
-/// Indicates that the specified method requires dynamic access to code that is not referenced
-/// statically, for example through .
-///
-///
-/// This allows tools to understand which methods are unsafe to call when removing unreferenced
-/// code from an application.
-///
-[AttributeUsage(AttributeTargets.Method | AttributeTargets.Constructor | AttributeTargets.Class, Inherited = false)]
-internal sealed class RequiresUnreferencedCodeAttribute : Attribute
-{
- ///
- /// Initializes a new instance of the class
- /// with the specified message.
- ///
- ///
- /// A message that contains information about the usage of unreferenced code.
- ///
- public RequiresUnreferencedCodeAttribute(string message)
- {
- Message = message;
- }
-
- ///
- /// Gets a message that contains information about the usage of unreferenced code.
- ///
- public string Message { get; }
-
- ///
- /// Gets or sets an optional URL that contains more information about the method,
- /// why it requires unreferenced code, and what options a consumer has to deal with it.
- ///
- public string? Url { get; set; }
-}
\ No newline at end of file
diff --git a/src/ComputeSharp.NetStandard/System/Runtime/InteropServices/UnmanagedCallersOnlyAttribute.cs b/src/ComputeSharp.NetStandard/System/Runtime/InteropServices/UnmanagedCallersOnlyAttribute.cs
deleted file mode 100644
index 9b9e96e5..00000000
--- a/src/ComputeSharp.NetStandard/System/Runtime/InteropServices/UnmanagedCallersOnlyAttribute.cs
+++ /dev/null
@@ -1,31 +0,0 @@
-// Licensed to the .NET Foundation under one or more agreements.
-// The .NET Foundation licenses this file to you under the MIT license.
-
-using System;
-
-#pragma warning disable CS0649
-
-namespace ComputeSharp.NetStandard.System.Runtime.InteropServices; // This cannot be in System.Runtime.InteropServices, or Roslyn will recognize it
-
-///
-/// Any method marked with can be directly called from native code.
-///
-///
-/// This polyfill is deliberately in the wrong namespace to avoid the C# compiler failing to build below .NET 5.
-///
-[AttributeUsage(AttributeTargets.Method, Inherited = false)]
-internal sealed class UnmanagedCallersOnlyAttribute : Attribute
-{
- ///
- /// Optional. If omitted, the runtime will use the default platform calling convention.
- ///
- ///
- /// Supplied types must be from the official "System.Runtime.CompilerServices" namespace and be of the form "CallConvXXX".
- ///
- public Type[]? CallConvs;
-
- ///
- /// Optional. If omitted, no named export is emitted during compilation.
- ///
- public string? EntryPoint;
-}
\ No newline at end of file
diff --git a/src/ComputeSharp.NetStandard/System/Runtime/Versioning/OSPlatformAttribute.cs b/src/ComputeSharp.NetStandard/System/Runtime/Versioning/OSPlatformAttribute.cs
deleted file mode 100644
index 1c78df51..00000000
--- a/src/ComputeSharp.NetStandard/System/Runtime/Versioning/OSPlatformAttribute.cs
+++ /dev/null
@@ -1,20 +0,0 @@
-// Licensed to the .NET Foundation under one or more agreements.
-// The .NET Foundation licenses this file to you under the MIT license.
-
-using System.Diagnostics;
-
-namespace System.Runtime.Versioning;
-
-///
-/// Base type for all platform-specific API attributes.
-///
-[Conditional("DEBUG")]
-internal abstract class OSPlatformAttribute : Attribute
-{
- private protected OSPlatformAttribute(string platformName)
- {
- PlatformName = platformName;
- }
-
- public string PlatformName { get; }
-}
\ No newline at end of file
diff --git a/src/ComputeSharp.NetStandard/System/Runtime/Versioning/SupportedOSPlatformAttribute.cs b/src/ComputeSharp.NetStandard/System/Runtime/Versioning/SupportedOSPlatformAttribute.cs
deleted file mode 100644
index e1ea17d0..00000000
--- a/src/ComputeSharp.NetStandard/System/Runtime/Versioning/SupportedOSPlatformAttribute.cs
+++ /dev/null
@@ -1,38 +0,0 @@
-// Licensed to the .NET Foundation under one or more agreements.
-// The .NET Foundation licenses this file to you under the MIT license.
-
-using System.Diagnostics;
-
-namespace System.Runtime.Versioning;
-
-///
-/// Records the operating system (and minimum version) that supports an API. Multiple
-/// attributes can be applied to indicate support on multiple operating systems.
-///
-///
-/// Callers can apply a
-/// or use guards to prevent calls to APIs on unsupported operating systems.
-/// A given platform should only be specified once.
-///
-[AttributeUsage(
- AttributeTargets.Assembly |
- AttributeTargets.Class |
- AttributeTargets.Constructor |
- AttributeTargets.Enum |
- AttributeTargets.Event |
- AttributeTargets.Field |
- AttributeTargets.Interface |
- AttributeTargets.Method |
- AttributeTargets.Module |
- AttributeTargets.Property |
- AttributeTargets.Struct,
- AllowMultiple = true,
- Inherited = false)]
-[Conditional("DEBUG")]
-internal sealed class SupportedOSPlatformAttribute : OSPlatformAttribute
-{
- public SupportedOSPlatformAttribute(string platformName)
- : base(platformName)
- {
- }
-}
\ No newline at end of file
diff --git a/src/ComputeSharp.SourceGenerators/ComputeSharp.SourceGenerators.csproj b/src/ComputeSharp.SourceGenerators/ComputeSharp.SourceGenerators.csproj
index f55b64eb..2cac979b 100644
--- a/src/ComputeSharp.SourceGenerators/ComputeSharp.SourceGenerators.csproj
+++ b/src/ComputeSharp.SourceGenerators/ComputeSharp.SourceGenerators.csproj
@@ -1,4 +1,4 @@
-
+netstandard2.0
@@ -17,7 +17,6 @@
-
diff --git a/src/ComputeSharp/Graphics/Extensions/Interop/IWICStreamExtensions.IBufferWriter.cs b/src/ComputeSharp/Graphics/Extensions/Interop/IWICStreamExtensions.IBufferWriter.cs
index c2b76b09..2e44a8d7 100644
--- a/src/ComputeSharp/Graphics/Extensions/Interop/IWICStreamExtensions.IBufferWriter.cs
+++ b/src/ComputeSharp/Graphics/Extensions/Interop/IWICStreamExtensions.IBufferWriter.cs
@@ -19,7 +19,6 @@ using static TerraFX.Interop.Windows.STGTY;
using RuntimeHelpers = System.Runtime.CompilerServices.RuntimeHelpers;
#else
using RuntimeHelpers = ComputeSharp.NetStandard.System.Runtime.CompilerServices.RuntimeHelpers;
-using UnmanagedCallersOnlyAttribute = ComputeSharp.NetStandard.System.Runtime.InteropServices.UnmanagedCallersOnlyAttribute;
#endif
namespace ComputeSharp.Graphics.Extensions;
diff --git a/src/ComputeSharp/Graphics/Extensions/Interop/IWICStreamExtensions.Stream.cs b/src/ComputeSharp/Graphics/Extensions/Interop/IWICStreamExtensions.Stream.cs
index ebe50f80..16c8689b 100644
--- a/src/ComputeSharp/Graphics/Extensions/Interop/IWICStreamExtensions.Stream.cs
+++ b/src/ComputeSharp/Graphics/Extensions/Interop/IWICStreamExtensions.Stream.cs
@@ -19,7 +19,6 @@ using static TerraFX.Interop.Windows.STGTY;
using RuntimeHelpers = System.Runtime.CompilerServices.RuntimeHelpers;
#else
using RuntimeHelpers = ComputeSharp.NetStandard.System.Runtime.CompilerServices.RuntimeHelpers;
-using UnmanagedCallersOnlyAttribute = ComputeSharp.NetStandard.System.Runtime.InteropServices.UnmanagedCallersOnlyAttribute;
#endif
namespace ComputeSharp.Graphics.Extensions;
diff --git a/src/ComputeSharp/Graphics/GraphicsDevice.DeviceLost.cs b/src/ComputeSharp/Graphics/GraphicsDevice.DeviceLost.cs
index 30203f32..7d12c742 100644
--- a/src/ComputeSharp/Graphics/GraphicsDevice.DeviceLost.cs
+++ b/src/ComputeSharp/Graphics/GraphicsDevice.DeviceLost.cs
@@ -6,9 +6,6 @@ using ComputeSharp.Core.Extensions;
using ComputeSharp.Interop;
using TerraFX.Interop.DirectX;
using TerraFX.Interop.Windows;
-#if !NET6_0_OR_GREATER
-using UnmanagedCallersOnlyAttribute = ComputeSharp.NetStandard.System.Runtime.InteropServices.UnmanagedCallersOnlyAttribute;
-#endif
namespace ComputeSharp;
diff --git a/src/ComputeSharp/Graphics/GraphicsDevice.Execute.cs b/src/ComputeSharp/Graphics/GraphicsDevice.Execute.cs
index d9ac5c5f..ea8e6097 100644
--- a/src/ComputeSharp/Graphics/GraphicsDevice.Execute.cs
+++ b/src/ComputeSharp/Graphics/GraphicsDevice.Execute.cs
@@ -12,9 +12,6 @@ using ComputeSharp.Graphics.Commands.Interop;
using TerraFX.Interop.DirectX;
using TerraFX.Interop.Windows;
using static TerraFX.Interop.DirectX.D3D12_COMMAND_LIST_TYPE;
-#if !NET6_0_OR_GREATER
-using UnmanagedCallersOnlyAttribute = ComputeSharp.NetStandard.System.Runtime.InteropServices.UnmanagedCallersOnlyAttribute;
-#endif
namespace ComputeSharp;
diff --git a/src/ComputeSharp/Graphics/Helpers/DeviceHelper.IDXGIFactory6.cs b/src/ComputeSharp/Graphics/Helpers/DeviceHelper.IDXGIFactory6.cs
index dad22eed..778470be 100644
--- a/src/ComputeSharp/Graphics/Helpers/DeviceHelper.IDXGIFactory6.cs
+++ b/src/ComputeSharp/Graphics/Helpers/DeviceHelper.IDXGIFactory6.cs
@@ -7,7 +7,6 @@ using TerraFX.Interop.Windows;
using RuntimeHelpers = System.Runtime.CompilerServices.RuntimeHelpers;
#else
using RuntimeHelpers = ComputeSharp.NetStandard.System.Runtime.CompilerServices.RuntimeHelpers;
-using UnmanagedCallersOnlyAttribute = ComputeSharp.NetStandard.System.Runtime.InteropServices.UnmanagedCallersOnlyAttribute;
#endif
#pragma warning disable CA1416
diff --git a/src/Directory.Build.props b/src/Directory.Build.props
index 61c01412..64bd4f0d 100644
--- a/src/Directory.Build.props
+++ b/src/Directory.Build.props
@@ -1,7 +1,30 @@
+
+
+
+
+
+ all
+ build;analyzers
+
+
+
+
+
+
+
+
+
+
+ true
+ true
+
\ No newline at end of file
diff --git a/tests/ComputeSharp.Tests.DeviceLost/ComputeSharp.Tests.DeviceLost.csproj b/tests/ComputeSharp.Tests.DeviceLost/ComputeSharp.Tests.DeviceLost.csproj
index 6edaa669..087bf7db 100644
--- a/tests/ComputeSharp.Tests.DeviceLost/ComputeSharp.Tests.DeviceLost.csproj
+++ b/tests/ComputeSharp.Tests.DeviceLost/ComputeSharp.Tests.DeviceLost.csproj
@@ -22,7 +22,6 @@
-
diff --git a/tests/ComputeSharp.Tests/ComputeSharp.Tests.csproj b/tests/ComputeSharp.Tests/ComputeSharp.Tests.csproj
index 5810d1f6..97dab945 100644
--- a/tests/ComputeSharp.Tests/ComputeSharp.Tests.csproj
+++ b/tests/ComputeSharp.Tests/ComputeSharp.Tests.csproj
@@ -37,7 +37,6 @@
-