WuhuIslandTesting/Library/PackageCache/com.unity.collections@1.2.4/Unity.Collections/bee~/CustomizerForCollections.bee.cs
2025-01-07 02:06:59 +01:00

18 lines
626 B
C#

using System.Collections.Generic;
using JetBrains.Annotations;
using Bee.NativeProgramSupport;
[UsedImplicitly]
class CustomizerForCollections : AsmDefCSharpProgramCustomizer
{
public override string CustomizerFor => "Unity.Collections";
public override void CustomizeSelf(AsmDefCSharpProgram program)
{
var ilSupportDll = program.MainSourcePath.Parent.Combine("Unity.Collections.LowLevel.ILSupport/Unity.Collections.LowLevel.ILSupport.dll");
// if it doesn't exist, then perhaps the codegen is in use
if (ilSupportDll.Exists())
program.References.Add(ilSupportDll);
}
}