-
Notifications
You must be signed in to change notification settings - Fork 288
Closed
Labels
Description
Description
I just cloned down the netfx repository to have a go at implementing #579 and when I ran build.cmd I got the following error.
Steps to reproduce
Environment: Visual Studio 2017 and 2019 installed.
- Clone repo.
- Open VS2019 developer command-prompt.
- Run build.cmd
C:\Code\testfx>build
Expected behavior
I expected a successful initial build before I started changing anything.
Actual behavior
Build failed with:
... Perform-Restore: Started.
... Starting toolset restore...
All packages listed in packages.config are already installed.
Error parsing solution file at C:\Code\testfx\TestFx.sln: The system cannot find the file specified. (Exception from HRESULT: 0x80070002)
The restore failed with an exit code of '1'.
At C:\Code\testfx\scripts\build.ps1:166 char:5
+ throw "The restore failed with an exit code of '$lastExitCode'."
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : OperationStopped: (The restore fai...it code of '1'.:String) [], RuntimeException
+ FullyQualifiedErrorId : The restore failed with an exit code of '1'.
Environment
C:\Users\mitch> ver
Microsoft Windows [Version 10.0.18877.1000]
Both Visual Studio 2017 and 2019 installed. I noticed by spelunking through build.ps1 and the files it references that is looking in the worng place for MSBuild (at least for VS2019).