You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

19 lines
626 B

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