I have a solution of 7 projects. I have also an external DLL that I can add through Visual Studio :
It works fine with Visual Studio. I tried to simulate the same action using command line and namely Powershell:
Add-Type -Path "D:\ExternalDlls\Scorm.dll"
I got this error :
Add-Type : Could not load file or assembly 'file:///D:\ExternalDlls\Scorm.dll' or one of its de This assembly is built by a runtime newer than the currently loaded runtime and cannot be loaded. At line:1 char:9 + Add-Type <<<< -Path "D:\ExternalDlls\Scorm.dll" + CategoryInfo : NotSpecified: (:) [Add-Type], BadImageFormatException + FullyQualifiedErrorId : System.BadImageFormatException,Microsoft.PowerShell.Commands.AddTypeCommand�
My environment is :
- Visual Studio 2015 (it makes things done but I need the CLI )
- Windows 7 - Service Pack1
- Powershell