0
Fixed

Bolt does not find custom Units in Assembly Definitions

Real World 7 months ago • updated by Lazlo Bonin (Lead Developer) 4 months ago 3

I have a lot of common/reusable code in an assembly definition. When I run "Build Unit Options", these units are not included. After a day of banging my head against the wall trying to figure it out, I eventually debugged it against the source code. The reason is that the Codebase.cs file checks if it is a user assembly by checking 

private static bool IsUserAssembly(AssemblyName assemblyName) 
{ 
var name = assemblyName.Name; 
return name == "Assembly-CSharp" || name == "Assembly-CSharp-firstpass"; 
} 

Obviously, my assembly definition does not have one of these names so it classes it as an editor assembly instead and ignores it for custom units

Bolt Version:
1.4.1
Unity Version:
2018.3.4f1
.NET Version:
4.6
Working on Fix

Hi Real World,

Sorry for the very late reply on this, it somehow slipped the cracks. Will have a look.

Fixed in Next Version

Found the source of the issue, should be fixed for v.1.4.2, thank you!