0

Bolt does not find custom Units in Assembly Definitions

Real World 2 weeks ago • 0

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