Skip to content
This repository has been archived by the owner on Jan 12, 2024. It is now read-only.

Missing Path to SDK Resolver DLL #114

Closed
NishkaDG opened this issue Nov 11, 2018 · 11 comments
Closed

Missing Path to SDK Resolver DLL #114

NishkaDG opened this issue Nov 11, 2018 · 11 comments

Comments

@NishkaDG
Copy link

NishkaDG commented Nov 11, 2018

Could not load SDK Resolver. A manifest file exists, but the path to the SDK Resolver DLL file could not be found.

I followed the instructions at https://docs.microsoft.com/en-gb/quantum/install-guide/vs-2017?view=qsharp-preview but when I click on Samples\QSharpSamples.sln, I get the above error. As the file paths after the quoted error message mention NuGetSdkResolver.dll, in accordance to the tip on the installation webpage, I tried to attempt a NuGet Package Restore based on the instructions at https://docs.microsoft.com/en-gb/nuget/consume-packages/package-restore. However, I cannot find NuGet Package Manager in Tools > Options.

Thank you for your time.

@NishkaDG
Copy link
Author

I individually downloaded every file and package with the "NuGet" or "DLL" in the title; then I was getting errors such as "load failed" and, eventually, an error claiming that "Microsoft.NET.Sdk" was missing. By this point I felt it would be cleaner to clone the Q# repository again, but the "missing Microsoft.NET.Sdk" error did not go anywhere. I have no idea what I am doing wrong.
Thank you for your time.

@anpaz
Copy link
Member

anpaz commented Feb 14, 2019

Did you figured this out? Looks like your installation of dotnet was missing or broken. What version of VS did you have?
If still a problem, I would suggest installing .net core from this URL:
https://www.microsoft.com/net/download
and then, from the command line on a clean clone of this Samples repository run:
dotnet build Samples/QsharpSamples.sln
that is all you need.

@anpaz
Copy link
Member

anpaz commented Feb 14, 2019

Closing as this is not really an Issue with the samples.
https://stackoverflow.com is probably a better venue to ask these questions, the Q# team actively monitors questions tagged with q#

@anpaz anpaz closed this as completed Feb 14, 2019
@Assisting
Copy link

Just as an FYI I've run into the same problem. You'll probably want to check for the existence of C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\Common7\IDE\CommonExtensions\Microsoft\NuGet\Microsoft.Build.NuGetSdkResolver.dll, in my case the whole NuGet folder was missing.

@mikejr76
Copy link

mikejr76 commented Mar 4, 2019

Assisting you mentioned "in my case the whole NuGet folder was missing." but you didn't mention how you got it?

@hussainb
Copy link

Just as an FYI I've run into the same problem. You'll probably want to check for the existence of C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\Common7\IDE\CommonExtensions\Microsoft\NuGet\Microsoft.Build.NuGetSdkResolver.dll, in my case the whole NuGet folder was missing.

you should really mention how you were able to get that missing nuget folder, it will really "Assist" us.

@jgilpin
Copy link

jgilpin commented Jul 3, 2019

I had the same error when only VS2017 build tools is installed.
To remedy, I needed to install the Microsoft.VisualStudio.Component.NuGet.BuildTools component.

Used a command like this from powershell:
Start-Process "C:\Program Files (x86)\Microsoft Visual Studio\Installer\vs_installer.exe" -ArgumentList 'modify --installPath "C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools" --passive --add Microsoft.VisualStudio.Component.NuGet.BuildTools' -Wait -PassThru

@Assisting
Copy link

Apologies to those who asked, my eventual solution was to copy/paste it from elsewhere in the file system. If you don't have it at all I'm sure @jgilpin 's suggestion would work.

@samneefs
Copy link

samneefs commented Nov 4, 2019

SDK resolver didn't exist (C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\Common7\IDE\CommonExtensions\Microsoft\NuGet\Microsoft.Build.NuGetSdkResolver.dll)
@jgilpin 's command added the needed file.

jwittner pushed a commit to jwittner/Quantum that referenced this issue Dec 16, 2019
@kylekampy
Copy link

I was able to get around this issue by simply running the "Repair" option from the Visual Studio Installer. It dropped in the missing .dll for me.

@YahiaEltantawy
Copy link

just install Visual Studio SDK in Individual Tap with Visual Studio Installer

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

9 participants