문제 설명
Visual Studio 빌드 중 PostSharp OutOfMemoryException (PostSharp OutOfMemoryException during Visual Studio build)
Visual Studio 2015(업데이트 1 포함)가 포함된 C# 솔루션에서 최신 버전의 PostSharp(버전 4.1.31.0)를 사용하고 있습니다.
솔루션을 빌드하려고 할 때마다 다음과 같은 메시지가 나타납니다. error:
처리되지 않은 예외(4.1.31.0, postsharp.srv.4.0‑x86.exe, CLR 4.0.30319.394271, 릴리스): System.OutOfMemoryException: 'System.OutOfMemoryException' 유형의 예외가 발생했습니다. 던졌습니다.
빌드할 때 자세한 출력을 켰지만 지금까지 출력에서 아무 것도 발견할 수 없었습니다!
효과가 있는 다른 솔루션이 있습니다. 이 버전에서는 문제가 없었으므로 솔루션 구성과 관련이 있는 것으로 생각됩니다.
제외에, 버전 4.1.30도 시도했지만 정확히 동일한 오류가 발생했습니다.
어디를 봐야 하는지 도움이나 조언을 주시면 대단히 감사하겠습니다.
참조 솔루션
방법 1:
So to solve my issue all I had to do was to set the PostSharp 'Processor Architecture' option in the project properties to x64 for the project that includes my aspects.
I'm not exactly sure why but my application builds and runs without issues.
(by Ben Thomson、Ben Thomson)
참조 문서