6

Having just installed the Microsoft Quantum Development Kit, creating a new Q# project fails with the obscure message:

Argument can't be null: Parameter name: node.

(I am using a clean install of Visual Studio 2017 Community, with latest updates applied.)

Screen shot illustrating how to reproduce the problem: enter image description here


And the resultant error message:

enter image description here

Does anyone know what causes this error, and how it may be resolved?

jpierson
  • 16,435
  • 14
  • 105
  • 149
Lemonseed
  • 1,644
  • 1
  • 15
  • 29
  • Just to get through all the first questions: you've restarted Visual Studio, rebooted your computer, etc? – speckledcarp Dec 14 '17 at 04:24
  • @speckledcarp Yes, tried all of that; unfortunately no change. – Lemonseed Dec 14 '17 at 12:03
  • 1
    Cool. Have you tried downloading one of the example projects at https://github.com/Microsoft/Quantum and seeing if you can open/run it? – speckledcarp Dec 14 '17 at 14:25
  • @speckledcarp Downloading the sample files from the github link you provided in your previous comment allowed me to open the samples. I can compile and run those samples without issue. I still cannot create new solutions, but Microsoft released a new update to Visual Studio today that I will install and report if it changed anything. Thanks! – Lemonseed Dec 15 '17 at 14:22
  • Even after installing updates, the only way for me to use Q# is to open an existing project/solution. New projects cannot be created. I can't even add a Q# project (or even a source file) to an existing solution. – Lemonseed Dec 15 '17 at 14:33
  • Hmm. That's odd. That makes it seem like you've got all the runtime libraries you need, but that somehow the integration with VS is broken. Reinstall VS? It might also be some sort of platform specific issue. – speckledcarp Dec 15 '17 at 15:00

1 Answers1

1

I had a similar issue (also with VS Community 2017 and Q#) - a repair of VS fixed the issue for me and it's worked fine since.

NeilM
  • 26
  • 1
  • 6