diff --git a/src/ComputeSharp.SourceGenerators/ComputeShaderDescriptorGenerator.NumThreads.cs b/src/ComputeSharp.SourceGenerators/ComputeShaderDescriptorGenerator.NumThreads.cs
index 42ceda0b..2fd047af 100644
--- a/src/ComputeSharp.SourceGenerators/ComputeShaderDescriptorGenerator.NumThreads.cs
+++ b/src/ComputeSharp.SourceGenerators/ComputeShaderDescriptorGenerator.NumThreads.cs
@@ -33,7 +33,7 @@ partial class ComputeShaderDescriptorGenerator
out bool isCompilationEnabled)
{
// Try to get the attribute that controls shader precompilation (this is always required)
- if (!structDeclarationSymbol.TryGetAttributeWithFullyQualifiedMetadataName(typeof(ThreadGroupSizeAttribute).FullName, out AttributeData? attribute))
+ if (!structDeclarationSymbol.TryGetAttributeWithFullyQualifiedMetadataName("ComputeSharp.ThreadGroupSizeAttribute", out AttributeData? attribute))
{
diagnostics.Add(MissingThreadGroupSizeAttribute, structDeclarationSymbol, structDeclarationSymbol);
diff --git a/src/ComputeSharp.SourceGenerators/ComputeSharp.SourceGenerators.csproj b/src/ComputeSharp.SourceGenerators/ComputeSharp.SourceGenerators.csproj
index fd677c13..0a98ca88 100644
--- a/src/ComputeSharp.SourceGenerators/ComputeSharp.SourceGenerators.csproj
+++ b/src/ComputeSharp.SourceGenerators/ComputeSharp.SourceGenerators.csproj
@@ -62,7 +62,6 @@
-
diff --git a/src/ComputeSharp/Core/Attributes/ThreadGroupSizeAttribute.cs b/src/ComputeSharp/Core/Attributes/ThreadGroupSizeAttribute.cs
index c45b8280..4d2454c6 100644
--- a/src/ComputeSharp/Core/Attributes/ThreadGroupSizeAttribute.cs
+++ b/src/ComputeSharp/Core/Attributes/ThreadGroupSizeAttribute.cs
@@ -36,7 +36,6 @@ public sealed class ThreadGroupSizeAttribute : Attribute
/// The default thread group size to use.
public ThreadGroupSizeAttribute(DefaultThreadGroupSizes size)
{
-#if !SOURCE_GENERATOR
(ThreadsX, ThreadsY, ThreadsZ) = size switch
{
DefaultThreadGroupSizes.X => (64, 1, 1),
@@ -48,7 +47,6 @@ public sealed class ThreadGroupSizeAttribute : Attribute
DefaultThreadGroupSizes.XYZ => (4, 4, 4),
_ => default(ArgumentException).Throw<(int, int, int)>(nameof(size))
};
-#endif
}
///