From d1cdd843f49fa4c75e907b9a1f2ddeb8f680edc0 Mon Sep 17 00:00:00 2001 From: Sergio Pedri Date: Wed, 18 Nov 2020 19:55:31 +0100 Subject: [PATCH] Bug fixes in the source generator setup --- .../AutoConstructorAttributeGenerator.cs | 2 +- src/ComputeSharp/ComputeSharp.csproj | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/ComputeSharp.SourceGenerators/AutoConstructorAttributeGenerator.cs b/src/ComputeSharp.SourceGenerators/AutoConstructorAttributeGenerator.cs index 21ea8e27..8d0d96f7 100644 --- a/src/ComputeSharp.SourceGenerators/AutoConstructorAttributeGenerator.cs +++ b/src/ComputeSharp.SourceGenerators/AutoConstructorAttributeGenerator.cs @@ -29,7 +29,7 @@ namespace ComputeSharp.SourceGenerators /// A shader that indicates that a target shader type should get an automatic constructor for all fields. /// [AttributeUsage(AttributeTargets.Struct, AllowMultiple = false)] - internal sealed class AutoConstructorAttribute : Attribute + public sealed class AutoConstructorAttribute : Attribute { } }"; diff --git a/src/ComputeSharp/ComputeSharp.csproj b/src/ComputeSharp/ComputeSharp.csproj index 469903e2..92f63fbb 100644 --- a/src/ComputeSharp/ComputeSharp.csproj +++ b/src/ComputeSharp/ComputeSharp.csproj @@ -11,7 +11,8 @@ + ReferenceOutputAssembly="false" + PrivateAssets="contentfiles;build"/>