Failed to generate project files

After using blueprints in Unreal for about a year, I decided that I want to start learning how to code for Unreal. I downloaded Visual Studio 2022 along with all of the components that the Unreal documentation said were required. I am no longer able to open the project as I must generate these files before I am allowed to do so. I am able to create files in my projects however when I try to generate project files it barely runs before giving me this error:

Running UnrealBuildTool: dotnet “…..\Engine\Binaries\DotNET\UnrealBuildTool\UnrealBuildTool.dll” -projectfiles -project=“C:/Users/RR/Documents/Unreal Projects/MyProject/MyProject.uproject” -game -rocket -progress -log=“C:\Users\RR\Documents\Unreal Projects\MyProject/Saved/Logs/UnrealVersionSelector-2023.04.19-18.40.26.log”
Log file: C:\Users\RR\Documents\Unreal Projects\MyProject\Saved\Logs\UnrealVersionSelector-2023.04.19-18.40.26.log
Log file: C:\Users\RR\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

Discovering modules, targets and source code for project…
Compiled assembly file ‘C:\Users\RR\Documents\Unreal Projects\MyProject\Intermediate\Build\BuildRules\MyProjectModuleRules.dll’ appears to be for a newer CLR version or is otherwise invalid. Unreal Build Tool will try to recompile this assembly now. (Exception: Could not load file or assembly ‘C:\Users\RR\Documents\Unreal Projects\MyProject\Intermediate\Build\BuildRules\MyProjectModuleRules.dll’. Format of the executable (.exe) or library (.dll) is invalid.)
error CS0041: Unexpected error writing debug information – ‘The version of Windows PDB writer is older than required: ‘diasymreader.dll’’
Expecting to find a type to be declared in a target rules named ‘MyProjectTarget’. This type must derive from the ‘TargetRules’ type defined by Unreal Build Tool.

I have scoured many forums for several hours and was not able to find any solution that helped. Simply put, I want to be able to code in Unreal and while it seems like I am close, I am unable to generate the project files I need to even open up my project anymore. Any help would be appreciated!

1 Like