Extensions.cs 296 B

123456789101112
  1. using System.Reflection;
  2. using Microsoft.CodeAnalysis;
  3. namespace Godot.SourceGenerators.Tests;
  4. public static class Extensions
  5. {
  6. public static MetadataReference CreateMetadataReference(this Assembly assembly)
  7. {
  8. return MetadataReference.CreateFromFile(assembly.Location);
  9. }
  10. }