Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics CRM (Archived)

Plugin Building causing a Power Shell Error

(0) ShareShare
ReportReport
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

*This post is locked for comments

  • Suggested answer
    a33ik Profile Picture
    a33ik 84,325 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,325 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,325 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.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Congratulations 2024 Spotlight Honorees

Kudos to all of our 2024 community stars! 🎉

Meet the Top 10 leaders for December

Congratulations to our December super stars! 🥳

Start Your Super User Journey Pt 2

Join the ranks of our community heros! 🦹

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,904 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,605 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans