You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a installation of TFS2015 Update 3 on premise.
I have a agent installed on another machine in version 1.95.3.
I write a simple powershell task that work. I need to improve it.
If in the powershell script I add the line Import-Module "Microsoft.TeamFoundation.DistributedTask.Task.Internal"
then my build fails with the message : The specified module 'Microsoft.TeamFoundation.DistributedTask.Task.Internal' was not loaded because no valid module file was found in any module directory.
In my task I embed the SDK in the sub directory ps_modules\VstsTaskSdk.
I do not understand why it fails. Some standard tasks have this instruction and they work correctly.
The text was updated successfully, but these errors were encountered:
It seems that with Powershell3 execution, the import of module Microsoft.TeamFoundation.DistributedTask.Task.Internal is not necessary.
Can anyone confirm ?
Confirmed. That DLL is for the closed source legacy PowerShell task SDK. The PowerShell3 lib in this repo is the recommended path forward.
I'm working on changes now for better documentation, samples, and a better getting started experience. I'm planning to add a section for "Coming from the legacy PowerShell execution handler".
I have a installation of TFS2015 Update 3 on premise.
I have a agent installed on another machine in version 1.95.3.
I write a simple powershell task that work. I need to improve it.
If in the powershell script I add the line
Import-Module "Microsoft.TeamFoundation.DistributedTask.Task.Internal"
then my build fails with the message :
The specified module 'Microsoft.TeamFoundation.DistributedTask.Task.Internal' was not loaded because no valid module file was found in any module directory.
In my task I embed the SDK in the sub directory ps_modules\VstsTaskSdk.
I do not understand why it fails. Some standard tasks have this instruction and they work correctly.
The text was updated successfully, but these errors were encountered: