I very often get this error when running NCrunch:
Quote:
Exception occurred while testing (unknown migration)
System.DllNotFoundException: Unable to load DLL 'Microsoft.Data.SqlClient.SNI.x86.dll': The specified module could not be found. (Exception from HRESULT: 0x8007007E)
at Microsoft.Data.SqlClient.SNINativeManagedWrapperX86.UnmanagedIsTokenRestricted(IntPtr token, Boolean& isRestricted)
at Microsoft.Data.SqlClient.SNINativeMethodWrapper.UnmanagedIsTokenRestricted(IntPtr token, Boolean& isRestricted)
at Microsoft.Data.Win32NativeMethods.IsTokenRestrictedWrapper(IntPtr token)
The easiest fix is to add
Code:
<CopyReferencedAssembliesToWorkspace>True</CopyReferencedAssembliesToWorkspace>
However, now I get a bunch of warnings
Quote:
The 'Copy Referenced Assemblies To Workspace' configuration setting for this component has been switched on.
Is there a way to either make it copy the dll without enabling CopyReferencedAssembliesToWorkspace,
or to suppress the "Copy Referenced Assemblies To Workspace" globally, so I don't have to do it for each project.