I'm trying to borrow from your working code in your azure-pipelines.yml but when I used this:
# Run tests and create coverage report
- task: DotNetCoreCLI@2
displayName: Test
inputs:
command: test
projects: '$(Parameters.TestProjects)'
projects: '**/*[Tt]ests/*.csproj'
I got no test projects matching the pattern.
When I use this, it finds my test project(s):
# Run tests and create coverage report
- task: DotNetCoreCLI@2
displayName: Test
inputs:
command: test
projects: '**/*[Tt]ests/*.csproj'
Is $(Parameters.TestProjects) something you're setting outside of the pipeline file, I assume, perhaps as a build agent environment variable? Thanks
The parameter is configured in the "Pipeline variables":

I don't know why I did that...
I will change that and move it to the YAML file, since this is basically a static value.
Most helpful comment
The parameter is configured in the "Pipeline variables":

I don't know why I did that...
I will change that and move it to the YAML file, since this is basically a static value.