Hi all,
I am studying how to integrate powershell into visualbuild to automate the unit testing and just show the result. Now I am loading a dll in my script and i get an error:
Exception calling "LoadFile" with "1" argument(s): "The module was expected to contain an assembly manifest. (Exception from HRESULT: 0x80131018)"
At :line:14 char:43
+ $BBuilder = [Reflection.Assembly]::LoadFile <<<< ('C:ManagepointRMMPBriefBuilder.dll') | out-null
This is generated via this code:
$ep = get-executionpolicy
if ($ep -eq 'unrestricted') {
write-warning ": harness running in unresticted mode`n"
}
$address = "C:ManagepointRMMPBriefBuilder.dll"
write-host "Loading library RMMPBriefBuilder.dll `n"
$BBuilder = [Reflection.Assembly]::LoadFile('C:ManagepointRMMPBriefBuilder.dll') | out-null
Now i am wondering what could be wrong.
Thanks,
Jayjay
Exception calling LoadFile
Forum rules
Do not post any licensing information in this forum.
Any code longer than three lines should be added as code using the 'Select Code' dropdown menu or attached as a file.
Do not post any licensing information in this forum.
Any code longer than three lines should be added as code using the 'Select Code' dropdown menu or attached as a file.