Comments (11)
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.
Assisting you mentioned "in my case the whole NuGet folder was missing." but you didn't mention how you got it?
from quantum.
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.
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.
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.
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.
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.
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.
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.
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.
just install Visual Studio SDK in Individual Tap with Visual Studio Installer
from quantum.
Related Issues (20)
- H2 Broombridge file seems incorrect
- Q# installation issue through dotnet , VS code. HOT 4
- "External component has thrown an exception." for SudokuGrover running 4x4-classic HOT 5
- Resource estimator for factorization of 2048-bit semi prime integers HOT 12
- Latest LLVM version for qir/oracle-generator is 14.0. Need to update CMakefile.txt if just following instructions
- Typo in samples / interoperability / python / environment.yml HOT 1
- lo
- Using nuget restore from .NET 5.0 no longer requires first updating ca-certificates HOT 1
- Optimization: Remove redundant `list` call in `check_file` in `Build/check_indents.py` HOT 3
- PI
- Add Sparse Simulator Samples HOT 6
- BayesianPEIsCorrect test fails probabilistically HOT 1
- Add sparse simulator sample to main
- mybinder notebook integer-factorization does not work HOT 3
- Quantum Random Number Generator not working HOT 1
- `TimeoutError` but azure still connects? HOT 4
- HalfMoon example on Quantum Hardware HOT 2
- Don't use "failed" in the normal RUS loop logs
- "Prebuild Docker image" Action is broken. HOT 1
- Error in Shor's algorithm HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from quantum.