NuGet / Home

Repo for NuGet Client issues
Other
1.5k stars 252 forks source link

[Bug]: NuGet.Client Repo Build: Test Case Runs Fail During Build Because of Missing Microsoft.NETCore.App Version 3.1.0 #11896

Open 7enderhead opened 2 years ago

7enderhead commented 2 years ago

NuGet Product Used

Other/NA

Product Version

source branches "dev" and "release-6.2.x"

Worked before?

don't know

Impact

It's more difficult to complete my work

Repro Steps & Context

Verbose Logs

lsb_release -a
No LSB modules are available.
Distributor ID: Linuxmint
Description:    Linux Mint 20.3
Release:    20.3
Codename:   una

uname -a
Linux [...] 5.4.0-104-generic #118-Ubuntu SMP Wed Mar 2 19:02:41 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux

dotnet --info
.NET SDK (reflecting any global.json):
 Version:   6.0.101
 Commit:    ef49f6213a

Runtime Environment:
 OS Name:     linuxmint
 OS Version:  20.3
 OS Platform: Linux
 RID:         linux-x64
 Base Path:   /usr/share/dotnet/sdk/6.0.101/

Host (useful for support):
  Version: 6.0.1
  Commit:  3a25a7f1cc

.NET SDKs installed:
  2.1.818 [/usr/share/dotnet/sdk]
  3.1.100 [/usr/share/dotnet/sdk]
  5.0.404 [/usr/share/dotnet/sdk]
  6.0.101 [/usr/share/dotnet/sdk]

.NET runtimes installed:
  Microsoft.AspNetCore.All 2.1.30 [/usr/share/dotnet/shared/Microsoft.AspNetCore.All]
  Microsoft.AspNetCore.App 2.1.30 [/usr/share/dotnet/shared/Microsoft.AspNetCore.App]
  Microsoft.AspNetCore.App 3.1.0 [/usr/share/dotnet/shared/Microsoft.AspNetCore.App]
  Microsoft.AspNetCore.App 5.0.13 [/usr/share/dotnet/shared/Microsoft.AspNetCore.App]
  Microsoft.AspNetCore.App 6.0.1 [/usr/share/dotnet/shared/Microsoft.AspNetCore.App]
  Microsoft.NETCore.App 2.1.30 [/usr/share/dotnet/shared/Microsoft.NETCore.App]
  Microsoft.NETCore.App 3.1.0 [/usr/share/dotnet/shared/Microsoft.NETCore.App]
  Microsoft.NETCore.App 5.0.13 [/usr/share/dotnet/shared/Microsoft.NETCore.App]
  Microsoft.NETCore.App 6.0.1 [/usr/share/dotnet/shared/Microsoft.NETCore.App]
erdembayar commented 2 years ago

Did you run configure.ps1 before doing the build? Here is our guide on how to build the code. Also, you need to install VS for installing msbuilld.

7enderhead commented 2 years ago

As can be seen in the info I provided, I am on Linux, therefore I neither installed Visual Studio nor ran the cmd or ps1 files you mentioned.

erdembayar commented 2 years ago

As can be seen in the info I provided, I am on Linux, therefore I neither installed Visual Studio nor ran the cmd or ps1 files you mentioned.

Unfortunately, you can't build everything in MAC/Linux, for example most likely not possible build nuget.exe on Linux/MAC without extraordinary effort. Sure, our build guide needs update.

Could you be able to tell me what you're trying to achieve here? Do you need to just build code on Linux/MAC or run dotnet tests on MAC/Linux?

7enderhead commented 2 years ago

I am patching a fork of NuGet to better understand its workings. I get along without unit tests, but most of the build process being triggered by build.sh works just fine, so I thought I would report this issues (since it actually seems to be just some problem of copying stuff somewhere).