Build/Test Issues

Ncrunch and PostSharp

Started by liviuu on 6,366 views


I have an F# project that uses PostSharp. PostSharp build task tries to load nCrunch.TestRuntime!!!!
It is the latest 2.7 ncrunch version.

NCrunch: If you are experiencing problems in getting this project to build, have a look at http://www.ncrunch.net/documentation/troubleshooting_project-build-issues
TrialAopFSharpEntities.fsproj (0): Unhandled exception (3.1.33.0, 32 bit, CLR 4.5, Release): System.TypeInitializationException: The type initializer for 'TrialAopFSharp.AopReferenceAttribute' threw an exception. ---> System.IO.FileNotFoundException: Could not load file or assembly 'nCrunch.TestRuntime, Version=2.7.0.5, Culture=neutral, PublicKeyToken=01d101bf6f3e0aea' or one of its dependencies. The system cannot find the file specified.
at TrialAopFSharp.AopReferenceAttribute..cctor()
--- End of inner exception stack trace ---
at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor)
at System.Reflection.RuntimeConstructorInfo.Invoke(BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
at PostSharp.Sdk.CodeModel.CustomAttributeHelper.^A+T3Xap2(IAnnotationValue _0, ConstructorInfo _1, SerializedValueBindingOptions _2)
at PostSharp.Sdk.CodeModel.CustomAttributeHelper.ConstructRuntimeObject(IAnnotationValue attribute, SerializedValueBindingOptions options)
at PostSharp.Sdk.CodeModel.CustomAttributeHelper.ConstructRuntimeObject(IAnnotationValue attribute)
at PostSharp.Sdk.AspectWeaver.AspectWeaverTask.Execute()
at PostSharp.Sdk.Extensibility.Project.ExecutePhase(String phase)
at PostSharp.Sdk.Extensibility.Project.Execute()
at PostSharp.Hosting.PostSharpObject.ExecuteProjects()
at PostSharp.Hosting.PostSharpObject.InvokeProject(ProjectInvocation projectInvocation).


WARNING - Library1.fs (7): The type 'FsBaseEntity' implements 'System.IComparable' explicitly but provides no corresponding override for 'Object.Equals'. An implementation of 'Object.Equals' has been automatically provided, implemented via 'System.IComparable'. Consider implementing the override 'Object.Equals' explicitly


Any ideas how to configure the build properly?
nCrunch.TestRuntime.dll should normally be loaded into the GAC during the NCrunch installer.

If it isn't there, installing it manually using GacUtil should solve this problem. It's a DLL that is used fairly widely through NCrunch processing, so keeping it in the GAC is the best place.

Edited

Post a reply

Log in to reply.