diff --git a/src/ComputeSharp.Core/ComputeSharp.Core.csproj b/src/ComputeSharp.Core/ComputeSharp.Core.csproj
index f95c4771..4b1039be 100644
--- a/src/ComputeSharp.Core/ComputeSharp.Core.csproj
+++ b/src/ComputeSharp.Core/ComputeSharp.Core.csproj
@@ -6,11 +6,14 @@
ComputeSharp.Core.xml
-
-
- true
- true
-
+
+
+
+
+
+
+
+
diff --git a/src/ComputeSharp.Core/Properties/AssemblyInfo.cs b/src/ComputeSharp.Core/Properties/AssemblyInfo.cs
deleted file mode 100644
index 0a698d43..00000000
--- a/src/ComputeSharp.Core/Properties/AssemblyInfo.cs
+++ /dev/null
@@ -1,9 +0,0 @@
-using System.Runtime.CompilerServices;
-
-[module: SkipLocalsInit]
-
-[assembly: InternalsVisibleTo("ComputeSharp")]
-[assembly: InternalsVisibleTo("ComputeSharp.Dynamic")]
-[assembly: InternalsVisibleTo("ComputeSharp.Uwp")]
-[assembly: InternalsVisibleTo("ComputeSharp.WinUI")]
-[assembly: InternalsVisibleTo("ComputeSharp.D2D1")]
\ No newline at end of file
diff --git a/src/ComputeSharp.D2D1.SourceGenerators/ID2D1ShaderGenerator.CreateGetInputTypeMethod.cs b/src/ComputeSharp.D2D1.SourceGenerators/ID2D1ShaderGenerator.CreateGetInputTypeMethod.cs
index 53bc8909..e9904031 100644
--- a/src/ComputeSharp.D2D1.SourceGenerators/ID2D1ShaderGenerator.CreateGetInputTypeMethod.cs
+++ b/src/ComputeSharp.D2D1.SourceGenerators/ID2D1ShaderGenerator.CreateGetInputTypeMethod.cs
@@ -99,6 +99,9 @@ partial class ID2D1ShaderGenerator
Span selectedSimpleInputIndices = stackalloc bool[8];
Span selectedComplexInputIndices = stackalloc bool[8];
+ selectedSimpleInputIndices.Clear();
+ selectedComplexInputIndices.Clear();
+
// All simple indices must be unique
foreach (int index in inputSimpleIndicesBuilder.WrittenSpan)
{
diff --git a/src/ComputeSharp.D2D1.SourceGenerators/ID2D1ShaderGenerator.CreateLoadInputDescriptionsMethod.cs b/src/ComputeSharp.D2D1.SourceGenerators/ID2D1ShaderGenerator.CreateLoadInputDescriptionsMethod.cs
index c8dd433f..7813b71e 100644
--- a/src/ComputeSharp.D2D1.SourceGenerators/ID2D1ShaderGenerator.CreateLoadInputDescriptionsMethod.cs
+++ b/src/ComputeSharp.D2D1.SourceGenerators/ID2D1ShaderGenerator.CreateLoadInputDescriptionsMethod.cs
@@ -76,6 +76,8 @@ partial class ID2D1ShaderGenerator
Span selectedInputDescriptionIndices = stackalloc bool[8];
+ selectedInputDescriptionIndices.Clear();
+
// All input description indices must be unique
foreach (InputDescription inputDescription in inputDescriptionsBuilder.WrittenSpan)
{
diff --git a/src/ComputeSharp.D2D1.SourceGenerators/ID2D1ShaderGenerator.CreateLoadResourceTextureDescriptionsMethod.cs b/src/ComputeSharp.D2D1.SourceGenerators/ID2D1ShaderGenerator.CreateLoadResourceTextureDescriptionsMethod.cs
index 0c788c2f..f1bf3151 100644
--- a/src/ComputeSharp.D2D1.SourceGenerators/ID2D1ShaderGenerator.CreateLoadResourceTextureDescriptionsMethod.cs
+++ b/src/ComputeSharp.D2D1.SourceGenerators/ID2D1ShaderGenerator.CreateLoadResourceTextureDescriptionsMethod.cs
@@ -115,6 +115,8 @@ partial class ID2D1ShaderGenerator
Span selectedResourceTextureIndices = stackalloc bool[16];
+ selectedResourceTextureIndices.Clear();
+
// All input description indices must be unique (also take this path for invalid indices)
foreach ((int? index, _) in resourceTextureInfos.WrittenSpan)
{
diff --git a/src/ComputeSharp.D2D1/ComputeSharp.D2D1.csproj b/src/ComputeSharp.D2D1/ComputeSharp.D2D1.csproj
index 181e7103..fab27296 100644
--- a/src/ComputeSharp.D2D1/ComputeSharp.D2D1.csproj
+++ b/src/ComputeSharp.D2D1/ComputeSharp.D2D1.csproj
@@ -3,6 +3,7 @@
netstandard2.0;net6.0
bin\Release
ComputeSharp.D2D1.xml
+ windows6.1
@@ -33,12 +34,6 @@
-
-
- true
- true
-
-
diff --git a/src/ComputeSharp.D2D1/Properties/AssemblyInfo.cs b/src/ComputeSharp.D2D1/Properties/AssemblyInfo.cs
deleted file mode 100644
index d622c74a..00000000
--- a/src/ComputeSharp.D2D1/Properties/AssemblyInfo.cs
+++ /dev/null
@@ -1,6 +0,0 @@
-using System.Runtime.CompilerServices;
-using System.Runtime.Versioning;
-
-[module: SkipLocalsInit]
-
-[assembly: SupportedOSPlatform("windows6.1")]
\ No newline at end of file
diff --git a/src/ComputeSharp.Dynamic/ComputeSharp.Dynamic.csproj b/src/ComputeSharp.Dynamic/ComputeSharp.Dynamic.csproj
index 7c23d229..db55494b 100644
--- a/src/ComputeSharp.Dynamic/ComputeSharp.Dynamic.csproj
+++ b/src/ComputeSharp.Dynamic/ComputeSharp.Dynamic.csproj
@@ -4,13 +4,12 @@
bin\Release
ComputeSharp.Dynamic.xml
AnyCPU;x64;ARM64
+ windows6.2
-
-
- true
- true
-
+
+
+
diff --git a/src/ComputeSharp.Dynamic/Properties/AssemblyInfo.cs b/src/ComputeSharp.Dynamic/Properties/AssemblyInfo.cs
deleted file mode 100644
index 36c2fdf1..00000000
--- a/src/ComputeSharp.Dynamic/Properties/AssemblyInfo.cs
+++ /dev/null
@@ -1,8 +0,0 @@
-using System.Runtime.CompilerServices;
-using System.Runtime.Versioning;
-
-[module: SkipLocalsInit]
-
-[assembly: SupportedOSPlatform("windows6.2")]
-
-[assembly: InternalsVisibleTo("ComputeSharp.Tests.Internals")]
\ No newline at end of file
diff --git a/src/ComputeSharp.Pix/ComputeSharp.Pix.csproj b/src/ComputeSharp.Pix/ComputeSharp.Pix.csproj
index 1ad34cdb..976a86aa 100644
--- a/src/ComputeSharp.Pix/ComputeSharp.Pix.csproj
+++ b/src/ComputeSharp.Pix/ComputeSharp.Pix.csproj
@@ -4,12 +4,7 @@
bin\Release
ComputeSharp.Pix.xml
AnyCPU;x64;ARM64
-
-
-
-
- true
- true
+ windows6.2
diff --git a/src/ComputeSharp.Pix/Properties/AssemblyInfo.cs b/src/ComputeSharp.Pix/Properties/AssemblyInfo.cs
deleted file mode 100644
index 2acf37cd..00000000
--- a/src/ComputeSharp.Pix/Properties/AssemblyInfo.cs
+++ /dev/null
@@ -1,3 +0,0 @@
-using System.Runtime.Versioning;
-
-[assembly: SupportedOSPlatform("windows6.2")]
\ No newline at end of file
diff --git a/src/ComputeSharp.Uwp/Properties/AssemblyInfo.cs b/src/ComputeSharp.Uwp/Properties/AssemblyInfo.cs
index eecfefd0..f03c1078 100644
--- a/src/ComputeSharp.Uwp/Properties/AssemblyInfo.cs
+++ b/src/ComputeSharp.Uwp/Properties/AssemblyInfo.cs
@@ -1,6 +1,3 @@
-using System.Runtime.CompilerServices;
-using System.Runtime.InteropServices;
-
-[module: SkipLocalsInit]
+using System.Runtime.InteropServices;
[assembly: ComVisible(false)]
\ No newline at end of file
diff --git a/src/ComputeSharp.WinUI/Properties/AssemblyInfo.cs b/src/ComputeSharp.WinUI/Properties/AssemblyInfo.cs
deleted file mode 100644
index 196f23c5..00000000
--- a/src/ComputeSharp.WinUI/Properties/AssemblyInfo.cs
+++ /dev/null
@@ -1,3 +0,0 @@
-using System.Runtime.CompilerServices;
-
-[module: SkipLocalsInit]
\ No newline at end of file
diff --git a/src/ComputeSharp/ComputeSharp.csproj b/src/ComputeSharp/ComputeSharp.csproj
index 6b9326c4..fc230ebc 100644
--- a/src/ComputeSharp/ComputeSharp.csproj
+++ b/src/ComputeSharp/ComputeSharp.csproj
@@ -3,13 +3,16 @@
netstandard2.0;net6.0
bin\Release
ComputeSharp.xml
+ windows6.2
-
-
- true
- true
-
+
+
+
+
+
+
+
diff --git a/src/ComputeSharp/Properties/AssemblyInfo.cs b/src/ComputeSharp/Properties/AssemblyInfo.cs
deleted file mode 100644
index 31f57316..00000000
--- a/src/ComputeSharp/Properties/AssemblyInfo.cs
+++ /dev/null
@@ -1,13 +0,0 @@
-using System.Runtime.CompilerServices;
-using System.Runtime.Versioning;
-
-[module: SkipLocalsInit]
-
-[assembly: SupportedOSPlatform("windows6.2")]
-
-[assembly: InternalsVisibleTo("ComputeSharp.Dynamic")]
-[assembly: InternalsVisibleTo("ComputeSharp.Pix")]
-[assembly: InternalsVisibleTo("ComputeSharp.Uwp")]
-[assembly: InternalsVisibleTo("ComputeSharp.WinUI")]
-
-[assembly: InternalsVisibleTo("ComputeSharp.Tests.Internals")]
\ No newline at end of file
diff --git a/src/Directory.Build.targets b/src/Directory.Build.targets
new file mode 100644
index 00000000..a1b282c8
--- /dev/null
+++ b/src/Directory.Build.targets
@@ -0,0 +1,61 @@
+
+
+
+
+
+
+
+
+ true
+ true
+
+
+
+
+
+
+
+
+ <_Parameter1>$(SupportedOSVersion)
+
+
+
+
+
+
+ $(IntermediateOutputPath)$(MSBuildProjectName).SkipLocalsInit.g.cs
+
+
+// This code was generated by a tool.
+//
+// Changes to this file may cause incorrect behavior and will be lost if
+// the code is regenerated.
+//
+//------------------------------------------------------------------------------
+
+[module: System.Runtime.CompilerServices.SkipLocalsInitAttribute]]]>
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file