Skip to content
This repository has been archived by the owner on Jul 15, 2023. It is now read-only.

Reading assembly 'Unity.Abstractions' generate System.OutOfMemoryException #501

Open
bratchikov opened this issue May 18, 2018 · 1 comment

Comments

@bratchikov
Copy link

When in project used package Unity version="5.0.2" and CodeContracts.MSBuild version="1.12.0" then build error with output:

2> Reading assembly 'Unity.Abstractions' from 'C:\Work.NET\GitHub\NewPlatform.Flexberry.ORM.ODataService\packages\Unity.5.0.2\lib\net45\Unity.Abstractions.dll' resulted in errors.
2> Выдано исключение типа "System.OutOfMemoryException".
2>ccrewrite : error : Rewrite aborted due to metadata errors. Check output window
2> elapsed time: 1341,929ms

For the reference version 1.12.0 CodeContracts.MSBuild is using CodeContracts binaries version 1.10.20606.1-rc2 (released on 6 Jun 2016), the latest version by now.

Initial issue

@yaakov-h
Copy link
Contributor

This is probably the known issue where ccrewrite crashes with an OutOfMemory exception when reading a new "Portable" PDB file.

As a workaround, copy the Unity DLL somewhere without copying the PDB, and reference it from there.

As a solution, stop relying on a dead project.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants