Building unity project in VS Code

How do I BUILD unity project in VS Code?

What I want:

  • Editor to open when I double click a file
  • Project to build when I press Ctrl+Shift+B
  • Have an error list which can be brought up via a hotkey.

Step 2 doesn’t work for me.

I’ve installed UnityVSCode, updated it, however an attempt to build the project results in “Task runner not configured”. When I configure task runner (to msbuild), I end up with this error message:

MSBUILD : error MSB1011: Specify which project or solution file to use because this folder contains more than one project or solution file.

Which does not appear anywhere online. Omnisharp icon also displays “0 projects”.

Is the “expected” workflow to work without manual compilation and instead wait for Omnisharp to rescan the project on every tiny change you do?

Since this thread is more than a year old I hope you have already solved it but if anyone else is having trouble with this: Make sure you have .NET core installed and set up a dotnet core build task.

It’s so long time ago but for the others,
just using ‘Debugger for Unity’ extension, since than everything is good.
I want to share this, because I took 3 days for solving this, bye

1 Like