Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics CRM forum
Suggested answer

Plugin Building causing a Power Shell Error

Posted on by Microsoft Employee

Hi Guys,

Plugin development is something which I have experience in, but this error which I am facing right now is kind of new for me, if any one has faced this before and got to rectify that, please let me know.

Severity

Code

Description

Project

File

Line

Suppression State

Error

 

The command "cmd /c If the build.ps1 script fails during the build process verify that you have executed "Set-ExecutionPolicy unrestricted" in both the 32 bit and 64 bit version of the powershell console.echo If the build.ps1 script fails during the build process verify that you have executed "Set-ExecutionPolicy unrestricted" in both the 32 bit and 64 bit version of the powershell console. >_POWERSHELLNOTENABLED.txtpowershell.exe -file "C:\Users\vpagac1\Downloads\Hsl.Wendys.Crm.Plugins\Hsl.Wendys.Crm.Plugins\Hsl.Wendys.Crm.Plugins\\Build\Build.ps1" -targetDir "C:\Users\vpagac1\Downloads\Hsl.Wendys.Crm.Plugins\Hsl.Wendys.Crm.Plugins\Hsl.Wendys.Crm.Plugins\bin\Debug\  " -targetFile Hsl.Wendys.Crm.Plugins.dll -targetName Hsl.Wendys.Crm.Plugins" exited with code 1.

Hsl.Wendys.Crm.Plugins

 

 

 

PowerShell-Policy-error.JPG

Thanks,

Vinod

  • Suggested answer
    a33ik Profile Picture
    a33ik 84,321 Most Valuable Professional on at
    RE: Plugin Building causing a Power Shell Error

    I don't know then. It works for me all the time. May be it is easier to get in touch with person who developed this plugins and ask help from him/her?

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Plugin Building causing a Power Shell Error

    Yes I did that in both regular and x86 PowerShell, and I just now tried opening VS in admin mode and built the plugin but still the error persists.

  • Suggested answer
    a33ik Profile Picture
    a33ik 84,321 Most Valuable Professional on at
    RE: Plugin Building causing a Power Shell Error

    Ok. Can you confirm you've done it in both regular and x86 PS?

    Also try to run VS in admin mode.

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Plugin Building causing a Power Shell Error

    Yea that was given in the error itself, sorry I forgot to mention I did try that on powershell was able to set the execution policy to unrestricted but still I'm facing the same error on VS, which was weird.

  • Suggested answer
    a33ik Profile Picture
    a33ik 84,321 Most Valuable Professional on at
    RE: Plugin Building causing a Power Shell Error

    Hello Vinod,

    What you need is to enable running powershell commands for your laptop. To do that open Windows Powershell in "Admin mode" and run following script - Set-ExecutionPolicy Unrestricted

    After question use "A" option.

    Do the same woth "Windows Powershell x86".

    Good luck.

Helpful resources

Quick Links

Dynamics 365 Community Update – Sep 16th

Welcome to the next edition of the Community Platform Update. This is a weekly…

Announcing Our 2024 Season 2 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 290,339 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 228,177 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,148

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans