# Problems packaging my file

**URL:** <https://forums.unrealengine.com/t/problems-packaging-my-file/2158759>\
**Category:** Debugging, Optimization, & Profiling\
**Tags:** unreal-engine, question\
**Created:** [November 29, 2024, 9:55pm UTC](https://forums.unrealengine.com/t/problems-packaging-my-file/2158759 "2024-11-29T21:55:22Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![PhantomBl8t](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@PhantomBl8t](https://forums.unrealengine.com/u/PhantomBl8t)\
**Post date:** [November 29, 2024, 9:55pm UTC](https://forums.unrealengine.com/t/problems-packaging-my-file/2158759/1 "2024-11-29T21:55:22Z")

</div>

UATHelper: Packaging (Windows): Detected compiler newer than Visual Studio 2022, please update min version checking in WindowsPlatformCompilerSetup.h  
UATHelper: Packaging (Windows): C:\epic games\UE\_5.1\Engine\Source\Runtime\Core\Public\Experimental\ConcurrentLinearAllocator.h(29): error C4668: ‘\_\_has\_feature’ is not defined as a preprocessor macro, replacing with ‘0’ for ‘#if/#elif’  
UATHelper: Packaging (Windows): C:\epic games\UE\_5.1\Engine\Source\Runtime\Core\Public\Experimental\ConcurrentLinearAllocator.h(29): error C4067: unexpected tokens following preprocessor directive - expected a newline  
UATHelper: Packaging (Windows): [205/208] Compile Module.KawaiiPhysics.cpp cancelled  
UATHelper: Packaging (Windows): [206/208] Compile Module.ACLPlugin.cpp cancelled  
UATHelper: Packaging (Windows): [207/208] Link SparkingZERO-Win64-Shipping.exe cancelled  
UATHelper: Packaging (Windows): [208/208] WriteMetadata SparkingZERO-Win64-Shipping.target cancelled  
UATHelper: Packaging (Windows): Took 84.0566344s to run dotnet.exe, ExitCode=6  
UATHelper: Packaging (Windows): UnrealBuildTool failed. See log for more details. (C:\Users\alexa\AppData\Roaming\Unreal Engine\AutomationTool\Logs\C+epic+games+UE\_5.1\UBT-SparkingZERO-Win64-Shipping.txt)  
UATHelper: Packaging (Windows): AutomationTool executed for 0h 1m 25s  
UATHelper: Packaging (Windows): AutomationTool exiting with ExitCode=6 (6)  
UATHelper: Packaging (Windows): BUILD FAILED  
PackagingResults: Error: Unknown Error

Ive been banging my ahead with this issue, i need to package content, for windows in shipping mode. But when I do I get this error. I have updated and been using visual studio 2022, I atleast think im using the correct .net sdk 3.1426 and I believe my plugins are ok.

if anyone can pls help

---

<div class="post-metadata">

**Author:** ![TrueFranco](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/truefranco/32/1095055_2.png) [@TrueFranco](https://forums.unrealengine.com/u/TrueFranco)\
**Post date:** [December 1, 2024, 2:41am UTC](https://forums.unrealengine.com/t/problems-packaging-my-file/2158759/2 "2024-12-01T02:41:28Z")

</div>

![VS2022](https://d3kjluh73b9h9o.cloudfront.net/original/4X/4/c/a/4cac506676fb4c77aa165a8814c6f96b839ea8dc.jpeg)

---

<div class="post-metadata">

**Author:** ![PhantomBl8t](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@PhantomBl8t](https://forums.unrealengine.com/u/PhantomBl8t)\
**Post date:** [December 1, 2024, 8:23pm UTC](https://forums.unrealengine.com/t/problems-packaging-my-file/2158759/3 "2024-12-01T20:23:39Z")

</div>

So youre right, I had that checked in correctly.

But when I try to build, i still get and output error. In the log I noticed this  
ATHelper: Packaging (Windows): [1/194] Compile SharedPCH.Engine.ShadowErrors.InclOrderUnreal5\_0.cpp  
UATHelper: Packaging (Windows): Detected compiler newer than Visual Studio 2022, please update min version checking in WindowsPlatformCompilerSetup.h  
UATHelper: Packaging (Windows): C:\epic games\UE\_5.1\Engine\Source\Runtime\Core\Public\Experimental\ConcurrentLinearAllocator.h(29): error C4668: ‘\_\_has\_feature’ is not defined as a preprocessor macro, replacing with ‘0’ for ‘#if/#elif’  
UATHelper: Packaging (Windows): C:\epic games\UE\_5.1\Engine\Source\Runtime\Core\Public\Experimental\ConcurrentLinearAllocator.h(29): error C4067: unexpected tokens following preprocessor directive - expected a newline  
UATHelper: Packaging (Windows): [2/194] Compile Module.ACLPlugin.cpp cancelled  
UATHelper: Packaging (Windows): [3/194] Compile Module.KawaiiPhysics.cpp cancelled  
UATHelper: Packaging (Windows): [4/194] Compile SharedPCH.Engine.InclOrderUnreal5\_0.cpp  
UATHelper: Packaging (Windows): Detected compiler newer than Visual Studio 2022, please update min version checking in WindowsPlatformCompilerSetup.h  
UATHelper: Packaging (Windows): C:\epic games\UE\_5.1\Engine\Source\Runtime\Core\Public\Experimental\ConcurrentLinearAllocator.h(29): error C4668: ‘\_\_has\_feature’ is not defined as a preprocessor macro, replacing with ‘0’ for ‘#if/#elif’  
UATHelper: Packaging (Windows): C:\epic games\UE\_5.1\Engine\Source\Runtime\Core\Public\Experimental\ConcurrentLinearAllocator.h(29): error C4067: unexpected tokens following preprocessor directive - expected a newline  
UATHelper: Packaging (Windows): [5/194] Compile Module.CriWareRuntime.7\_of\_8.cpp cancelled

I think I still did something wrong but dont know what.
