Skip to content

[NETE2ESDK][Mac][Linux][Regression] With .NET 10.0.100-rc.1.25409.103 Binaries, xunit project tested failed with error MSB6006 if DOTNET_ROOT was not set. #50331

@NicoleWang001

Description

@NicoleWang001

REGRESSION INFO
Worked well on .NET 10.0.100-rc.1.25409.103
Worked well on .NET 10 Preview 7

REPRO STEPS

  1. Clean machine: Mac or Linux distributions
  2. Extract the NET 10.0.100-rc.1.25409.103 binary to a custom directory. eg. tar -zxf ../dotnet-sdk-10.0.100-rc.1.25416.112-linux-x64.tar.gz -C ~/mytest
  3. Create a xunit project using dotnet from the binary. eg. ~/mytest/dotnet new xunit
  4. Running test using using dotnet from the binary. eg. ~/mytest/dotnet test
  5. Observe

Expected Behavior
Testing works fine.

Actual Behavior
xunit project tested failed with error MSB6006
Screens on Ubuntu 24.04
Image

Screens on Mac

Image

Note

  1. This issue only reproduced with xunit project. It is not reproduced with mstest or nunit project
  2. This issue is not reproduced with zip installer on Windows
  3. This issue is not reproduced after setting DOTNET_ROOT
    donet --info
    nicole@Ubuntu2404:~$ ~/mytest/dotnet --info
    .NET SDK:
    Version: 10.0.100-rc.1.25416.112
    Commit: 8c49b05924
    Workload version: 10.0.100-manifests.f436f675
    MSBuild version: 17.15.0-preview-25416-112+8c49b0592

Runtime Environment:
OS Name: ubuntu
OS Version: 24.04
OS Platform: Linux
RID: linux-x64
Base Path: /home/nicole/mytest/sdk/10.0.100-rc.1.25416.112/

.NET workloads installed:
There are no installed workloads to display.
Configured to use workload sets when installing new manifests.
No workload sets are installed. Run "dotnet workload restore" to install a workload set.

Host:
Version: 10.0.0-rc.1.25416.112
Architecture: x64
Commit: 8c49b05924

.NET SDKs installed:
10.0.100-rc.1.25416.112 [/home/nicole/mytest/sdk]

.NET runtimes installed:
Microsoft.AspNetCore.App 10.0.0-rc.1.25416.112 [/home/nicole/mytest/shared/Microsoft.AspNetCore.App]
Microsoft.NETCore.App 10.0.0-rc.1.25416.112 [/home/nicole/mytest/shared/Microsoft.NETCore.App]

Other architectures found:
None

Environment variables:
Not set

global.json file:
Not found

Learn more:
https://aka.ms/dotnet/info

Download .NET:
https://aka.ms/dotnet/download

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions