When I added the Mover actor class it didn’t automatically open in Visual Studio Code like in the video.
I went back to the lesson on compiling a C++ project in Obstacle Assault and noticed that it did not create the workspace file.
I think this may because I added the class before installing the C++ extension and changing the default code editor.
You can generate Visual Studio files if you right-click on your .uproject file. It will create a SLN file.
Open that with Visual Studio, and then you can try to get your project to compile.
Before you try that, you should delete your Binaries, DerivedDataCache, and Intermediate folders.
After you get it building in Visual Studio, you can then start UE and tell it to regenerate your Visual Studio Code code-workspace file.
Alternatively, if you have Rider, you can get Rider to open the .uproject file directly.
Looks like I need to update my VS install
Running UnrealBuildTool: dotnet “…\Engine\Binaries\DotNET\UnrealBuildTool\UnrealBuildTool.dll” -projectfiles -project=“C:/Users/gregb/OneDrive/Documents/Unreal Projects/Courses/CryptRaider/CryptRaider.uproject” -game -rocket -progress -log=“C:\Users\gregb\OneDrive\Documents\Unreal Projects\Courses\CryptRaider/Saved/Logs/UnrealVersionSelector-2023.11.25-11.05.52.log”
Log file: C:\Users\gregb\OneDrive\Documents\Unreal Projects\Courses\CryptRaider\Saved\Logs\UnrealVersionSelector-2023.11.25-11.05.52.log
Log file: C:\Users\gregb\AppData\Local\UnrealBuildTool\Log_GPF.txt
Some Platforms were skipped due to invalid SDK setup: IOS, Android, Linux, LinuxArm64.
See the log file for detailed information
Generating VisualStudioCode project files:
Discovering modules, targets and source code for project…
Microsoft platform targets must be compiled with Visual Studio 2022 17.4 (MSVC 14.34.x) or later for the installed engine. Please update Visual Studio 2022 and ensure no configuration is forcing WindowsTargetRules.Compiler to VisualStudio2019. The current compiler version was detected as: 14.29.30148
There is some C# in Unreal for the build system, so you need the Universal pack. I keep going back and forth between UE and Unity, so I don’t think you need the Unity modules. My Visual Studio is a little newer than yours, but not much.