# Packaging error 'detected compiler newer than visual studio 2022' - beginner

**URL:** <https://forums.unrealengine.com/t/packaging-error-detected-compiler-newer-than-visual-studio-2022-beginner/2174644>\
**Category:** Programming & Scripting\
**Tags:** unreal-engine, Blueprint, question\
**Created:** [December 5, 2024, 8:09pm UTC](https://forums.unrealengine.com/t/packaging-error-detected-compiler-newer-than-visual-studio-2022-beginner/2174644 "2024-12-05T20:09:36Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![str4w\_b3rrieZ](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@str4w\_b3rrieZ](https://forums.unrealengine.com/u/str4w_b3rrieZ)\
**Post date:** [December 5, 2024, 8:09pm UTC](https://forums.unrealengine.com/t/packaging-error-detected-compiler-newer-than-visual-studio-2022-beginner/2174644/1 "2024-12-05T20:09:36Z")

</div>

Hello, it’s my first time packaging in unreal and i’ve ran into the error highlighted in yellow below when attempting to package for windows:

 ![Capture](https://d3kjluh73b9h9o.cloudfront.net/original/4X/7/7/7/777bacb4b4f3c960eeef23402e9322d3a6d7f494.png)

I am still using unreal engine 5.1, I only used blueprints, I have installed visual studio 2022 with the correct modifications (.net framework, c++ for games, c++ for desktop development. Can someone please tell me how to fix it?

Thank you

---

<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:** [December 6, 2024, 6:15pm UTC](https://forums.unrealengine.com/t/packaging-error-detected-compiler-newer-than-visual-studio-2022-beginner/2174644/2 "2024-12-06T18:15:34Z")

</div>

You will need to install the correct MSVC version for ue5.1  
Usually it MSVC 14.34 from your visual studio installer. (as mentioned [here](https://dev.epicgames.com/documentation/en-us/unreal-engine/setting-up-visual-studio-development-environment-for-cplusplus-projects-in-unreal-engine?application_version=5.2)

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/6/2/3/6233b406f8d054f28aa90f09d9785ffc6423265e.png)

And make sure you have the correct windows sdk for your exact windows 11 build version(that you can check with start\>search winver)

You might also want to uninstall any old visual studio left over.

Any third party plugin that are not from epic will require a package with visual studio even if you dont have any cpp files.

---

<div class="post-metadata">

**Author:** ![str4w\_b3rrieZ](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@str4w\_b3rrieZ](https://forums.unrealengine.com/u/str4w_b3rrieZ)\
**Post date:** [December 7, 2024, 5:19pm UTC](https://forums.unrealengine.com/t/packaging-error-detected-compiler-newer-than-visual-studio-2022-beginner/2174644/3 "2024-12-07T17:19:04Z")

</div>

Hello, thank you for your reply. I have downloaded the component you said:

 ![Capture1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/0/5/7/057054ef0d542584eae880633a737e60077c94ef.png)

I also downloaded an SDK before from here: [https://developer.microsoft.com/en-us/windows/downloads/windows-sdk/](https://developer.microsoft.com/en-us/windows/downloads/windows-sdk/)

this was the tutorial about the SDK download I used: [https://www.youtube.com/watch?v=JHta1LaaUws](https://www.youtube.com/watch?v=JHta1LaaUws)

This is my version of windows in case that’s an issue:

 ![Capture2](https://d3kjluh73b9h9o.cloudfront.net/original/4X/a/1/a/a1a5c335f4296ae2e2a6bb6964b64ef13a776bfe.png)

I don’t have any older versions of visual studio, I do have Visual Studio Code which is another standalone software.

So after doing these steps the outcome remains the same:

 ![Capture3](https://d3kjluh73b9h9o.cloudfront.net/original/4X/d/8/6/d866a0972b34c6e53b01890621a57f1bae6cddaf.png)

This is the full output log, I didn’t quite understand the ‘upgrade’ parts which I also highlighted in yellow.

---

<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:** [December 7, 2024, 8:30pm UTC](https://forums.unrealengine.com/t/packaging-error-detected-compiler-newer-than-visual-studio-2022-beginner/2174644/4 "2024-12-07T20:30:05Z")

</div>

You need to install `x86/64` and not an Arm build version for the MSVC.

Usually installing the windows sdk standalone might cause issues, i recommend using the one provided in visual studio installer that match your exact windows build version 19045.

\*you can ignore the upgrade parts, what important is the msvc version as it using 14.42 from the log. If you switch to 5.4 thought, it will package fine since it can support a newer version of msvc.

---

<div class="post-metadata">

**Author:** ![str4w\_b3rrieZ](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@str4w\_b3rrieZ](https://forums.unrealengine.com/u/str4w_b3rrieZ)\
**Post date:** [December 7, 2024, 10:17pm UTC](https://forums.unrealengine.com/t/packaging-error-detected-compiler-newer-than-visual-studio-2022-beginner/2174644/5 "2024-12-07T22:17:25Z")

</div>

Hi, thanks for your reply

> [@Arodi007](#):
>
> You need to install `x86/64` and not an Arm build version for the MSVC.

I chose this MSVC version so it’s matched to the one mentioned in the log (14.42)

![Capture2](https://d3kjluh73b9h9o.cloudfront.net/original/4X/f/9/0/f90e0be9047439d73fceffbc39be2d92403e4893.png)

> [@Arodi007](#):
>
> using the one provided in visual studio installer that match your exact windows build version 19045.

could you let me know how I can figure out which SDK version I need from visual studio for my windows build?

I came across these which don’t quite match to 19045, but 19041 is pretty close.

 ![Capture](https://d3kjluh73b9h9o.cloudfront.net/original/4X/f/1/1/f118f84da29ddeca4f52a4f140ec2ce6126686cd.png)

---

<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:** [December 8, 2024, 4:41am UTC](https://forums.unrealengine.com/t/packaging-error-detected-compiler-newer-than-visual-studio-2022-beginner/2174644/6 "2024-12-08T04:41:36Z")

</div>

You need to install MSVC 14.34

The one that is mentioned in the log is the current version it trying to use. 14.42 didnt exist when ue5.1 was made that why it giving that warning msg.

Yes windows 10 SDK 19041 should work fine.

---

<div class="post-metadata">

**Author:** ![villinx](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/villinx/32/729082_2.png) [@villinx](https://forums.unrealengine.com/u/villinx)\
**Post date:** [December 8, 2024, 4:50am UTC](https://forums.unrealengine.com/t/packaging-error-detected-compiler-newer-than-visual-studio-2022-beginner/2174644/7 "2024-12-08T04:50:59Z")

</div>

> [@UE5.3 cannot build project](https://forums.unrealengine.com/t/ue5-3-cannot-build-project/2133106/3):
>

---

<div class="post-metadata">

**Author:** ![str4w\_b3rrieZ](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@str4w\_b3rrieZ](https://forums.unrealengine.com/u/str4w_b3rrieZ)\
**Post date:** [December 8, 2024, 12:48pm UTC](https://forums.unrealengine.com/t/packaging-error-detected-compiler-newer-than-visual-studio-2022-beginner/2174644/8 "2024-12-08T12:48:11Z")

</div>

Hello, I would like to thank you for your patience.

I believe I have the correct SDK and MSCV downloaded now:

![Capture](https://d3kjluh73b9h9o.cloudfront.net/original/4X/d/2/2/d22b1dc6943beb296b0684db51cdc317a0e1df9d.png)

![Capture2](https://d3kjluh73b9h9o.cloudfront.net/original/4X/a/8/7/a87eeb9eaf245e7c5d51e907a862c36a17f5f2c8.png)

Although it seems that Unreal is still using a different version from the ones I’ve just downloaded, possibly I may need to change something in the settings to update it? or something else?

 ![Capture3](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/4/a/24af5445f95ef4a7ba5a73847f4cae6b2f2e146c.png)

Thank you for your patience with this

---

<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:** [December 8, 2024, 1:46pm UTC](https://forums.unrealengine.com/t/packaging-error-detected-compiler-newer-than-visual-studio-2022-beginner/2174644/9 "2024-12-08T13:46:32Z")

</div>

Go to the folder: `%AppData%\Unreal Engine\UnrealBuildTool` (copy paste and enter)

Delete the file BuildConfiguration.xml, this should reset the visual studio toolchain version.

Otherwise:

- delete the msvc 14.42
- or manually write the config like on this [page](https://forums.unrealengine.com/t/ue5-3-cannot-build-project/2133106/3)

---

<div class="post-metadata">

**Author:** ![str4w\_b3rrieZ](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@str4w\_b3rrieZ](https://forums.unrealengine.com/u/str4w_b3rrieZ)\
**Post date:** [December 8, 2024, 8:37pm UTC](https://forums.unrealengine.com/t/packaging-error-detected-compiler-newer-than-visual-studio-2022-beginner/2174644/10 "2024-12-08T20:37:19Z")

</div>

> [@Arodi007](#):
>
> (copy paste and enter)

Could you let me know what I am pasting into the folder? i’ve deleted the BuildConfiguration.xml file that was inside the folder. I have also uninstalled 14.42.

> [@Arodi007](#):
>
> manually write the config like on this [page](https://forums.unrealengine.com/t/ue5-3-cannot-build-project/2133106/3)

Could you let me know where to write this?

Thank you for helping me understand

---

<div class="post-metadata">

**Author:** ![str4w\_b3rrieZ](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@str4w\_b3rrieZ](https://forums.unrealengine.com/u/str4w_b3rrieZ)\
**Post date:** [December 10, 2024, 4:29pm UTC](https://forums.unrealengine.com/t/packaging-error-detected-compiler-newer-than-visual-studio-2022-beginner/2174644/11 "2024-12-10T16:29:27Z")

</div>

Hello, thank you for your reply, sorry if it’s a very beginner / obvious question, I didn’t quite understand step 2, could you explain it? is that code we are supposed to paste somewhere, I understand the xml file, in another reply someone else said to delete it in order for unreal engine to update the msvc or sdk (something like that) but that was the only part I understood. Could you give me clearer instructions, thank you

---

<div class="post-metadata">

**Author:** ![villinx](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/villinx/32/729082_2.png) [@villinx](https://forums.unrealengine.com/u/villinx)\
**Post date:** [December 10, 2024, 5:20pm UTC](https://forums.unrealengine.com/t/packaging-error-detected-compiler-newer-than-visual-studio-2022-beginner/2174644/12 "2024-12-10T17:20:04Z")

</div>

When only one version of the compiler is installed, if this compiler is deleted and another version is installed, but the file settings remain unchanged and are still set to use the previous version of the compiler, the compiler will not be found during compilation.  
If multiple versions of the compiler are installed simultaneously, you can change which version of the compiler is currently being used by modifying this file.  
When there are multiple versions of engines on the computer, it is necessary to switch between different compilers to use them. For example, my computer is also installed with 4.27, 5.2, and 5.4

---

<div class="post-metadata">

**Author:** ![str4w\_b3rrieZ](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@str4w\_b3rrieZ](https://forums.unrealengine.com/u/str4w_b3rrieZ)\
**Post date:** [December 10, 2024, 6:30pm UTC](https://forums.unrealengine.com/t/packaging-error-detected-compiler-newer-than-visual-studio-2022-beginner/2174644/13 "2024-12-10T18:30:55Z")

</div>

Hello, thank you for explaining, when attempting to package it seems to be giving some kind of errors with the code that you sent:

 ![Capture2](https://d3kjluh73b9h9o.cloudfront.net/original/4X/8/f/9/8f9d53d3fa0a42a071bec5dd06a1e66b1a03eb72.png)  
 ![Capture](https://d3kjluh73b9h9o.cloudfront.net/original/4X/7/b/0/7b03290ca13367d01abf27ea0bb2d68a4ae0ad8c.png)

I’m not sure if i typed the compiler version correctly? this is the version and sdk:  
 ![Capture3](https://d3kjluh73b9h9o.cloudfront.net/original/4X/c/6/7/c6727b2713feb016ffd4fe8ff0267d9f7d151a03.png)  
 ![Capture4](https://d3kjluh73b9h9o.cloudfront.net/original/4X/5/c/2/5c234ee26d488c5582a1740d78cbc70b5b3604b6.png)

---

<div class="post-metadata">

**Author:** ![villinx](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/villinx/32/729082_2.png) [@villinx](https://forums.unrealengine.com/u/villinx)\
**Post date:** [December 11, 2024, 3:37am UTC](https://forums.unrealengine.com/t/packaging-error-detected-compiler-newer-than-visual-studio-2022-beginner/2174644/14 "2024-12-11T03:37:59Z")

</div>

Do not use “out of Support” version  
Use the version directly labeled with the version number

---

<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:** [December 11, 2024, 4:37am UTC](https://forums.unrealengine.com/t/packaging-error-detected-compiler-newer-than-visual-studio-2022-beginner/2174644/15 "2024-12-11T04:37:24Z")

</div>

Your toolchain version is: `14.34.31933` and not 14.34.19041

---

<div class="post-metadata">

**Author:** ![str4w\_b3rrieZ](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@str4w\_b3rrieZ](https://forums.unrealengine.com/u/str4w_b3rrieZ)\
**Post date:** [December 11, 2024, 7:23pm UTC](https://forums.unrealengine.com/t/packaging-error-detected-compiler-newer-than-visual-studio-2022-beginner/2174644/16 "2024-12-11T19:23:19Z")

</div>

Hello, thank you, can you let me know what 31933 is? where does this value come from?

> [@Arodi007](#):
>
> 31933

---

<div class="post-metadata">

**Author:** ![str4w\_b3rrieZ](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@str4w\_b3rrieZ](https://forums.unrealengine.com/u/str4w_b3rrieZ)\
**Post date:** [December 11, 2024, 7:58pm UTC](https://forums.unrealengine.com/t/packaging-error-detected-compiler-newer-than-visual-studio-2022-beginner/2174644/17 "2024-12-11T19:58:43Z")

</div>

Hello readers, this is a **summary of this thread** and how to set-up the compiler for unreal engine and avoid errors, solved by: @Arodi007 and @villinx

You will need **visual studio installer and visual studio 2022 downloaded** in order for unreal engine to be able to compile and package your game build.

1. You must download the SDK (software developement tool) and MSVC (microsoft visual compiler) from visual studio installer.

Press ‘modify’

 ![Capture5](https://d3kjluh73b9h9o.cloudfront.net/original/4X/f/3/a/f3a69f4c914d85162c762d95da14e0aeb4882bfa.png)

there are tabs at the top, press ‘individual components’ this is the list of all the SDK and msvc available to download.

**2. choosing the SDK** - you must choose it based on your version of windows, you can check your windows version by **start \> and type ‘search winver’ into the search bar**. If you don’t know which version to get, you can ask in the forum or search it on google.

**3. choosing the msvc** - you can check online which version of mscv is compatible with your version of unreal engine. typically, if you’re using a newer compiler but an older version of unreal engine, they won’t be compatible, If you don’t know which version to download, you can leave a question in the forum or search on google.

Make sure to download ‘x64/x84 build tools’ of your msvc and not ‘arms build’ version.

 ![cap3](https://d3kjluh73b9h9o.cloudfront.net/original/4X/d/8/d/d8dca08e3d5d3a8ede08648a7a76b9385886f6d8.png)

**4. delete any old msvc if you aren’t using them.** You can do this within the visual studio installer by unchecking them and pressing modify, which will uninstall them for you.

**5. Telling unreal to use the new msvc / sdk you downloaded.**

To do this, in the windows search bar, search for the folder %appdata%, navigate unreal \> buildtools \> buildconfiguration

 ![Capture1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/7/c/6/7c6e3a8797a53e5889c0cf533f1ce8e07c281d92.png)

 ![Capture2](https://d3kjluh73b9h9o.cloudfront.net/original/4X/6/9/4/6946e562d2a87404fffdd542c4592bc28b5e7b01.png)

Open this ‘build configuration’ file in any text editor, you must update this code like this:

 ![Capture6](https://d3kjluh73b9h9o.cloudfront.net/original/4X/d/7/e/d7e43ebbca262f0672bb04823c2ca51327f06f09.png)

You may need to type it out like this, **the parts highlighted in yellow must be adjusted to whatever msvc you have downloaded**

**6. save the file and restart unreal engine**. This should mean the compiler is correctly set up ready to package your game build.

---

<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:** [December 11, 2024, 8:05pm UTC](https://forums.unrealengine.com/t/packaging-error-detected-compiler-newer-than-visual-studio-2022-beginner/2174644/18 "2024-12-11T20:05:10Z")

</div>

You can find all the msvc version from this directory: `C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC`

Additional Note for those looking: to match your exact msvc(toolchain ver) for your unreal engine 5.x, go to their [version compatibility page](https://dev.epicgames.com/documentation/en-us/unreal-engine/setting-up-visual-studio-development-environment-for-cplusplus-projects-in-unreal-engine?application_version=5.2) and note down it VS 2022 Version.

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/d/8/e/d8e572479b7c83a9dd3a8a4f6a7caa6fe9987815.png)  
 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/1/a/c/1ac408dd02b4668de7b4168c556c7a6f929cff00.png)

---

<div class="post-metadata">

**Author:** ![villinx](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/villinx/32/729082_2.png) [@villinx](https://forums.unrealengine.com/u/villinx)\
**Post date:** [December 12, 2024, 3:24am UTC](https://forums.unrealengine.com/t/packaging-error-detected-compiler-newer-than-visual-studio-2022-beginner/2174644/19 "2024-12-12T03:24:31Z")

</div>

Go to this folder to view the version  
C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC

and dont use the out of support version.

i use 14.36.32532 for 5.2

---

<div class="post-metadata">

**Author:** ![villinx](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/villinx/32/729082_2.png) [@villinx](https://forums.unrealengine.com/u/villinx)\
**Post date:** [December 12, 2024, 4:22am UTC](https://forums.unrealengine.com/t/packaging-error-detected-compiler-newer-than-visual-studio-2022-beginner/2174644/20 "2024-12-12T04:22:12Z")

</div>

![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/1/0/a/10a65abf2bdb458e4f8ea939bf5bc1d669c44d33.png)  
iv download this four versions and set 14.36.32532 for packaging  
both 5.2 and 5.4 all can be packaged normally 👍

[Next page](https://forums.unrealengine.com/t/packaging-error-detected-compiler-newer-than-visual-studio-2022-beginner/2174644.md?page=2)
