Skip to content

Commit

Permalink
fix(WeaverAssembler): Silence Obsolete Warning (#3826)
Browse files Browse the repository at this point in the history
We have #3630 for this...silence warning until Unity tells us what to use instead.
  • Loading branch information
MrGadget1024 committed May 20, 2024
1 parent c573936 commit f39521d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Assets/Mirror/Tests/Editor/Weaver/WeaverAssembler.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit f39521d

Please sign in to comment.