Skip to content

The action is failing inside windows-2022 (windows-latest) runner #16

Open

Description

@MahmoudH96

When I tried to run code-analysis inside windows-2022 virtual environment, the action is failing with the following error message:

Error:      Error running roslynanalyzers job: 1 of 1
Error:      GuardianErrorExitCodeException: roslynanalyzers completed with an Error exit code: 17. 
Error:      Error running tool 1 of 1: roslynanalyzers
Error:      Error running roslynanalyzers job: 1 of 1
Error:      GuardianErrorExitCodeException: roslynanalyzers completed with an Error exit code: 17. 

Full workflow log:
error_log.zip

Activity

  1. TobiasLoeschVolue commented on Feb 25, 2022

    @TobiasLoeschVolue

    Same here, but you can use windows-2019 with no problem.

  2. romankarnaukh commented on Sep 21, 2022

    @romankarnaukh

    Is there any chance to figure out what's the reason for the issue? Failing on self-hosted

  3. AceCoderLaura commented on Oct 31, 2022

    @AceCoderLaura

    This is failing on a self-hosted runner for me as well.

  4. katrash commented on May 5, 2023

    @katrash

    I found that moving to VS2022 requires adding a few extra settings to the analyzers which are:

    • msBuildVersion: 17.0
    • msBuildArchitecture: x64 (for msbuild) or DotNet
    • setupCommandlinePicker: vs2022

    Here is an example:

    steps:
    - task: RoslynAnalyzers@3
      displayName: 'Guardian Dotnet Analyzers (formerly Roslyn Analyzers)'
      inputs:
        msBuildVersion: '17.0'
        msBuildArchitecture: 'x64'
        setupCommandlinePicker: 'vs2022'
        msBuildCommandline: 'MSBuild.exe $(Build.SourcesDirectory)/src/MySolution.sln ...'
    
    
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions