Salut,
en testant avec le parameter -DescriptionAsLabel j'ai cette erreur :
Line | 1320 | $plop = [scriptblock]::Create($s).invoke() | ^ Exception calling "Create" with "1" argument(s): "At line:2 char:106 + … attributes @{Label='If ( | $MyInvocation.ScriptName -notLike '*Invoke-B … + | ~ You must provide a value expression following the '*' operator. At line:2 char:106 + … If ( | $MyInvocation.ScriptName -notLike '*Invoke-Build.ps1' )';shape=' … + | ~~~~~~~~~~~~~~~~~~~~ Unexpected token 'Invoke-Build.ps1' )'' in expression or statement. At line:2 char:58 + | ;node 0881e777-387f-4437-8cfc-a4fbe75d4285 -attributes @{Label='If ( … + | ~ Missing closing '}' in statement block or type definition. At line:2 char:142 + … n.ScriptName -notLike | '*Invoke-Build.ps1' )';shape='diamond'};node En … + | ~ Unexpected token '}' in expression or statement. At line:3 char:674 + … $RequiredModulesDirectory -in | @('CurrentUser', 'AllUsers') )';shape=' … + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | Unexpected token 'CurrentUser', 'AllUsers') )'' in expression or statement. At line:3 char:619 + … =''};node | e4530674-0868-4ee4-b9c0-20a0220a0a12 -attributes @{Label='E … + | ~ Missing closing '}' in statement block or type definition. At line:3 char:711 + … odulesDirectory -in | @('CurrentUser', 'AllUsers') )';shape=''};Edge -f … + | ~ Unexpected token '}' in expression or statement. At line:3 char:3500 + … ( $RequiredModulesDirectory -notIn | @('CurrentUser', 'AllUsers') -and + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | Unexpected token 'CurrentUser', 'AllUsers') -and (($Env:PSModulePath -split | [io.path]::PathSeparator) -notContains $RequiredModulesDirectory) )'' in expression or statement. At line:3 | char:3452 + … e15;;node 857d0a6c-6b76-4879-83a2-6d2ac31e8e15 -attributes @{Label='I … + | ~ Missing closing '}' in statement block or type definition. At line:4 char:124 + … ) -notContains | $RequiredModulesDirectory) )';shape='diamond'};node En … + | ~ Unexpected token '}' in expression or statement. Not all parse errors were reported. Correct the reported | errors and try again."
j'ai fais le test sur un fichier build.ps1 de @gaelcolas => Lien
Salut,
en testant avec le parameter -DescriptionAsLabel j'ai cette erreur :
Line | 1320 | $plop = [scriptblock]::Create($s).invoke() | ^ Exception calling "Create" with "1" argument(s): "At line:2 char:106 + … attributes @{Label='If ( | $MyInvocation.ScriptName -notLike '*Invoke-B … + | ~ You must provide a value expression following the '*' operator. At line:2 char:106 + … If ( | $MyInvocation.ScriptName -notLike '*Invoke-Build.ps1' )';shape=' … + | ~~~~~~~~~~~~~~~~~~~~ Unexpected token 'Invoke-Build.ps1' )'' in expression or statement. At line:2 char:58 + | ;node 0881e777-387f-4437-8cfc-a4fbe75d4285 -attributes @{Label='If ( … + | ~ Missing closing '}' in statement block or type definition. At line:2 char:142 + … n.ScriptName -notLike | '*Invoke-Build.ps1' )';shape='diamond'};node En … + | ~ Unexpected token '}' in expression or statement. At line:3 char:674 + … $RequiredModulesDirectory -in | @('CurrentUser', 'AllUsers') )';shape=' … + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | Unexpected token 'CurrentUser', 'AllUsers') )'' in expression or statement. At line:3 char:619 + … =''};node | e4530674-0868-4ee4-b9c0-20a0220a0a12 -attributes @{Label='E … + | ~ Missing closing '}' in statement block or type definition. At line:3 char:711 + … odulesDirectory -in | @('CurrentUser', 'AllUsers') )';shape=''};Edge -f … + | ~ Unexpected token '}' in expression or statement. At line:3 char:3500 + … ( $RequiredModulesDirectory -notIn | @('CurrentUser', 'AllUsers') -and + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | Unexpected token 'CurrentUser', 'AllUsers') -and (($Env:PSModulePath -split | [io.path]::PathSeparator) -notContains $RequiredModulesDirectory) )'' in expression or statement. At line:3 | char:3452 + … e15;;node 857d0a6c-6b76-4879-83a2-6d2ac31e8e15 -attributes @{Label='I … + | ~ Missing closing '}' in statement block or type definition. At line:4 char:124 + … ) -notContains | $RequiredModulesDirectory) )';shape='diamond'};node En … + | ~ Unexpected token '}' in expression or statement. Not all parse errors were reported. Correct the reported | errors and try again."j'ai fais le test sur un fichier build.ps1 de @gaelcolas => Lien