I doesn't know if this is related or not.
But I refactored my solution so that 'Copy reference assemblies to workspace' is not needed anymore. Most of my tests are working now, but some are still failing with following exception:
System.TypeInitializationException: The type initializer for '' threw an exception.
at ..ctor(Presentation )
at ..ctor(TextFrame )
at Aspose.Slides.TextFrame..ctor( )
at Aspose.Slides.AutoShape.()
at .(Presentation )
at .(Presentation )
at Aspose.Slides.Presentation..ctor(LoadOptions loadOptions)
at Aspose.Slides.Presentation..ctor()
...
at System.RuntimeType.CreateInstanceDefaultCtor(Boolean publicOnly, Boolean wrapExceptions)
System.DllNotFoundException: Unable to load DLL 'aspose.slides.drawing.capi_vc14x64' or one of its dependencies: The specified module could not be found. (0x8007007E)
at System.Runtime.InteropServices.NativeLibrary.LoadLibraryByName(String libraryName, Assembly assembly, Nullable`1 searchPath, Boolean throwOnError)
at .(String , Assembly , Nullable`1 )
at System.Runtime.InteropServices.NativeLibrary.LoadLibraryCallbackStub(String libraryName, Assembly assembly, Boolean hasDllImportSearchPathFlags, UInt32 dllImportSearchPathFlags)
at .d(Int32 d, Int32 v, Int32 c, IntPtr& t)
at System.Drawing.Bitmap..ctor(Int32 width, Int32 height, PixelFormat format)
at System.Drawing.Bitmap..ctor(Int32 width, Int32 height)
at ..cctor()
All those tests are running without any problems with Visual Studio Test Explorer. So it seems related to NCrunch.
I tried to reproduce this in a small project, but here it is working fine :(
https://github.com/IT-CA...TestLibrary1.csproj#L10
For the test project Aspose.Slides is a transitive reference by project 'LibTest1'