Skip to content

Sentry fails to build with Unity 2021.2.7f1 #513

Closed

Description

@bitsandfoxes

When trying to dotnet build the SDK with 2021.2.7f1 the build fails with:

CSC : error CS1705: Assembly 'UnityEngine.TestRunner' with identity 'UnityEngine.TestRunner, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' uses 'netstandard, Version=2.1.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' which has a higher version than referenced assembly 'netstandard' with identity 'netstandard, Version=2.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' [/Users/runner/work/sentry-unity/sentry-unity/test/Sentry.Unity.Tests/Sentry.Unity.Tests.csproj]

The reason seems to be that the bump leads to an update of the Rider package:

            "com.unity.ide.rider": {
        -      "version": "1.2.1",
        +      "version": "3.0.7",
                "depth": 0,
                "source": "registry",
                "dependencies": {
        -        "com.unity.test-framework": "1.1.1"
        +        "com.unity.ext.nunit": "1.0.6"
        +      },
        +      "url": "https://packages.unity.com"
        +    }

where they changed their dependency from the com.unity.test-framework to com.unity.ext.nunit.

Interesting enough the actual test-framework package also has that custom NUnit package as a dependency:

Screenshot 2022-01-12 at 13 19 13

Activity

  1. bruno-garcia commented on Jan 24, 2022

    @bruno-garcia
    Member

    When we bump the SDK to ns2.1 to get rid of the TestRunner issue described here, Unity isnt' able to compile our managed DLLs with IL2CPP. Issue was raised with Unity: https://issuetracker.unity3d.com/issues/il2cpp-build-fails-when-adding-a-dll-build-with-net-standard-2-dot-1

  2. bruno-garcia commented on Jan 25, 2022

    @bruno-garcia
    Member

    Related to #520

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Bug

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions