# Project cannot compile during packaging - No such file or directory - but can run game and build from VS2022

**URL:** <https://forums.unrealengine.com/t/project-cannot-compile-during-packaging-no-such-file-or-directory-but-can-run-game-and-build-from-vs2022/1136290>\
**Category:** Programming & Scripting\
**Tags:** unreal-engine, question\
**Created:** [April 21, 2023, 10:49pm UTC](https://forums.unrealengine.com/t/project-cannot-compile-during-packaging-no-such-file-or-directory-but-can-run-game-and-build-from-vs2022/1136290 "2023-04-21T22:49:09Z")\
**Posts on this page:** 1\
**Showing post:** 11

<div class="post-metadata">

**Author:** ![phil123456](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@phil123456](https://forums.unrealengine.com/u/phil123456)\
**Post date:** [April 22, 2023, 8:07pm UTC](https://forums.unrealengine.com/t/project-cannot-compile-during-packaging-no-such-file-or-directory-but-can-run-game-and-build-from-vs2022/1136290/11 "2023-04-22T20:07:20Z")

</div>

arf god ■■■■ f@#king C++

also even if I run the editor from VS2022, it uses VS2019 for a toolchain

I’ll try this one [Packaging Plugin Calls Wrong Version of Visual Studio - Pipeline & Plugins / Plugins - Epic Developer Community Forums (unrealengine.com)](https://forums.unrealengine.com/t/packaging-plugin-calls-wrong-version-of-visual-studio/483625)

---

_[View the full topic](https://forums.unrealengine.com/t/project-cannot-compile-during-packaging-no-such-file-or-directory-but-can-run-game-and-build-from-vs2022/1136290)._
