I have written Q# code inside a C# project in VS Code. When I would click on Debug -> Start Without Debugging it would give a whole slew of build errors as shown in the images below. Can someone please help me out with this
To run the vs code I have installed: .NET Core SDK 3.0 or later & VS Code extension system: Mac osx 10.13.3
The errors in your screenshot are coming from a generated .cs
file inside the /obj
folder, indicating that duplicate assembly attributes are being found while attempting to build your project. Because the build fails, it cannot proceed to run and debug your program.
First thing to try would be to delete the bin
and obj
folders and try again. Files in these folders will get regenerated on the next build attempt.
If that doesn't work, can you please share the contents of your Hello_world.csproj
file?
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.