mirror of
https://github.com/MirrorNetworking/Mirror.git
synced 2024-11-18 11:00:32 +00:00
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:
parent
94330010c7
commit
af9994ba57
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user