Skip to content

Compile errors on player build with Unity 2019 #120

@bgr

Description

@bgr

Can't build player on 2019.4.40:

The type or namespace name 'RuntimeInternals' does not exist in the namespace 'TestHelper' (are you missing an assembly reference?)

coming from 4 scripts FocusGameViewAttribute.cs(8,18), GameViewResolutionAttribute.cs(8,18), GizmosShowOnGameViewAttribute.cs(8,18), LoadSceneAttribute.cs(9,18), TakeScreenshotAttribute.cs(8,18).

Adding scripting define symbols COM_NOWSPRINTING_TEST_HELPER_ENABLE and/or UNITY_INCLUDE_TESTS causes the following compile error:

ArgumentException: The Assembly UnityEngine.TestRunner is referenced by TestHelper ('Library/PlayerScriptAssemblies/TestHelper.dll'). But the dll is not allowed to be included or could not be found.

How is the library supposed to be used in a project that will also need to make a regular player build of the game?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions