I have a solution that I'm using OpenWrap v2 beta to integrate against. It builds fine in Visual Studio and `o build-wrap`. It follows this structure:
Quote:
/Foo.sln
/src
--/Foo.csproj
--/Foo.cs
/testing
--/Foo.Tests.csproj
--/FooFacts.cs
/wraps
--/_cache
----/DependencyLibrary
------/bin-net20
--------/DependencyLibrary.dll
--/openwrap
----/<all the openwrap stuff - msbuild targets, tasks, etc>
I have set AdditionalFilesToInclude to
Quote:
..\..\wraps\openwrap\**.*
..\..\wraps\_cache\**.*
(the forum has used pipes, but I used backslashes)
per the build-issues wiki page, but I still get an error when ncrunch attempts to build & run.
Quote:
........\AppData\Local\NCrunch\9296\18\wraps\openwrap\build\OpenWrap.CSharp.targets (41): The "InitializeOpenWrap" task failed unexpectedly.
System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.NullReferenceException: Object reference not set to an instance of an object.
at OpenWrap.Build.BuildInitializer.Initialize(String projectFile, String currentDirectory) in c:\src\openwrap\src\OpenWrap\Build\BuildInitializer.cs:line 23
--- End of inner exception stack trace ---
at System.RuntimeMethodHandle._InvokeMethodFast(IRuntimeMethodInfo method, Object target, Object[] arguments, SignatureStruct& sig, MethodAttributes methodAttributes, RuntimeType typeOwner)
at System.RuntimeMethodHandle.InvokeMethodFast(IRuntimeMethodInfo method, Object target, Object[] arguments, Signature sig, MethodAttributes methodAttributes, RuntimeType typeOwner)
at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture, Boolean skipVisibilityChecks)
at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
at System.Reflection.MethodBase.Invoke(Object obj, Object[] parameters)
at OpenWrap.Build.InitializeOpenWrap.Execute() in c:\src\openwrap\src\OpenWrap.Build.Bootstrap\InitializeOpenWrap.cs:line 41
at Microsoft.Build.BackEnd.TaskExecutionHost.Microsoft.Build.BackEnd.ITaskExecutionHost.Execute()
at Microsoft.Build.BackEnd.TaskBuilder.ExecuteInstantiatedTask(ITaskExecutionHost taskExecutionHost, TaskLoggingContext taskLoggingContext, TaskHost taskHost, ItemBucket bucket, TaskExecutionMode howToExecuteTask, Boolean& taskResult)
I was just wondering whether anyone else had solved this problem?
By the way, when fiddling with the project settings, I found:
* it was confusing that the property editor allowed me to expand the AdditionalFilesToInclude node-tree and edit each string, but not reflect that in the actual setting
* it was difficult to know whether ncrunch had saved my property change and re-tried the build - the only feedback I could see was the path that it tried at increment a number
* on right-click rebuild in the ncrunch tests window, I couldn't tell whether ncrunch had actually rebuilt (I have a _fast_ computer, and the library I'm trying to crunch is tiny) - perhaps a timestamp on the output window?