renevanosnabrugge / vsts-promotepackage-task

Promote a package in VSTS to a Release View
MIT License
21 stars 25 forks source link

Do not set $IsWindows #50

Open alex737876 opened 4 years ago

alex737876 commented 4 years ago

Since PS 6.0 it is not allowed to set $IsWindows.

alex737876 commented 4 years ago

solves #49 (How to link an issue? i am new to git :) excuse me )

Since ($null -or $Env:OS.StartsWith('Windows')) will also return true with PS Version < 6.0, this should work. Tested on my system.

Should consider a squash merge, as i had to remove some blanks with a 2nd commit