Since b11, I get this error on each compile and/or play:
Unloading broken assembly Packages/com.unity.incrementalcompiler/Editor/Plugins/Unity.PureCSharpTests.dll, this assembly can cause crashes in the runtime
I tried deleting the package cache and starting from scratch but it keeps popping. Doesn’t happen with b10 and below.
Happens with a new blank project with the IncrementalCompiler package installed.
Unloading broken assembly Packages/com.unity.incrementalcompiler/Editor/Plugins/Unity.PureCSharpTests.dll, this assembly can cause crashes in the runtime
Same here, I get the error when trying to get assemblies for some reflection work using “System.Assembly.GetTypes();” using latest build 29 as well.
using System.Reflection;
using System.Collections.Generic;
using System;
using UnityEngine;
public static class ReflectionHelpers
{
public static System.Type[] GetAllDerivedTypes<T>(this System.AppDomain aAppDomain)
where T : MonoBehaviour
{
var result = new List<System.Type>();
var assemblies = aAppDomain.GetAssemblies();
foreach (var assembly in assemblies)
{
//Debug.Log(assembly.Location);
/* Workaround commented out to reproduce error
try
{
if (assembly.Location.Contains("PackageCache"))
continue;
} catch { continue; }
*/
var types = assembly.GetTypes();
foreach (var type in types)
{
if (type.IsSubclassOf(typeof(T)) && !type.IsAbstract && type.IsClass)
result.Add(type);
}
}
return result.ToArray();
}
}
This is caused by a breaking change in one of Unity’s internal API.
I’ve released version 0.0.42-preview.30 which works with 2018.3.b11++, but breaks compatibility with previous 2018.3 betas.
For support for 2018.3.b10 and lower, please use 0.0.42-preview.29.
Dom, have one question. May I ask you what compiler command line tool in unity installed directory you use to compile NET4.x or NETSTANDARD2.0 assemblies? Like Unity.app/Contents/??? In the past we used mcs but that has change with the new 2018.3.