From 983e874f4dae747b4e06f4125bbb548165a98275 Mon Sep 17 00:00:00 2001 From: Sergio Pedri Date: Fri, 7 Oct 2022 20:38:33 +0200 Subject: [PATCH] Add [SkipLocalsInit] to all projects --- .../Properties/AssemblyInfo.cs | 3 +++ src/ComputeSharp.Core/Properties/AssemblyInfo.cs | 1 + .../Properties/AssemblyInfo.cs | 3 +++ src/ComputeSharp.Pix/Properties/AssemblyInfo.cs | 5 ++++- src/ComputeSharp.SourceGenerators/Properties/AssemblyInfo.cs | 3 +++ 5 files changed, 14 insertions(+), 1 deletion(-) create mode 100644 src/ComputeSharp.Core.SourceGenerators/Properties/AssemblyInfo.cs create mode 100644 src/ComputeSharp.D2D1.SourceGenerators/Properties/AssemblyInfo.cs create mode 100644 src/ComputeSharp.SourceGenerators/Properties/AssemblyInfo.cs diff --git a/src/ComputeSharp.Core.SourceGenerators/Properties/AssemblyInfo.cs b/src/ComputeSharp.Core.SourceGenerators/Properties/AssemblyInfo.cs new file mode 100644 index 00000000..196f23c5 --- /dev/null +++ b/src/ComputeSharp.Core.SourceGenerators/Properties/AssemblyInfo.cs @@ -0,0 +1,3 @@ +using System.Runtime.CompilerServices; + +[module: SkipLocalsInit] \ No newline at end of file diff --git a/src/ComputeSharp.Core/Properties/AssemblyInfo.cs b/src/ComputeSharp.Core/Properties/AssemblyInfo.cs index 0a698d43..a5893c97 100644 --- a/src/ComputeSharp.Core/Properties/AssemblyInfo.cs +++ b/src/ComputeSharp.Core/Properties/AssemblyInfo.cs @@ -4,6 +4,7 @@ [assembly: InternalsVisibleTo("ComputeSharp")] [assembly: InternalsVisibleTo("ComputeSharp.Dynamic")] +[assembly: InternalsVisibleTo("ComputeSharp.Pix")] [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/Properties/AssemblyInfo.cs b/src/ComputeSharp.D2D1.SourceGenerators/Properties/AssemblyInfo.cs new file mode 100644 index 00000000..196f23c5 --- /dev/null +++ b/src/ComputeSharp.D2D1.SourceGenerators/Properties/AssemblyInfo.cs @@ -0,0 +1,3 @@ +using System.Runtime.CompilerServices; + +[module: SkipLocalsInit] \ No newline at end of file diff --git a/src/ComputeSharp.Pix/Properties/AssemblyInfo.cs b/src/ComputeSharp.Pix/Properties/AssemblyInfo.cs index 2acf37cd..b0b6f87c 100644 --- a/src/ComputeSharp.Pix/Properties/AssemblyInfo.cs +++ b/src/ComputeSharp.Pix/Properties/AssemblyInfo.cs @@ -1,3 +1,6 @@ -using System.Runtime.Versioning; +using System.Runtime.CompilerServices; +using System.Runtime.Versioning; + +[module: SkipLocalsInit] [assembly: SupportedOSPlatform("windows6.2")] \ No newline at end of file diff --git a/src/ComputeSharp.SourceGenerators/Properties/AssemblyInfo.cs b/src/ComputeSharp.SourceGenerators/Properties/AssemblyInfo.cs new file mode 100644 index 00000000..196f23c5 --- /dev/null +++ b/src/ComputeSharp.SourceGenerators/Properties/AssemblyInfo.cs @@ -0,0 +1,3 @@ +using System.Runtime.CompilerServices; + +[module: SkipLocalsInit] \ No newline at end of file