Problem connecting Visual Studio with UE5.6

Hello, I tried to install Visual Studio on UE5.6, and every time I try to create a code, a lot of errors appear, even if I don’t write anything. I am trying to create a plugin that will create a new blueprint for me. If anyone can help me,

This seems to be fairly common.

A few things:

  1. intellisense absolutely does not seem to work correctly with C++ and Unreal, and will show a lot of errors in editor that may still compile, so you can’t rely on what the editor is saying until you try to compile.
  2. I’ve not had luck compiling with VS while the Unreal Editor is open - the files Unreal has open will be locked. There is supposedly a way to develop this way, but I’ve not gotten it to work, I always need to close the editor to compile.

Other things to try are to remove the .vs folder; to right-click the project file and regenerate solution files (although this seems broken on Windows 11).

Good luck.

EDIT: Wanted to add that building the entire solution does not work for me. In VS, in Solution Explorer, right click on your plugin and choose to build, as opposed to building the whole solution.

Could you share the errors, in the bottom left there should be a output tab with detailed logs.

(post deleted by author)

After several solutions, I reached this stage.

image

image1949×302 30.2 KB

image

Please fix the first error (version mismatch with VS compiler) first, then post errors after that.

See this document: