Issues with refreshing vs code project

so i was setting up the unreal editor v4.26.2 on my new laptop. after the entire setup was completed, i selected the “refresh visual studio code” option in the editor, and came up with this error message:

An error occurred while trying to generate project files.

Running D:/GAMEZZ/Unreal Engine/UE_4.26/Engine/Binaries/DotNET/UnrealBuildTool.exe -projectfiles -project=“D:/GAMEZZ/Unreal Projects/ObstacleCourseTemp/ObstacleCourseTemp.uproject” -game -rocket -progress
Discovering modules, targets and source code for project…
ERROR: Could not find NetFxSDK install dir; this will prevent SwarmInterface from installing. Install a version of .NET Framework SDK at 4.6.0 or higher.

Further issues include-
ue intellisense fix doesnt remove the red squigglies from the #include lines in va code.
and intellicode doesnt work too.

any fix for this? Thanks in advance!

You need to install .NET 4.6 SDK, higher version doesn’t mean 4.7 or 5.0. It means 4.6.1 or 4.6.2.

What do you get in the problems tab in VS Code?

i tried installing the .NET Framework 4.6.2 runtime from here:

however, I am shown this:

Here is everything I got in the problems tab in VS code:

#include errors detected. Consider updating your compile_commands.json or includePath. Squiggles are disabled for this translation unit (D:\GAMEZZ\Unreal Projects\ObstacleCourseTemp\Source\ObstacleCourseTemp\MoveSidewaysY.cpp).
cannot open source file “CoreMinimal.h” (dependency of “MoveSidewaysY.h”)
[{
“resource”: “/d:/GAMEZZ/Unreal Projects/ObstacleCourseTemp/.vscode/c_cpp_properties.json”,
“owner”: “d:\GAMEZZ\Unreal Projects\ObstacleCourseTemp”,
“severity”: 4,
“message”: “Cannot find “D:\\Unreal projects\\ObstacleCourseTemp\\.vscode\\compileCommands_Default.json”.”,
“startLineNumber”: 13,
“startColumn”: 32,
“endLineNumber”: 13,
“endColumn”: 112

a picture of the problems tab to help:

update:
i already have the ue intellisense fix extension installed and enabled.

Have you used Tools > Refresh VS Code project within Unreal?

yes, that is why i encounter the issue

Sorry, brainfart. Did you install Visual Studio Community with the following settings?

Even if you already have Unreal installed.

ok installing with those settings seems to fix the issue, thank you!

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.

Privacy & Terms