Giter Site home page Giter Site logo

Comments (11)

jgilpin avatar jgilpin commented on July 17, 2024 32

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

from quantum.

mikejr76 avatar mikejr76 commented on July 17, 2024 13

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

from quantum.

kylekampy avatar kylekampy commented on July 17, 2024 2

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.

from quantum.

hussainb avatar hussainb commented on July 17, 2024 1

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.

from quantum.

NishkaDG avatar NishkaDG commented on July 17, 2024

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.

from quantum.

anpaz avatar anpaz commented on July 17, 2024

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.

from quantum.

anpaz avatar anpaz commented on July 17, 2024

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#

from quantum.

Assisting avatar Assisting commented on July 17, 2024

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.

from quantum.

Assisting avatar Assisting commented on July 17, 2024

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.

from quantum.

samneefs avatar samneefs commented on July 17, 2024

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.

from quantum.

YahiaEltantawy avatar YahiaEltantawy commented on July 17, 2024

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

from quantum.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.