Seems like this issue is related to the latest VS update and not nCrunch? I downgraded to version 1.45 of nCrunch (which was working fine) and it is now broken there as well.
Is there anyway to get around this? nCrunch is unusable at this point for me. A workaround would be great.
Specifically this is a build failure on a WinPhone8 project in VS 2012.
Here is the stack trace.
System.InvalidOperationException: Failed to resolve type: System.Action
at Mono.Cecil.Mixin.CheckedResolve(TypeReference self)
at Mono.Cecil.MetadataBuilder.GetConstantType(TypeReference constant_type, Object constant)
at Mono.Cecil.MetadataBuilder.AddConstant(IConstantProvider owner, TypeReference type)
at Mono.Cecil.MetadataBuilder.AddParameter(UInt16 sequence, ParameterDefinition parameter, ParamTable table)
at Mono.Cecil.MetadataBuilder.AddParameters(MethodDefinition method)
at Mono.Cecil.MetadataBuilder.AddMethod(MethodDefinition method)
at Mono.Cecil.MetadataBuilder.AddMethods(TypeDefinition type)
at Mono.Cecil.MetadataBuilder.AddType(TypeDefinition type)
at Mono.Cecil.MetadataBuilder.AddType(TypeDefinition type)
at Mono.Cecil.MetadataBuilder.AddTypeDefs()
at Mono.Cecil.MetadataBuilder.BuildTypes()
at Mono.Cecil.MetadataBuilder.BuildModule()
at Mono.Cecil.ModuleWriter.<BuildMetadata>b__0(MetadataBuilder builder, MetadataReader _)
at Mono.Cecil.ModuleDefinition.Read[TItem,TRet](TItem item, Func`3 read)
at Mono.Cecil.ModuleWriter.BuildMetadata(ModuleDefinition module, MetadataBuilder metadata)
at Mono.Cecil.ModuleWriter.WriteModuleTo(ModuleDefinition module, Stream stream, WriterParameters parameters)
at Mono.Cecil.ModuleDefinition.Write(Stream stream, WriterParameters parameters)
at Mono.Cecil.ModuleDefinition.Write(String fileName, WriterParameters parameters)
at nCrunch.Compiler.StaticManipulation.BuiltAssembly.#=qja5Lz4WZy5j3MkNOHZhbaZpln7tx7srxEXb9K2GS7$U=.#=q22O$JgAsJTR3Hpdj0eFfVncIWom9AscQSwFKIwxgZu4=()
at nCrunch.Compiler.StaticManipulation.BuiltAssembly.#=qDxMNFyFjhW6PesDGrPnDGw==(Action #=qmoTnfrFpYptfR_uC0zp4vw==)
at nCrunch.Compiler.StaticManipulation.BuiltAssembly.Instrument(ComponentSourceLineMap sourceLineMap, IDictionary`2 instrumentationDirectivesByCodeFileId, IDictionary`2 codeFileIDsByFilePath, Boolean proxyProcessIsActive, Int32 componentId, IInstrumentationFilter[] instrumentationFilters)
at nCrunch.Compiler.RemoteBuildRunner.#=qLSOS1zuHnrzTx60jFaBRcIB2DcGcLszbneFFQNEvoBg=(ComponentBuildParameters #=q7KmSCDFrq8HbZ914RXx0qQ==, String #=ququTFsUvva1GB55pjo4xWUkBrHmgU24wfaApaZnR3Co=, BuildOutput #=qPH_Jd$V_IxrVJ0GZ$pHtGQ==, String #=qBr7BagygrWJoCOCDUUaMmQ_g$ymjxu2aPOxBqomomB0=, String[] #=qqlfITOgjD00t0l5VBAuXbHwLiH_$KXxXOG1qgbTM2OQ=)
at nCrunch.Compiler.RemoteBuildRunner.Build(ComponentBuildParameters parameters)