Firstborn/Library/PackageCache/com.unity.collections@1.4.0/Unity.Collections/bee~/CustomizerForCollections.be...
Schaken-Mods b486678290 Library -Artifacts
Library -Artifacts
2023-03-28 12:24:16 -05:00

19 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);
}
}