BuildInfoAttribute.cs 498 B

12345678910111213141516171819
  1. using System;
  2. namespace BepInEx.Shared
  3. {
  4. /// <summary>
  5. /// This class is appended to AssemblyInfo.cs when BepInEx is built via a CI pipeline.
  6. /// It is mainly intended to signify that the current build is not a release build and is special, like for instance a bleeding edge build.
  7. /// </summary>
  8. [AttributeUsage(AttributeTargets.Assembly)]
  9. public class BuildInfoAttribute : Attribute
  10. {
  11. public string Info { get; }
  12. public BuildInfoAttribute(string info)
  13. {
  14. Info = info;
  15. }
  16. }
  17. }