dotnet / sdk

Core functionality needed to create .NET Core projects, that is shared between Visual Studio and CLI
https://dot.net/core
MIT License
2.75k stars 1.07k forks source link

The positioning of libraries is inconsistent on different operating systems #39783

Open Dynesshely opened 8 months ago

Dynesshely commented 8 months ago

Describe the bug

In this github action, I had 3 same missions runs on 3 platforms (windows-latest, ubuntu-latest, macos-latest).

In this action, I clone my repo, and clone libraries through a tool, regardless of whether it is executed locally or in the other two platforms of GitHub Action, the library is successfully cloned to the specified location, that is to say, the library exists.

But, on ubuntu-latest, the dotnet sdk can not find the library.

image

While on windows-latest and macos-latest, the dotnet sdk can find it.

To Reproduce

git clone https://github.com/Crequency/KitX.git --depth 1
cd KitX

# If you have no ssh key set, you can use this:
git config url.https://github.com/.insteadOf git@github.com:
# And you can unset this convert rule by:
git config --global --unset url.https://github.com/.insteadof

git submodule update --init
dotnet tool install --global Cheese
cheese ref --setup --convert-ssl-link-to-https-link --verbose
ls Reference/Csharpell/Csharpell.Core # You will find that the .csproj file needed exists
cd KitX\ Clients/KitX\ Dashboard/KitX\ Dashboard
dotnet build # Then you will find the file can not be found

Exceptions (if any)

Nope.

Further technical details

Runtime Environment: OS Name: ubuntu OS Version: 22.04 OS Platform: Linux RID: linux-x64 Base Path: /usr/share/dotnet/sdk/8.0.202/

.NET workloads installed: There are no installed workloads to display.

Host: Version: 8.0.3 Architecture: x64 Commit: 9f4b1f5d66

.NET SDKs installed: 8.0.202 [/usr/share/dotnet/sdk]

.NET runtimes installed: Microsoft.AspNetCore.App 8.0.3 [/usr/share/dotnet/shared/Microsoft.AspNetCore.App] Microsoft.NETCore.App 8.0.3 [/usr/share/dotnet/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



- The IDE (VS / VS Code/ VS4Mac) you're running on, and its version

The CLI :)
dotnet-issue-labeler[bot] commented 8 months ago

I couldn't figure out the best area label to add to this issue. If you have write-permissions please help me learn by adding exactly one area label.