Hi,
I've run into similar problem with VSTO project as described here
http://forum.ncrunch.net...ject-build-failure.aspx
Working with VS2013, latest version of NCrunch.
There are two projects in my solution:
1) VSTO 4.0 Outlook plugin
2) NUnit test project, referencing the first one
When NCrunch is enabled with default settings, I get the following error for plugin project:
..\..\..\..\..\..\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v12.0\OfficeTools\Microsoft.VisualStudio.Tools.Office.targets (176, 9): The "FindRibbons" task failed unexpectedly.
System.IO.FileNotFoundException: Could not load file or assembly 'Gsync, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. The system cannot find the file specified. File name: 'Gsync, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null'
The test project seems to build fine, but gives various ambiguity warnings like:
WARNING - Data\OutlookContactRepositoryTests.cs (83, 31): Ambiguity between method 'Microsoft.Office.Interop.Outlook._ContactItem.Close(Microsoft.Office.Interop.Outlook.OlInspectorClose)' and non-method 'Microsoft.Office.Interop.Outlook.ItemEvents_10_Event.Close'. Using method group.
Afterwards I've set "copy referenced assemblies to the workspace" to true for the plugin project. The problem with not finding the file seems to be gone and the tests run. However the code covered by the tests in the main project is not marked by green/red dots - they are all black as if the lines were not covered at all. Any ideas how to resolve this?