Skip to content
This repository was archived by the owner on Aug 16, 2022. It is now read-only.
This repository was archived by the owner on Aug 16, 2022. It is now read-only.

[BUG] [xModuleAnalyzer-NET] The ampersand (&) character is not allowed in version 2.186.0 #3

@samq-ws

Description

@samq-ws

Bug Description
It appears that 2>&1 on line 225 is breaking the PowerShell script in a windows-latest environment in Azure DevOps.

Steps to Reproduce
Steps to reproduce the behavior:

  1. Scan any multi-project Dotnet application using the following script

** To Fix **
Remove 2>&1 on line 225

Expected Behavior
The scan should complete with results.

Environment Details

  • OS: window-latest
  • Azure DevOps
  • Tool Version: 0.0.1

Additional Context
Errors Details below

2021-06-05T03:22:06.4191836Z ##[section]Starting: PowerShell
2021-06-05T03:22:06.4340873Z ==============================================================================
2021-06-05T03:22:06.4341212Z Task : PowerShell
2021-06-05T03:22:06.4341490Z Description : Run a PowerShell script on Linux, macOS, or Windows
2021-06-05T03:22:06.4341768Z Version : 2.186.0
2021-06-05T03:22:06.4341998Z Author : Microsoft Corporation
2021-06-05T03:22:06.4342345Z Help : https://docs.microsoft.com/azure/devops/pipelines/tasks/utility/powershell
2021-06-05T03:22:06.4342873Z ==============================================================================
2021-06-05T03:22:07.5108998Z Generating script.
2021-06-05T03:22:07.5172255Z Formatted command: . 'D:\a\1\s\xModuleAnalyzer-NET.ps1' -d ./src -c ./eua.config -productName AZDO_NET-Demo
2021-06-05T03:22:07.5676607Z ========================== Starting Command Output ===========================
2021-06-05T03:22:07.5972443Z ##[command]"C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe" -NoLogo -NoProfile -NonInteractive -ExecutionPolicy Unrestricted -Command ". 'D:\a_temp\35506bc1-2323-40fb-9373-5e1746a4513d.ps1'"
2021-06-05T03:22:08.2573258Z At D:\a\1\s\xModuleAnalyzer-NET.ps1:190 char:23
2021-06-05T03:22:08.2574263Z + Sign up
2021-06-05T03:22:08.2574680Z + ~
2021-06-05T03:22:08.2575574Z The ampersand (&) character is not allowed. The & operator is reserved for future use; wrap an ampersand in double
2021-06-05T03:22:08.2577105Z quotation marks ("&") to pass it as part of a string.
2021-06-05T03:22:08.2578183Z At D:\a\1\s\xModuleAnalyzer-NET.ps1:218 char:189
2021-06-05T03:22:08.2578659Z + ... ata-ga-click="(Logged out) Header, go to Features">Features <span cla ...
2021-06-05T03:22:08.2579679Z + ~
2021-06-05T03:22:08.2580122Z The '<' operator is reserved for future use.
2021-06-05T03:22:08.2580833Z At D:\a\1\s\xModuleAnalyzer-NET.ps1:218 char:269
2021-06-05T03:22:08.2581334Z + ... nk-symbol float-right text-normal color-text-tertiary pr-3">→</s ...
2021-06-05T03:22:08.2582168Z + ~
2021-06-05T03:22:08.2582730Z The ampersand (&) character is not allowed. The & operator is reserved for future use; wrap an ampersand in double
2021-06-05T03:22:08.2583756Z quotation marks ("&") to pass it as part of a string.
2021-06-05T03:22:08.2585018Z At D:\a\1\s\xModuleAnalyzer-NET.ps1:220 char:165
2021-06-05T03:22:08.2585499Z + ... ck Link--secondary no-underline f5 Bump-link--hover">Mobile <span cla ...
2021-06-05T03:22:08.2586459Z + ~
2021-06-05T03:22:08.2586887Z The '<' operator is reserved for future use.
2021-06-05T03:22:08.2587708Z At D:\a\1\s\xModuleAnalyzer-NET.ps1:220 char:245
2021-06-05T03:22:08.2588844Z + ... nk-symbol float-right text-normal color-text-tertiary pr-3">→</s ...
2021-06-05T03:22:08.2589774Z + ~
2021-06-05T03:22:08.2590353Z The ampersand (&) character is not allowed. The & operator is reserved for future use; wrap an ampersand in double
2021-06-05T03:22:08.2591683Z quotation marks ("&") to pass it as part of a string.
2021-06-05T03:22:08.2592498Z At D:\a\1\s\xModuleAnalyzer-NET.ps1:221 char:176
2021-06-05T03:22:08.2593358Z + ... k Link--secondary no-underline f5 Bump-link--hover">Actions <span cla ...
2021-06-05T03:22:08.2594046Z + ~
2021-06-05T03:22:08.2595280Z The '<' operator is reserved for future use.
2021-06-05T03:22:08.2595970Z At D:\a\1\s\xModuleAnalyzer-NET.ps1:221 char:256
2021-06-05T03:22:08.2596907Z + ... nk-symbol float-right text-normal color-text-tertiary pr-3">→</s ...
2021-06-05T03:22:08.2597783Z + ~
2021-06-05T03:22:08.2598527Z The ampersand (&) character is not allowed. The & operator is reserved for future use; wrap an ampersand in double
2021-06-05T03:22:08.2601728Z quotation marks ("&") to pass it as part of a string.
2021-06-05T03:22:08.2602627Z At D:\a\1\s\xModuleAnalyzer-NET.ps1:222 char:182
2021-06-05T03:22:08.2603677Z + ... ink--secondary no-underline f5 Bump-link--hover">Codespaces <span cla ...
2021-06-05T03:22:08.2604336Z + ~
2021-06-05T03:22:08.2605132Z The '<' operator is reserved for future use.
2021-06-05T03:22:08.2605714Z At D:\a\1\s\xModuleAnalyzer-NET.ps1:222 char:262
2021-06-05T03:22:08.2606515Z + ... nk-symbol float-right text-normal color-text-tertiary pr-3">→</s ...
2021-06-05T03:22:08.2607159Z + ~
2021-06-05T03:22:08.2608126Z The ampersand (&) character is not allowed. The & operator is reserved for future use; wrap an ampersand in double
2021-06-05T03:22:08.2608805Z quotation marks ("&") to pass it as part of a string.
2021-06-05T03:22:08.2609435Z At D:\a\1\s\xModuleAnalyzer-NET.ps1:223 char:178
2021-06-05T03:22:08.2610066Z + ... Link--secondary no-underline f5 Bump-link--hover">Packages <span cla ...
2021-06-05T03:22:08.2610957Z + ~
2021-06-05T03:22:08.2612567Z The '<' operator is reserved for future use.
2021-06-05T03:22:08.2613298Z Not all parse errors were reported. Correct the reported errors and try again.
2021-06-05T03:22:08.2614202Z + CategoryInfo : ParserError: (:) [], ParentContainsErrorRecordException
2021-06-05T03:22:08.2615196Z + FullyQualifiedErrorId : AmpersandNotAllowed
2021-06-05T03:22:08.2615741Z
2021-06-05T03:22:08.3474146Z ##[error]PowerShell exited with code '1'.
2021-06-05T03:22:08.3912482Z ##[section]Finishing: PowerShell

Metadata

Metadata

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions