- Home /
The Assembly is referenced, But the dll is not allowed to be included or could not be found
I am getting the following error when I try to build my project:
ArgumentException: The Assembly nunit.framework is referenced by MapboxAssembly ('Library/PlayerScriptAssemblies/MapboxAssembly.dll'). But the dll is not allowed to be included or could not be found.
The dll is located at Packages/com.unity.ext.nunit/net35/unity-custom/nunit.framework.dll
But when I inspect the dll to attempt to set this to be excluded on standalone platforms, all the inspector options are greyed out. I can't just set the MapboxAssembly to be only included in Editor platforms because I have references to it.
What can I do here? Why is this nunit dll installed at this location? When I try to remove it from this location and add it back somewhere else, I get compile errors.
I have also tried setting the API compatibility to .NET Standard 2.0 (from .NET 4.x) but this does not solve the issue.
Your answer
Follow this Question
Related Questions
Keep assemblies in separated dll instead of GameAssembly.dll 0 Answers
Distribute terrain in zones 3 Answers
Why does Assembly-CSharp reference UnityEditor.dll 0 Answers
in Unity 5, how can I get/set an asset's AssetBundle assignment via scripting? 1 Answer
Why does my 32-bit dll plugin(c++) work in Unity 4 and not in Unity 5 indy (Windows 32-bit editor) 0 Answers