Browse Source

Move BuildInfoAttribute to shared project

ghorsington 3 years ago
parent
commit
0d1925d926

+ 0 - 18
BepInEx.Core/Contract/Attributes.cs

@@ -297,22 +297,4 @@ namespace BepInEx
 	}
 
 	#endregion
-
-	#region Build configuration
-
-	/// <summary>
-	/// This class is appended to AssemblyInfo.cs when BepInEx is built via a CI pipeline.
-	/// 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.
-	/// </summary>
-	public class BuildInfoAttribute : Attribute
-	{
-		public string Info { get; }
-
-		public BuildInfoAttribute(string info)
-		{
-			Info = info;
-		}
-	}
-
-	#endregion
 }

+ 0 - 2
BepInEx.Core/Properties/AssemblyInfo.cs

@@ -1,6 +1,4 @@
 using System.Runtime.CompilerServices;
-// ReSharper disable once RedundantUsingDirective
-using BepInEx;
 
 [assembly: InternalsVisibleTo("BepInEx.Preloader.Core")]
 [assembly: InternalsVisibleTo("BepInEx.Unity")]

+ 1 - 0
BepInEx.Preloader.Core/Logging/ChainloaderLogHelper.cs

@@ -1,5 +1,6 @@
 using System.Linq;
 using BepInEx.Logging;
+using BepInEx.Shared;
 using MonoMod.Utils;
 
 namespace BepInEx.Preloader.Core.Logging

+ 2 - 0
BepInEx.Shared/AssemblyInfo.cs

@@ -1,4 +1,6 @@
 using System.Reflection;
+// ReSharper disable once RedundantUsingDirective
+using BepInEx.Shared;
 
 [assembly:AssemblyCopyright("Copyright © 2020 BepInEx Team")]
 [assembly: AssemblyVersion(VersionInfo.VERSION)]

+ 1 - 0
BepInEx.Shared/BepInEx.Shared.projitems

@@ -10,5 +10,6 @@
   </PropertyGroup>
   <ItemGroup>
     <Compile Include="$(MSBuildThisFileDirectory)AssemblyInfo.cs" />
+    <Compile Include="$(MSBuildThisFileDirectory)BuildInfoAttribute.cs" />
   </ItemGroup>
 </Project>

+ 18 - 0
BepInEx.Shared/BuildInfoAttribute.cs

@@ -0,0 +1,18 @@
+using System;
+
+namespace BepInEx.Shared
+{
+	/// <summary>
+	/// This class is appended to AssemblyInfo.cs when BepInEx is built via a CI pipeline.
+	/// 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.
+	/// </summary>
+	public class BuildInfoAttribute : Attribute
+	{
+		public string Info { get; }
+
+		public BuildInfoAttribute(string info)
+		{
+			Info = info;
+		}
+	}
+}