Skip to content

Commit 584a695

Browse files
committed
Fix assembly load error when using Rider 2025.2
1 parent 6de20ad commit 584a695

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

src/Assets/SimpleCodeGenerator/Editor/CodeGenerationMethod.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,13 @@
11
using System;
2+
using JetBrains.Annotations;
23

34
namespace SimpleCodeGenerator.Editor
45
{
56
/// <summary>
67
/// This attribute is used to mark methods for the <see cref="CodeGenerator"/> in order for them to be picked called during code generation.
78
/// </summary>
89
[AttributeUsage(AttributeTargets.Method)]
10+
[MeansImplicitUse]
911
public sealed class CodeGenerationMethod : Attribute
1012
{
1113
}

src/Assets/SimpleCodeGenerator/Editor/CodeGenerator.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,8 @@ public static void GenerateAll()
2020
stopwatch.Start();
2121
#endif
2222

23-
var assemblies = AppDomain.CurrentDomain.GetAssemblies();
23+
var assemblies = AppDomain.CurrentDomain.GetAssemblies()
24+
.Where(a => !a.FullName.StartsWith("JetBrains.Rider.Unity.Editor.Plugin.Net46.Repacked"));
2425

2526
var methods = assemblies
2627
.SelectMany(a => a.GetTypes())

0 commit comments

Comments
 (0)