You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
Operations in .qs files are not recognized in the project. If I place the quantum code in a project where the sdk is set to Microsoft.Quantum.Sdk/0.10.2001.2831 (in the csproj file) it works fine. All other projects under "samples" build fine, so I think it's related to the use of "Microsoft.NET.Sdk.Web". When it does fail, the following is what I get.
Program.cs(21,32): error CS0103: The name 'QsMain' does not exist in the current context [*\Quantum\samples\runtime\state-visualizer\StateVisualizer.csproj]
This very well could be something I've done wrong, as I've checked multiple versions of this code (back until one in January - Commit d516ef9) and the same thing happens.
To Reproduce
Steps to reproduce the behavior:
Follow setup instructions for Q# development (I did Visual Studio and VS Code). Q# + C# Instructions
Verify setup is correct as in the instructions with a few simple programs from the Quantum Katas or other samples.
Describe the bug
Operations in .qs files are not recognized in the project. If I place the quantum code in a project where the sdk is set to Microsoft.Quantum.Sdk/0.10.2001.2831 (in the csproj file) it works fine. All other projects under "samples" build fine, so I think it's related to the use of "Microsoft.NET.Sdk.Web". When it does fail, the following is what I get.
Program.cs(21,32): error CS0103: The name 'QsMain' does not exist in the current context [*\Quantum\samples\runtime\state-visualizer\StateVisualizer.csproj]
This very well could be something I've done wrong, as I've checked multiple versions of this code (back until one in January - Commit d516ef9) and the same thing happens.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Expect for the code to run and for me to be able to access the visualizer at localhost:5000.
System information