How to know and control which scripts are compiling?

(Apologies in advance for noob question…)

I have the same C# script in two different places: /Plugins/[PluginSubdirectory] and /Scripts/Other. Regardless of how I ended up like this, how can I know which of them will compile? How can I control it?

Thanks!

If they’re exactly the same class (and in the same namespace) then I don’t believe they will compile at all. In fact, you should get an error like the following:

< path to file > error CS0101: The namespace ‘< namespace >’ already contains a definition for ‘< class name >’