aspnetcore: Unable to locate repository with working directory that contains directory ...

Is there an existing issue for this?

  • I have searched the existing issues

Describe the bug

I am trying to get a local copy of .Net 6.0 to step through the code to better understand how some things work. I have downloaded v6.0.10 and when I run the restore.cmd I get the errors below.

One thing I noticed is a lack of documentation on how to build the code correctly. Is there documentation out there that I am missing? If so a link to that would be very helpful.

` dotnet-install: Using alternate version 6.0.10 found in https://dotnetcli.azureedge.net/dotnet/Runtime/6.0.10-servicing.22476.5/runtime-productVersion.txt dotnet-install: Extracting the archive. dotnet-install: Adding to current process PATH: "C:\repos\aspnetcore-6.0.10.dotnet\x86". Note: This change will not be visible if PowerShell was run as a child process. dotnet-install: Note that the script does not resolve dependencies during installation. dotnet-install: To check the list of dependencies, go to https://docs.microsoft.com/dotnet/core/install/windows#dependencies dotnet-install: Installed version is 6.0.10 dotnet-install: Installation finished Attempting to install dotnet from public location. dotnet-install: Note that the intended use of this script is for Continuous Integration (CI) scenarios, where: dotnet-install: - The SDK needs to be installed without user interaction and without admin rights. dotnet-install: - The SDK installation doesn’t need to persist across multiple CI runs. dotnet-install: To set up a development environment or to run apps, use installers rather than this script. Visit https://dotnet.microsoft.com/download to get the installer.

dotnet-install: Extracting the archive. dotnet-install: Note that the script does not resolve dependencies during installation. dotnet-install: To check the list of dependencies, go to https://docs.microsoft.com/dotnet/core/install/windows#dependencies dotnet-install: Installed version is 3.1.28 dotnet-install: Installation finished Determining projects to restore… Restored C:\repos\aspnetcore-6.0.10\eng\tools\RepoTasks\RepoTasks.csproj (in 2.23 sec). C:\Users\Sam.nuget\packages\microsoft.build.tasks.git\1.1.0-beta-20206-02\build\Microsoft.Build.Tasks.Git.targets(24,5): error : Unable to locate repository with working directory that contains directory ‘C:\repos\aspnetcore-6.0.10\eng\tools\RepoTasks’. [C:\repos\aspnetcore-6.0.10\eng\tools\RepoTasks\RepoTasks.csproj] C:\Users\Sam.nuget\packages\microsoft.build.tasks.git\1.1.0-beta-20206-02\build\Microsoft.Build.Tasks.Git.targets(47,5): error : Unable to locate repository with working directory that contains directory ‘C:\repos\aspnetcore-6.0.10\eng\tools\RepoTasks’. [C:\repos\aspnetcore-6.0.10\eng\tools\RepoTasks\RepoTasks.csproj] C:\Users\Sam.nuget\packages\microsoft.sourcelink.common\1.1.0-beta-20206-02\build\Microsoft.SourceLink.Common.targets(52,5): error : Source control information is not available - the generated source link is empty. [C:\repos\aspnetcore-6.0.10\eng\tools\RepoTasks\RepoTasks.csproj] C:\Users\Sam.nuget\packages\microsoft.build.tasks.git\1.1.0-beta-20206-02\build\Microsoft.Build.Tasks.Git.targets(24,5): error : Unable to locate repository with working directory that contains directory ‘C:\repos\aspnetcore-6.0.10\eng\tools\RepoTasks’. [C:\repos\aspnetcore-6.0.10\eng\tools\RepoTasks\RepoTasks.csproj] C:\Users\Sam.nuget\packages\microsoft.build.tasks.git\1.1.0-beta-20206-02\build\Microsoft.Build.Tasks.Git.targets(47,5): error : Unable to locate repository with working directory that contains directory ‘C:\repos\aspnetcore-6.0.10\eng\tools\RepoTasks’. [C:\repos\aspnetcore-6.0.10\eng\tools\RepoTasks\RepoTasks.csproj] C:\Users\Sam.nuget\packages\microsoft.sourcelink.common\1.1.0-beta-20206-02\build\Microsoft.SourceLink.Common.targets(52,5): error : Source control information is not available - the generated source link is empty. [C:\repos\aspnetcore-6.0.10\eng\tools\RepoTasks\RepoTasks.csproj] RepoTasks -> C:\repos\aspnetcore-6.0.10\artifacts\bin\RepoTasks\Release\net472\RepoTasks.dll RepoTasks -> C:\repos\aspnetcore-6.0.10\artifacts\bin\RepoTasks\Release\net6.0\RepoTasks.dll Build failed with exit code 1. Check errors above.`

Expected Behavior

I am expecting to build the git repo successfully

Steps To Reproduce

Download the aspnetcore-6.0.10 from github, unzip with 7-zip, open a VS2022 cmd line, execute restore.cmd

Exceptions (if any)

No response

.NET Version

6.0.10

Anything else?

No response

About this issue

  • Original URL
  • State: closed
  • Created 2 years ago
  • Comments: 20 (13 by maintainers)

Most upvoted comments

Fixed a while back w/ #45381