Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to build the repo #596

Closed
singhsarab opened this issue Apr 8, 2019 · 2 comments
Closed

Unable to build the repo #596

singhsarab opened this issue Apr 8, 2019 · 2 comments

Comments

@singhsarab
Copy link
Contributor

Description

Errors while trying to build the repo on a machine which has both VS2017 and VS2019.

Steps to reproduce

On a machine which has both VS2017 and VS2019 installed, clone and build the repo

Expected behavior

Build.cmd works and there are no errors.

Actual behavior

testfx>build
... Perform-Restore: Started.
...     Starting toolset restore...
All packages listed in packages.config are already installed.
Error parsing solution file at E:\Code\testfx\testfx\TestFx.sln: The system cannot find the file specified. (Exception from HRESULT: 0x80070002)
Error parsing solution file at E:\Code\testfx\testfx\Templates\MSTestTemplates.sln: The system cannot find the file specified. (Exception from HRESULT: 0x80070002)
Error parsing solution file at E:\Code\testfx\testfx\WizardExtensions\WizardExtensions.sln: The system cannot find the file specified. (Exception from HRESULT: 0x80070002)
The restore failed with an exit code of '1'.
At E:\Code\testfx\testfx\scripts\build.ps1:184 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

Windows 10
VS2017 and VS2019

@singhsarab
Copy link
Contributor Author

Workaround

Uninstalling VS2019 worked for me.

@cltshivash
Copy link
Contributor

Will be tracked as part of the CPS move.

@microsoft microsoft locked and limited conversation to collaborators Apr 22, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants