Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build is treated as an unapproved verb #2004

Closed
Liimurr opened this issue May 26, 2024 · 2 comments
Closed

Build is treated as an unapproved verb #2004

Liimurr opened this issue May 26, 2024 · 2 comments

Comments

@Liimurr
Copy link

Liimurr commented May 26, 2024

Steps to reproduce

function Build-MyThing {
  Write-Host 'Building thing.'
}

Expected behavior

nothing

Actual behavior

warning: 'The cmdlet Build-MyThing uses unapproved verb'

Notes

Build is listed as an approved verb

@liamjpeters
Copy link
Contributor

Build has only been an approved verb since Sep-2017 and was added in PowerShell 6.0 (Jan-2018).

PowerShell/PowerShell#4725.

I can only reproduce the above in PowerShell 5.1 - which is expected behaviour as it was released Aug-2016.

PowerShell 5.1

image

PowerShell 7.4.2

image

@SydneyhSmith
Copy link
Collaborator

SydneyhSmith commented Jun 4, 2024

Thanks, looks like this is by design-- the verb list is retrieved at run time

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants