-
Notifications
You must be signed in to change notification settings - Fork 265
Closed
NuGet/NuGet.Client
#3623Labels
CommunityPRs (and linked Issues) created by someone not in the NuGet teamPRs (and linked Issues) created by someone not in the NuGet teamPriority:2Issues for the current backlog.Issues for the current backlog.Type:BugType:Engineeringproduct/infrastructure work/not a customer bug/feature/DCRproduct/infrastructure work/not a customer bug/feature/DCR
Milestone
Description
Details about the Problem
Repository: NuGet.Client
When building locally, the common.ps1 script will fail when it encounters a response file like Directory.Buil.rsp within or above the repo folder. The reason is that the script gets the .NET SDK version through MSBuild text output but when the response file is detected, MSBuild spews out a header text for the response file and that messes up with the logic for getting the .NET SDK version.
Detailed repro steps
-
Go to your local NuGet.Client repo
-
Clean your local repo with
git clean -Xdf -
Add a
Directory.Buil.rspfile within or above the repo folder -
Run configure.ps1 and see that'll fail.
Other suggested things
Verbose Logs
PS E:\Projects\Microsoft.NET\nuget-client> .\configure.ps1
[16:20:08 +0] Configuring NuGet.Client build environment
[16:20:08 +0] [BEGIN] Configuring git repo
[16:20:08 +0] [DONE +00:00:00] Configuring git repo
[16:20:08 +0] [BEGIN] Installing .NET CLI
[16:20:09 +1] Downloading .NET CLI
[16:20:09 +0] The version of SDK should be installed is : command
[16:20:09 +0] Probing folder : E:\Projects\Microsoft.NET\nuget-client\cli\sdk\command
dotnet-install: Downloading link: https://dotnetcli.azureedge.net/dotnet/Sdk/command/dotnet-sdk-command-win-x64.zip
dotnet-install: Cannot download: https://dotnetcli.azureedge.net/dotnet/Sdk/command/dotnet-sdk-command-win-x64.zip
dotnet-install: Downloading legacy link: https://dotnetcli.azureedge.net/dotnet/Sdk/command/dotnet-dev-win-x64.command.zip
dotnet-install: Cannot download: https://dotnetcli.azureedge.net/dotnet/Sdk/command/dotnet-dev-win-x64.command.zip
Error-Log : [16:20:16 +7] [FAILED +00:00:08] Installing .NET CLI
At E:\Projects\Microsoft.NET\nuget-client\build\common.ps1:122 char:17
+ ... Error-Log "[FAILED +$(Format-ElapsedTime $sw.Elapsed)] $B ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [Write-Error], WriteErrorException
+ FullyQualifiedErrorId : Microsoft.PowerShell.Commands.WriteErrorException,Error-Log
Could not find/download: ".NET Core SDK" with version = command
Refer to: https://aka.ms/dotnet-os-lifecycle for information on .NET Core support
At E:\Projects\Microsoft.NET\nuget-client\cli\dotnet-install.ps1:660 char:5
+ throw "Could not find/download: `"$assetName`" with version = $Sp ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : OperationStopped: (Could not find/...ET Core support:String) [], RuntimeException
+ FullyQualifiedErrorId : Could not find/download: ".NET Core SDK" with version = command
Refer to: https://aka.ms/dotnet-os-lifecycle for information on .NET Core supportMetadata
Metadata
Assignees
Labels
CommunityPRs (and linked Issues) created by someone not in the NuGet teamPRs (and linked Issues) created by someone not in the NuGet teamPriority:2Issues for the current backlog.Issues for the current backlog.Type:BugType:Engineeringproduct/infrastructure work/not a customer bug/feature/DCRproduct/infrastructure work/not a customer bug/feature/DCR