Search Issue Tracker

Won't Fix

Votes

23

Found in

2017.1.0b5

Issue ID

911897

Regression

No

Unity fails to load .NET 4.6 assemblies with TypeLoadException

Mono

-

DLLs added to the project:
Microsoft.Management.Infrastucture.dll
Microsoft.Management.Infrastructure.Native.dll
System.Management.Automation.dll

To reproduce:

1. Open the project, attached by user (PSTest.zip)

Expected: no exceptions are thrown when launching the Editor with the DLLs mentioned above
Actual: TypeLoadException and "Unloading broken assembly Assets/System.Management.Automation.dll, this assembly can cause crashes in the runtime" errors are thrown after the project was opened

Reproduced in 2017.1.0b2, 2017.1.0b3, 2017.1.0b4, 2017.1.0b5, 2017.1.0b6
Could not test for regression, because the DLLs target .NET 4.x and so this issue can really be tested with 2017.1, since this is the version where .NET 4.6 support was introduced.

Update: We've filed an issue upstream to address the problem https://github.com/mono/mono/issues/7421

Comments (13)

  1. F80d2e987fc86920d445859632db3f9e?d=mm

    GilCat

    Nov 06, 2017 15:02

    Reproduced here on 2017.3.0b8

  2. 4b0945de04be6d38e1821a3648c2aaea?d=mm

    fsnkss

    Oct 16, 2017 03:59

    Reproduced in 2017.1.1f1

  3. 6cd4aaa0589b3f9e116ae3cf0048d49e?d=mm

    kierand

    Oct 11, 2017 11:50

    Reproduced here on 2017.1.1p4

Add comment

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.