Firstborn/Library/PackageCache/com.unity.collections@1.4.0/Unity.Collections/bee~/CustomizerForCollections.be...

19 lines
626 B
C#
Raw Normal View History

2023-03-28 13:24:16 -04:00
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);
}
}