We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
DotNetCoreCLI
2.247.3
The following YAML task:
- task: DotNetCoreCLI@2 inputs: command: test projects: '$(RepoRoot)\src\**\*.Tests.*.csproj' arguments: '--no-restore --no-build --configuration ${{ parameters.configuration }} --settings "$(RepoRoot)\.runsettings" --filter TestCategory!=Integration --blame --collect:"XPlat Code Coverage" --logger trx --results-directory "$(Agent.TempDirectory)\TestResults\"' publishTestResults: true // <-- !
Fails with the following error:
##[error]Error: The process 'C:\__t\dotnet\dotnet.exe' failed with exit code 1 C:\__t\dotnet\dotnet.exe test C:\__w\1\s\src\MyProject.Tests.Unit.csproj --logger trx --results-directory C:\__w\_temp --no-restore --no-build --configuration Release --settings C:\__w\1\s\.runsettings --filter TestCategory!=Integration --blame "--collect:XPlat Code Coverage" --logger trx --results-directory "C:\__w\_temp\TestResults\"" Option '--results-directory' expects a single argument but 2 were provided.
Because the parameter --results-directory was passed twice:
--results-directory
--results-directory "C:\__w\_temp\TestResults\
--results-directory C:\__w\_temp
Can it be smarter and not do it if it was already passed?
dev.azure.com (formerly visualstudio.com)
N/A
Windows
Full debug logs.txt.zip
The text was updated successfully, but these errors were encountered:
No branches or pull requests
New issue checklist
Task name
DotNetCoreCLI
Task version
2.247.3
Issue Description
The following YAML task:
Fails with the following error:
Because the parameter
--results-directory
was passed twice:--results-directory "C:\__w\_temp\TestResults\
--results-directory C:\__w\_temp
Can it be smarter and not do it if it was already passed?
Environment type (Please select at least one enviroment where you face this issue)
Azure DevOps Server type
dev.azure.com (formerly visualstudio.com)
Azure DevOps Server Version (if applicable)
N/A
Operation system
Windows
Full task logs with system.debug enabled
Full debug logs.txt.zip
The text was updated successfully, but these errors were encountered: