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

[Question]: How to make DotNetCoreCLI@2 fail if Project file(s) not found? #20852

Open
1 of 4 tasks
realrubberduckdev opened this issue Feb 13, 2025 · 0 comments
Open
1 of 4 tasks
Labels
Area: ABTT Akvelon Build Tasks Team area of work help wanted triage

Comments

@realrubberduckdev
Copy link

realrubberduckdev commented Feb 13, 2025

Task name

DotNetCoreCLI

Task version

2

Environment type (Please select at least one enviroment where you face this issue)

  • Self-Hosted
  • Microsoft Hosted
  • VMSS Pool
  • Container

Azure DevOps Server type

dev.azure.com (formerly visualstudio.com)

Azure DevOps Server Version (if applicable)

No response

Operation system

Windows Server

Question

If we get the project pattern wrong when using the DotNetCoreCLI@2 task, the task just throws a warning message.

##[warning]Project file(s) matching the specified pattern were not found.
  • Is there a way to fail the task if no projects are found?
  • Or fail if no tests are found, as suggested in this StackOverflow post?
    The suggested BuildQualityChecks task checking for warning messages is not a good idea as other steps throwing warnings will cause it to fail, thereby adding more to maintenance work.
  • If no, is there a general pattern we should adopt to avoid misconfigured false positive feedback from pipelines?
@v-schhabra v-schhabra added Area: ABTT Akvelon Build Tasks Team area of work and removed Area: Release labels Feb 13, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area: ABTT Akvelon Build Tasks Team area of work help wanted triage
Projects
None yet
Development

No branches or pull requests

2 participants