fix(WeaverAssembler): Silence Obsolete Warning (#3826)

We have #3630 for this...silence warning until Unity tells us what to use instead.
This commit is contained in:
MrGadget 2024-05-20 06:29:52 -04:00
parent 94330010c7
commit af9994ba57

View File

@ -93,11 +93,13 @@ public static void Clear()
public static void Build(Action<string> OnWarning, Action<string> OnError)
{
#pragma warning disable 618
AssemblyBuilder assemblyBuilder = new AssemblyBuilder(Path.Combine(OutputDirectory, OutputFile), SourceFiles.ToArray())
{
// "The type 'MonoBehaviour' is defined in an assembly that is not referenced"
referencesOptions = ReferencesOptions.UseEngineModules
};
#pragma warning restore 618
if (AllowUnsafe)
{
assemblyBuilder.compilerOptions.AllowUnsafeCode = true;