Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

Build exception
dolo84
#1 Posted : Friday, February 24, 2017 7:38:12 AM(UTC)
Rank: Newbie

Groups: Registered
Joined: 2/24/2017(UTC)
Posts: 1
Location: Poland

Hi, we're getting an exception when building project. Problem started recently, after updating NCrunch to version 3.3. Version 2.7 works ok.
Visual Studio 2015, target framework 4.0, no post-build manipulation of assembly.

System.NotSupportedException: Specified method is not supported.
w _Mono.Cecil.MetadataReader.LookupToken(MetadataToken token)
w _Mono.Cecil.Cil.CodeReader.ReadOperand(Instruction instruction)
w _Mono.Cecil.Cil.CodeReader.ReadCode()
w _Mono.Cecil.Cil.CodeReader.ReadMethodBody()
w _Mono.Cecil.Cil.CodeReader.ReadMethodBody(MethodDefinition method)
w _Mono.Cecil.MethodDefinition.<>c.<get_Body>b__36_0(MethodDefinition method, MetadataReader reader)
w _Mono.Cecil.ModuleDefinition.Read[TItem,TRet](TItem item, Func`3 read)
w _Mono.Cecil.MethodDefinition.get_Body()
w nCrunch.Reflection.Cecil.CecilMethod.get_HasBody()
w nCrunch.TestExecution.Frameworks.DefaultClassMethodDescriptionLocator.ExtractClassMemberDataFromType(ReflectedType type, Boolean hashAllMethods)
w nCrunch.Compiler.StaticManipulation.BuiltAssembly.(ReflectedAssembly , IDictionary`2 , TestFrameworkDescription[] , Boolean )
w nCrunch.Compiler.StaticManipulation.BuiltAssembly.ExtractClassMethodData(TestFrameworkDescription[] applicableTestFrameworks, IDictionary`2 codeFileIDsByFilePath, Boolean hashMethods)
w nCrunch.Compiler.RemoteBuildRunner..()
w nCrunch.Common.PerformanceTracking.PerfTracker.TrackActivity(String name, Action activity)
w nCrunch.Compiler.RemoteBuildRunner.(ComponentBuildParameters , FilePath , BuildOutput , DirectoryPath[] , FilePath[] )
w nCrunch.Compiler.RemoteBuildRunner..()
w nCrunch.Common.PerformanceTracking.PerfTracker.TrackActivity(String name, Action activity)
w nCrunch.Compiler.RemoteBuildRunner.(ComponentBuildParameters )

Do you have any suggestion how to deal with this?

Thanks in advance.
Remco
#2 Posted : Friday, February 24, 2017 11:14:04 AM(UTC)
Rank: NCrunch Developer

Groups: Administrators
Joined: 4/16/2011(UTC)
Posts: 7,145

Thanks: 960 times
Was thanked: 1290 time(s) in 1196 post(s)
Hi, thanks for sharing this issue.

This problem is likely being caused by an IL sequence that NCrunch isn't designed to handle. It may be possible to work around this problem by turning off the 'Instrument output assembly' setting for this project.

Are you able to share with me a project that can reproduce this issue? Unfortunately it will be tough to track this down without a way to make it happen for myself.
Users browsing this topic
Guest
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

YAF | YAF © 2003-2011, Yet Another Forum.NET
This page was generated in 0.028 seconds.
Trial NCrunch
Take NCrunch for a spin
Do your fingers a favour and supercharge your testing workflow
Free Download