暫無描述
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.

CustomizerForCollections.bee.cs 626B

123456789101112131415161718
  1. using System.Collections.Generic;
  2. using JetBrains.Annotations;
  3. using Bee.NativeProgramSupport;
  4. [UsedImplicitly]
  5. class CustomizerForCollections : AsmDefCSharpProgramCustomizer
  6. {
  7. public override string CustomizerFor => "Unity.Collections";
  8. public override void CustomizeSelf(AsmDefCSharpProgram program)
  9. {
  10. var ilSupportDll = program.MainSourcePath.Parent.Combine("Unity.Collections.LowLevel.ILSupport/Unity.Collections.LowLevel.ILSupport.dll");
  11. // if it doesn't exist, then perhaps the codegen is in use
  12. if (ilSupportDll.Exists())
  13. program.References.Add(ilSupportDll);
  14. }
  15. }