Add asmdef for EnsureOdinCorrectVersion script

Issue #898 new
Dan Vicarel created an issue

1. What happened? When installing Odin as a Unity package, I get the following compiler warning every time Unity rebuilds my code:

Script 'Packages/odininspector/Sirenix/Odin Validator/EnsureCorrectOdinVersion.cs' will not be compiled because it exists outside the Assets folder and does not to belong to any assembly definition file.
UnityEditor.Scripting.ScriptCompilation.EditorCompilationInterface:TickCompilationPipeline (UnityEditor.Scripting.ScriptCompilation.EditorScriptCompilationOptions,UnityEditor.BuildTargetGroup,UnityEditor.BuildTarget,int,string[])

As the warning recommends, an asmdef should be added to Odin Validator so that this script gets correctly compiled. Alternatively, if Odin Validator does not support installing with UPM, then the docs should be updated to clarify this (though it seems to be working fine otherwise).

2. How can we reproduce it? Follow the docs to install Odin as a Unity package, then rebuild code, e.g., by reimporting a script or plugin.

4. What version of Unity are you using?

2021.3.10f1

5. What version of Odin are you using? (See "Tools > Odin Inspector > About")

3.1.6 (this option was not in the version dropdown)

6. Do you have Editor Only mode enabled?

Yes

7. What operating system are you on?

Windows 11 Pro

Comments (0)

  1. Log in to comment