-
Notifications
You must be signed in to change notification settings - Fork 1.1k
dotnet test does no longer accept a project path after updating to NET 7.0.101 #29543
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Comments
Probably introduced with this pr: #27961 This is blocking all of my CI runs |
Seems to be the same moving from .net SDK 6.0.403 to .net 6.0.404 |
Azure DevOps Pipelines stopped working for me aswell. |
Same here with teamcity! here my log from a build:
|
Same here |
Thanks for reporting it, we're investigating. |
Can you tell me if the same is happening for non localized version(en-us one)? |
@campersau can you enable verbose logging and retry the command? C:\>set DOTNET_CLI_VSTEST_TRACE=1
C:\>dotnet test...
...
[dotnet test - 12/14/2022 4:17:29 PM]Logging to console
[dotnet test - 12/14/2022 4:17:29 PM +00:00]Argument list: 'C:\...'
[dotnet test - 12/14/2022 4:17:29 PM +00:00]MSBuild args from forwarded options: C:\... You should see some verbose output |
@MarcoRossignoli here is the german output with
When changing the Windows display language to
|
Thanks I can confirm also on mine, something is wrong with the default parsing of arguments in non en-us @vlada-shubina do you know who owns the parsing? |
@marcpopMSFT @baronfel what you think? |
If it's failing in parsing, that would likely be a System.CommandLine issue. You could file an issue here: https://github.com/dotnet/command-line-api but @baronfel @adamsitnik may be able to help. |
@marcpopMSFT yep! I'll be digging in more shortly to help direct. |
Setting the environment variable |
Copying the latest PR update here:
|
So these means we need to tweak our build process to get the security fixes in (which were released with 7.0.101) otherwise our apps are vulnerable till at least February? |
@stefannikolei unfortunately yes, that's correct. It's very unfortunate that this problem was surfaced at this specific time - we usually have a much larger change window before lockdown/stabilization/testing phases. |
We've encountered this error today after updating our build agents. While waiting for the servicing release, we'll try to make do with the workaround. Thanks for the fast response! On the other hand, something similar happened in the previous release that also broke our CI setup. (microsoft/vstest#4014) It's making us wary of updating to newer releases of the .NET SDK. 😢 Would it be posible to provide something akin to hotfix releases when these kind of errors occur? |
Seems a new version of .net 7 has been released (7.0.2). I will test it on Friday on one or two CI agents on our infrastructure, but I would like to know about other experiences here. Who has the opportunity to test it? |
Sorry misread, @baronfel do you have info about it? |
@meriturva just tested it, does not work |
Per @baronfel's comment above, this fix is expected to be released in 7.0.103 in February |
Describe the bug
After updating NET 7.0.100 to NET 7.0.101
dotnet test
does no longer accept a project path as an argument.To Reproduce
Sample test project:
With NET 7.0.101 this does not work
With NET 7.0.100 this worked
This also affects the built in dotnet command in Azure Dev Ops.

Workarounds
Set the environment variable
DOTNET_CLI_UI_LANGUAGE=en-US
.Running
donet test
directly in the project directory does work:donet test
referencing a DLL or exe does work:Further technical details
The text was updated successfully, but these errors were encountered: