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

Notification

Icon
Error

Ncrunch and PostSharp
liviuu
#1 Posted : Thursday, April 24, 2014 5:53:01 PM(UTC)
Rank: Member

Groups: Registered
Joined: 9/6/2011(UTC)
Posts: 11
Location: liviuu

Was thanked: 1 time(s) in 1 post(s)

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/d...ng_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?
Remco
#2 Posted : Thursday, April 24, 2014 11:17:19 PM(UTC)
Rank: NCrunch Developer

Groups: Administrators
Joined: 4/16/2011(UTC)
Posts: 6,978

Thanks: 931 times
Was thanked: 1257 time(s) in 1170 post(s)
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.
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.033 seconds.
Trial NCrunch
Take NCrunch for a spin
Do your fingers a favour and supercharge your testing workflow
Free Download