# A project is not being created in Unreal Engine 5

**URL:** <https://forums.unrealengine.com/t/a-project-is-not-being-created-in-unreal-engine-5/1158194>\
**Category:** Getting Started & Setup\
**Tags:** unreal-engine, crash, CPP, question\
**Created:** [May 7, 2023, 10:59pm UTC](https://forums.unrealengine.com/t/a-project-is-not-being-created-in-unreal-engine-5/1158194 "2023-05-07T22:59:55Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![MopKes666](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@MopKes666](https://forums.unrealengine.com/u/MopKes666)\
**Post date:** [May 7, 2023, 10:59pm UTC](https://forums.unrealengine.com/t/a-project-is-not-being-created-in-unreal-engine-5/1158194/1 "2023-05-07T22:59:55Z")

</div>

```auto

Discovering modules, targets and source code for project...
Binding IntelliSense data...
Binding IntelliSense data... 100%
Writing project files...
Available x64 toolchains (7):
 * C:\Program Files\Microsoft Visual Studio\2022\Preview\VC\Tools\MSVC\14.36.32530
    (Family=14.36.32530, FamilyRank=2, Version=14.36.32530, Is64Bit=True, Preview=True, Architecture=x64, Error=False)
 * C:\Program Files\Microsoft Visual Studio\2022\Preview\VC\Tools\MSVC\14.33.31629
    (Family=14.33.31629, FamilyRank=1, Version=14.33.31631, Is64Bit=True, Preview=True, Architecture=x64, Error=False)
 * C:\Program Files\Microsoft Visual Studio\2022\Preview\VC\Tools\MSVC\14.32.31326
    (Family=14.32.31326, FamilyRank=2, Version=14.32.31336, Is64Bit=True, Preview=True, Architecture=x64, Error=False)
 * C:\Program Files\Microsoft Visual Studio\2022\Preview\VC\Tools\MSVC\14.31.31103
    (Family=14.31.31103, FamilyRank=2, Version=14.31.31107, Is64Bit=True, Preview=True, Architecture=x64, Error=False)
 * C:\Program Files\Microsoft Visual Studio\2022\Preview\VC\Tools\MSVC\14.30.30705
    (Family=14.30.30705, FamilyRank=2, Version=14.30.30712, Is64Bit=True, Preview=True, Architecture=x64, Error=False)
 * C:\Program Files\Microsoft Visual Studio\2022\Preview\VC\Tools\MSVC\14.29.30133
    (Family=14.29.30133, FamilyRank=0, Version=14.29.30148, Is64Bit=True, Preview=True, Architecture=x64, Error=False)
 * C:\Program Files\Microsoft Visual Studio\2022\Preview\VC\Tools\MSVC\14.16.27023
    (Family=14.16.27023, FamilyRank=2, Version=14.16.27049, Is64Bit=True, Preview=True, Architecture=x64, Error=True)
Writing project files... 0%
Unable to find valid latest C++ toolchain for VisualStudio2022 x64

```

How to fix the error?

---

<div class="post-metadata">

**Author:** ![FrostyJas](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/frostyjas/32/1194640_2.png) [@FrostyJas](https://forums.unrealengine.com/u/FrostyJas)\
**Post date:** [May 8, 2023, 6:07am UTC](https://forums.unrealengine.com/t/a-project-is-not-being-created-in-unreal-engine-5/1158194/2 "2023-05-08T06:07:13Z")

</div>

Greetings @MopKes666

Welcome to the forums! I saw this issue in another post earlier this year and the poster seemed to find a solution for what was causing the problem. Here’s the [link](https://forums.unrealengine.com/t/toolchain-error-generating-project-files-for-vs-2022-ue-5-1/750069) to that thread. I hope it’s helpful!

---

<div class="post-metadata">

**Author:** ![Vlady\_Veselinov](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/vlady_veselinov/32/621446_2.png) [@Vlady\_Veselinov](https://forums.unrealengine.com/u/Vlady_Veselinov)\
**Post date:** [June 11, 2023, 11:16am UTC](https://forums.unrealengine.com/t/a-project-is-not-being-created-in-unreal-engine-5/1158194/3 "2023-06-11T11:16:22Z")

</div>

Hey folks, this issue is still happening in 5.2. For me it happens when creating a new C++ project from scratch. You can see it finds a 14.30 version but still fails.

```auto
Generating VisualStudio2022 project files:
Discovering modules, targets and source code for project...
...
 * C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.30.30705
    (Family=14.30.30705, FamilyRank=2, Version=14.30.30712, Is64Bit=True, Preview=False, Architecture=x64, Error=False)
Unable to find valid 14.30 toolchain for VisualStudio2022 x64

```

I made sure that the correct versions are installed in Visual Studio Installer

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/a/3/3/a3340ba786adfa85cfe16298317b56993e9fc042.png)

@FrostyJas I see there’s [another thread](https://forums.unrealengine.com/t/toolchain-error-generating-project-files-for-vs-2022-ue-5-1/750069/3) that suggest editing a source file, but that didn’t work for me.

Does anyone see a simpler fix?

---

<div class="post-metadata">

**Author:** ![rafoudiablol](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@rafoudiablol](https://forums.unrealengine.com/u/rafoudiablol)\
**Post date:** [June 11, 2023, 2:43pm UTC](https://forums.unrealengine.com/t/a-project-is-not-being-created-in-unreal-engine-5/1158194/4 "2023-06-11T14:43:45Z")

</div>

I have sort of the [exact same problem](https://forums.unrealengine.com/t/unable-to-find-valid-toolchain-for-visualstudio2022-but-installed/1194105/4) with 14.32, Unreal detects 14.32 but refuses to use it. And it doesn’t want to use other versions if not installed.

If that can help, the error is line 551 of MicrosoftPlatformSDK.cs:

```auto
else if (VersionNumber.TryParse(CompilerVersion, out VersionNumber? ToolChainVersion))
{
	ToolChain = SelectToolChain(ToolChains, x => x.ThenByDescending(x => x.Version == ToolChainVersion).ThenByDescending(x => x.Family == ToolChainVersion), Architecture);
	if (ToolChain == null || !(ToolChain.Version == ToolChainVersion || ToolChain.Family == ToolChainVersion))
	{
		DumpToolChains(ToolChains, x => x.ThenByDescending(x => x.Version == ToolChainVersion).ThenByDescending(x => x.Family == ToolChainVersion), Architecture, Logger);
		throw new BuildException("Unable to find valid {0} toolchain for {1} {2}", ToolChainVersion, Compiler, Architecture.ToString());
	}
}

```

---

<div class="post-metadata">

**Author:** ![rafoudiablol](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@rafoudiablol](https://forums.unrealengine.com/u/rafoudiablol)\
**Post date:** [June 11, 2023, 3:24pm UTC](https://forums.unrealengine.com/t/a-project-is-not-being-created-in-unreal-engine-5/1158194/5 "2023-06-11T15:24:04Z")

</div>

Ok I have resolved my problem, maybe it will work for you too:

1. Find your **BuildConfiguration.xml** like described on this[stackoverflow answer](https://stackoverflow.com/a/75225318).
2. Delete it

Thats it it have worked for me.  
It was because the preferred version was defined due to a previous UE install, so maybe Unreal Engine in this case try not other versions.

---

<div class="post-metadata">

**Author:** ![Vlady\_Veselinov](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/vlady_veselinov/32/621446_2.png) [@Vlady\_Veselinov](https://forums.unrealengine.com/u/Vlady_Veselinov)\
**Post date:** [June 12, 2023, 9:43pm UTC](https://forums.unrealengine.com/t/a-project-is-not-being-created-in-unreal-engine-5/1158194/6 "2023-06-12T21:43:43Z")

</div>

Good shout, I managed to fix mine by deleting `C:\Users\user\AppData\Roaming\Unreal Engine\UnrealBuildTool\BuildConfiguration.xml`
