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
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 (12)
Add comment
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- [UI Builder] Viewport's gizmos for Margin and Padding disappear when dragging to modify the value and the cursor leaves the Spacing section
- "Multiplayer Center" window does not reflect changes made in "Other Packages" section
- Crash on D3DKMTOpenResource when capturing with RenderDoc while GPU Skinning is set to GPU(Batched)
- Editing and saving Curve changes in UI Builder window throws multiple errors in the Console
- [UI Builder] Value is not selected when left clicking on Spacing/Border Widget values
sasadf
Jun 09, 2020 12:53
https://github.com" "adfsdf
sasadf
Jun 09, 2020 12:52
<>' " a [asd](aaaa)
NanoMath
May 18, 2018 09:53
Reproduced in 2018.2.0b4 on Windows 10 64bit
Laniemme
Mar 07, 2018 02:48
2018.1.0b9
Unloading broken assembly Assets/Plugins/Newtonsoft.Json.dll, this assembly can cause crashes in the runtime
StarFluke
Jan 27, 2018 01:02
Verified fix in 2018.1b4
StarFluke
Jan 26, 2018 20:44
e.g. class FromBase<I> excepts in Base<I> static constructor:
_zero = new I { INIT_ID = 0 };
StarFluke
Jan 26, 2018 20:27
Reproduced in 2017.3.0f3 with plugin code that uses a generic hierarchy.
jorisshh
Jan 19, 2018 13:25
Reproduced on 2018.1b3
LaneFox
Nov 21, 2017 19:03
This prevents a huge number of common integration uses, is there any fix status?
GilCat
Nov 06, 2017 15:02
Reproduced here on 2017.3.0b8