For example I have two assemblies:
- Project.UI
- Project.UI.Internal
To better control dependency rules I want all my *View.cs sources from Project.UI module to be implicitly moved to Project.UI.Internal module.
Is it possible to do this somehow?
Is it possible to completely override script compilation?
An Assembly Definition (asmdef) controls compilation of all scripts in the same folder and all subfolders, unless a subfolder contains another asmdef.
You cannot have multiple asmdef in the same folder nor can you specify which scripts the asmdef compiles.
Instead, you would make folders as specified above, where the “UI” folder contains your public asmdef and has a dependency to the internal asmdef which you can store in the “UI/Internal” subfolder.
1 Like
Probably it would be more convenient if it were possible to manually define include and exclude paths/patterns for each assembly definition.