# UE5.3.2 and visual studio 2022 has this issue,The project could not be compiled. Would you like to open it in Visual Studio? 

**URL:** <https://forums.unrealengine.com/t/ue5-3-2-and-visual-studio-2022-has-this-issue-the-project-could-not-be-compiled-would-you-like-to-open-it-in-visual-studio/1745455>\
**Category:** C++\
**Tags:** unreal-engine, question\
**Created:** [March 11, 2024, 3:02pm UTC](https://forums.unrealengine.com/t/ue5-3-2-and-visual-studio-2022-has-this-issue-the-project-could-not-be-compiled-would-you-like-to-open-it-in-visual-studio/1745455 "2024-03-11T15:02:56Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![clusmyus](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@clusmyus](https://forums.unrealengine.com/u/clusmyus)\
**Post date:** [March 11, 2024, 3:02pm UTC](https://forums.unrealengine.com/t/ue5-3-2-and-visual-studio-2022-has-this-issue-the-project-could-not-be-compiled-would-you-like-to-open-it-in-visual-studio/1745455/1 "2024-03-11T15:02:56Z")

</div>

Running F:/UE 5/UE\_5.3/Engine/Build/BatchFiles/Build.bat Development Win64 -Project=“F:/ue projects/MyProject2/MyProject2.uproject” -TargetType=Editor -Progress -NoEngineChanges -NoHotReloadFromIDE  
Using bundled DotNet SDK version: 6.0.302  
Running UnrealBuildTool: dotnet “…..\Engine\Binaries\DotNET\UnrealBuildTool\UnrealBuildTool.dll” Development Win64 -Project=“F:/ue projects/MyProject2/MyProject2.uproject” -TargetType=Editor -Progress -NoEngineChanges -NoHotReloadFromIDE  
Log file: C:\Users\Dell\AppData\Local\UnrealBuildTool\Log.txt  
Creating makefile for MyProject2Editor (no existing makefile)  
@progress push 5%  
Parsing headers for MyProject2Editor  
Running Internal UnrealHeaderTool “F:\ue projects\MyProject2\MyProject2.uproject” “F:\ue projects\MyProject2\Intermediate\Build\Win64\MyProject2Editor\Development\MyProject2Editor.uhtmanifest” -WarningsAsErrors -installed  
Total of 0 written  
Reflection code generated for MyProject2Editor in 1.2371853 seconds  
@progress pop  
Building MyProject2Editor…  
Using Visual Studio 2022 14.39.33521 toolchain (F:\visual studio community\New folder\VC\Tools\MSVC\14.39.33519) and Windows 10.0.22621.0 SDK (C:\Program Files (x86)\Windows Kits\10).  
Determining max actions to execute in parallel (6 physical cores, 12 logical cores)  
Executing up to 6 processes, one per physical core  
Requested 1.5 GB memory per action, 2.46 GB available: limiting max parallel actions to 1  
------ Building 6 action(s) started ------  
[1/6] Compile [x64] SharedPCH.Engine.Cpp20.cpp  
F:\UE 5\UE\_5.3\Engine\Source\predefined C++ types (compiler internal)(420): error C2248: ‘FHazardPointerCollection::FHazardRecord::FHazardRecord’: cannot access private member declared in class ‘FHazardPointerCollection::FHazardRecord’  
F:\UE 5\UE\_5.3\Engine\Source\Runtime\Core\Public\Experimental\Containers\HazardPointer.h(86): note: see declaration of ‘FHazardPointerCollection::FHazardRecord::FHazardRecord’  
F:\UE 5\UE\_5.3\Engine\Source\Runtime\Core\Public\Experimental\Containers\HazardPointer.h(77): note: see declaration of ‘FHazardPointerCollection::FHazardRecord’  
F:\UE 5\UE\_5.3\Engine\Source\predefined C++ types (compiler internal)(420): note: the template instantiation context (the oldest one first) is  
F:\UE 5\UE\_5.3\Engine\Source\Runtime\Core\Public\Experimental\Containers\HazardPointer.h(133): note: see reference to function template instantiation ‘void \_\_builtin\_array\_init\_helperFHazardPointerCollection::FHazardRecord(\_T \*,size\_t) noexcept()’ being compiled  
with  
[  
\_T=FHazardPointerCollection::FHazardRecord  
]  
[2/6] Resource Default.rc2  
Total time in Parallel executor: 17.72 seconds  
Total execution time: 30.60 seconds

---

<div class="post-metadata">

**Author:** ![Arodi007](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/arodi007/32/1022275_2.png) [@Arodi007](https://forums.unrealengine.com/u/Arodi007)\
**Post date:** [March 11, 2024, 4:29pm UTC](https://forums.unrealengine.com/t/ue5-3-2-and-visual-studio-2022-has-this-issue-the-project-could-not-be-compiled-would-you-like-to-open-it-in-visual-studio/1745455/2 "2024-03-11T16:29:22Z")

</div>

> [@"cannot acces private member" Error with Compiling C++ Projects in VScode](https://forums.unrealengine.com/t/cannot-acces-private-member-error-with-compiling-c-projects-in-vscode/1721851/2):
>
> From what i seen other people with visual studio are getting the same issue as well when they update to latest version. VS code most likely using the code as visual studio i guess, you can try an older version if that can help.

You will have to rollback to visual studio 17.8, the fix is made on 17.10 but they havent yet released it(except on preview i thk).
