Unreal Engine version 4.27.2, I get an error when trying to package any project

I get an error when trying to package any project, even if it is empty.

I used the version of Visual Studio 2022 With Unreal Engine 4.27.1 and everything worked fine, now does not want to package any project with the new version of Unreal Engine 4.27.2.

I an using:
Visual Studio 2022 (17.0.4)
Windows 10
UE 4.27.2 Building from Source

UATHelper: Packaging (Windows (64-bit)): Parsing command line: -ScriptsForProject=C:/AAA/MyProject2/MyProject2.uproject BuildCookRun -nocompileeditor -nop4 -project=C:/AAA/MyProject2/MyProject2.uproject -cook -stage -archive -archivedirectory=C:/Users/Samuel/Desktop -package -ue4exe=C:\UnrealEngine\Engine\Binaries\Win64\UE4Editor-Cmd.exe -compressed -ddc=Der
ivedDataBackendGraph -pak -prereqs -nodebuginfo -targetplatform=Win64 -build -clientconfig=Development -utf8output -compile
UATHelper: Packaging (Windows (64-bit)): Dependencies are out of date. Compiling scripts....
UATHelper: Packaging (Windows (64-bit)):   BuildCMakeLib.Automation.cs(45,54): error CS1002: ; expected [C:\UnrealEngine\Engine\Source\Programs\AutomationTool\Scripts\AutomationScripts.Automation.csproj]
UATHelper: Packaging (Windows (64-bit)):   BuildCMakeLib.Automation.cs(45,87): error CS1519: Invalid token '(' in class, struct, or interface member declaration [C:\UnrealEngine\Engine\Source\Programs\AutomationTool\Scripts\AutomationScripts.Automation.csproj]
UATHelper: Packaging (Windows (64-bit)):   BuildCMakeLib.Automation.cs(51,57): error CS1002: ; expected [C:\UnrealEngine\Engine\Source\Programs\AutomationTool\Scripts\AutomationScripts.Automation.csproj]
UATHelper: Packaging (Windows (64-bit)):   BuildCMakeLib.Automation.cs(51,90): error CS1519: Invalid token '(' in class, struct, or interface member declaration [C:\UnrealEngine\Engine\Source\Programs\AutomationTool\Scripts\AutomationScripts.Automation.csproj]
UATHelper: Packaging (Windows (64-bit)):   BuildCMakeLib.Automation.cs(71,37): error CS1002: ; expected [C:\UnrealEngine\Engine\Source\Programs\AutomationTool\Scripts\AutomationScripts.Automation.csproj]
UATHelper: Packaging (Windows (64-bit)):   BuildCMakeLib.Automation.cs(71,44): error CS1519: Invalid token ';' in class, struct, or interface member declaration [C:\UnrealEngine\Engine\Source\Programs\AutomationTool\Scripts\AutomationScripts.Automation.csproj]
UATHelper: Packaging (Windows (64-bit)):   BuildCMakeLib.Automation.cs(92,49): error CS1002: ; expected [C:\UnrealEngine\Engine\Source\Programs\AutomationTool\Scripts\AutomationScripts.Automation.csproj]
UATHelper: Packaging (Windows (64-bit)):   BuildCMakeLib.Automation.cs(93,46): error CS1001: Identifier expected [C:\UnrealEngine\Engine\Source\Programs\AutomationTool\Scripts\AutomationScripts.Automation.csproj]
UATHelper: Packaging (Windows (64-bit)):   BuildCMakeLib.Automation.cs(93,48): error CS1031: Type expected [C:\UnrealEngine\Engine\Source\Programs\AutomationTool\Scripts\AutomationScripts.Automation.csproj]
UATHelper: Packaging (Windows (64-bit)):   BuildCMakeLib.Automation.cs(93,88): error CS1519: Invalid token '(' in class, struct, or interface member declaration [C:\UnrealEngine\Engine\Source\Programs\AutomationTool\Scripts\AutomationScripts.Automation.csproj]
UATHelper: Packaging (Windows (64-bit)):   BuildCMakeLib.Automation.cs(94,32): error CS1519: Invalid token '(' in class, struct, or interface member declaration [C:\UnrealEngine\Engine\Source\Programs\AutomationTool\Scripts\AutomationScripts.Automation.csproj]
UATHelper: Packaging (Windows (64-bit)):   BuildCMakeLib.Automation.cs(94,46): error CS1519: Invalid token ',' in class, struct, or interface member declaration [C:\UnrealEngine\Engine\Source\Programs\AutomationTool\Scripts\AutomationScripts.Automation.csproj]
UATHelper: Packaging (Windows (64-bit)):   BuildCMakeLib.Automation.cs(152,102): error CS1002: ; expected [C:\UnrealEngine\Engine\Source\Programs\AutomationTool\Scripts\AutomationScripts.Automation.csproj]
UATHelper: Packaging (Windows (64-bit)):   BuildCMakeLib.Automation.cs(153,30): error CS1519: Invalid token '(' in class, struct, or interface member declaration [C:\UnrealEngine\Engine\Source\Programs\AutomationTool\Scripts\AutomationScripts.Automation.csproj]
UATHelper: Packaging (Windows (64-bit)):   BuildCMakeLib.Automation.cs(153,31): error CS1520: Method must have a return type [C:\UnrealEngine\Engine\Source\Programs\AutomationTool\Scripts\AutomationScripts.Automation.csproj]
UATHelper: Packaging (Windows (64-bit)):   BuildCMakeLib.Automation.cs(153,66): error CS1001: Identifier expected [C:\UnrealEngine\Engine\Source\Programs\AutomationTool\Scripts\AutomationScripts.Automation.csproj]
UATHelper: Packaging (Windows (64-bit)):   BuildCMakeLib.Automation.cs(153,67): error CS1002: ; expected [C:\UnrealEngine\Engine\Source\Programs\AutomationTool\Scripts\AutomationScripts.Automation.csproj]
UATHelper: Packaging (Windows (64-bit)):   BuildCMakeLib.Automation.cs(154,27): error CS1519: Invalid token '""' in class, struct, or interface member declaration [C:\UnrealEngine\Engine\Source\Programs\AutomationTool\Scripts\AutomationScripts.Automation.csproj]
UATHelper: Packaging (Windows (64-bit)):   BuildCMakeLib.Automation.cs(154,51): error CS1519: Invalid token ',' in class, struct, or interface member declaration [C:\UnrealEngine\Engine\Source\Programs\AutomationTool\Scripts\AutomationScripts.Automation.csproj]
UATHelper: Packaging (Windows (64-bit)):   BuildCMakeLib.Automation.cs(155,31): error CS1519: Invalid token '??' in class, struct, or interface member declaration [C:\UnrealEngine\Engine\Source\Programs\AutomationTool\Scripts\AutomationScripts.Automation.csproj]
UATHelper: Packaging (Windows (64-bit)):   BuildCMakeLib.Automation.cs(156,41): error CS1002: ; expected [C:\UnrealEngine\Engine\Source\Programs\AutomationTool\Scripts\AutomationScripts.Automation.csproj]
UATHelper: Packaging (Windows (64-bit)):   BuildCMakeLib.Automation.cs(156,50): error CS1519: Invalid token '[' in class, struct, or interface member declaration [C:\UnrealEngine\Engine\Source\Programs\AutomationTool\Scripts\AutomationScripts.Automation.csproj]
UATHelper: Packaging (Windows (64-bit)):   BuildCMakeLib.Automation.cs(156,72): error CS1031: Type expected [C:\UnrealEngine\Engine\Source\Programs\AutomationTool\Scripts\AutomationScripts.Automation.csproj]
UATHelper: Packaging (Windows (64-bit)):   BuildCMakeLib.Automation.cs(156,72): error CS1519: Invalid token ':' in class, struct, or interface member declaration [C:\UnrealEngine\Engine\Source\Programs\AutomationTool\Scripts\AutomationScripts.Automation.csproj]
UATHelper: Packaging (Windows (64-bit)):   BuildCMakeLib.Automation.cs(206,51): error CS1002: ; expected [C:\UnrealEngine\Engine\Source\Programs\AutomationTool\Scripts\AutomationScripts.Automation.csproj]
UATHelper: Packaging (Windows (64-bit)):   BuildCMakeLib.Automation.cs(207,38): error CS1002: ; expected [C:\UnrealEngine\Engine\Source\Programs\AutomationTool\Scripts\AutomationScripts.Automation.csproj]
UATHelper: Packaging (Windows (64-bit)):   BuildCMakeLib.Automation.cs(207,58): error CS1519: Invalid token '(' in class, struct, or interface member declaration [C:\UnrealEngine\Engine\Source\Programs\AutomationTool\Scripts\AutomationScripts.Automation.csproj]
UATHelper: Packaging (Windows (64-bit)):   BuildCMakeLib.Automation.cs(209,38): error CS1002: ; expected [C:\UnrealEngine\Engine\Source\Programs\AutomationTool\Scripts\AutomationScripts.Automation.csproj]
UATHelper: Packaging (Windows (64-bit)):   BuildCMakeLib.Automation.cs(209,85): error CS1519: Invalid token '(' in class, struct, or interface member declaration [C:\UnrealEngine\Engine\Source\Programs\AutomationTool\Scripts\AutomationScripts.Automation.csproj]
UATHelper: Packaging (Windows (64-bit)):   BuildCMakeLib.Automation.cs(209,113): error CS1519: Invalid token ')' in class, struct, or interface member declaration [C:\UnrealEngine\Engine\Source\Programs\AutomationTool\Scripts\AutomationScripts.Automation.csproj]
UATHelper: Packaging (Windows (64-bit)):   BuildCMakeLib.Automation.cs(210,27): error CS1519: Invalid token '(' in class, struct, or interface member declaration [C:\UnrealEngine\Engine\Source\Programs\AutomationTool\Scripts\AutomationScripts.Automation.csproj]
UATHelper: Packaging (Windows (64-bit)):   BuildCMakeLib.Automation.cs(210,46): error CS1519: Invalid token ',' in class, struct, or interface member declaration [C:\UnrealEngine\Engine\Source\Programs\AutomationTool\Scripts\AutomationScripts.Automation.csproj]
UATHelper: Packaging (Windows (64-bit)):   BuildCMakeLib.Automation.cs(211,4): error CS1519: Invalid token ':' in class, struct, or interface member declaration [C:\UnrealEngine\Engine\Source\Programs\AutomationTool\Scripts\AutomationScripts.Automation.csproj]
UATHelper: Packaging (Windows (64-bit)):   BuildCMakeLib.Automation.cs(211,27): error CS1519: Invalid token '(' in class, struct, or interface member declaration [C:\UnrealEngine\Engine\Source\Programs\AutomationTool\Scripts\AutomationScripts.Automation.csproj]
UATHelper: Packaging (Windows (64-bit)):   BuildCMakeLib.Automation.cs(211,46): error CS1519: Invalid token ',' in class, struct, or interface member declaration [C:\UnrealEngine\Engine\Source\Programs\AutomationTool\Scripts\AutomationScripts.Automation.csproj]
UATHelper: Packaging (Windows (64-bit)):   BuildCMakeLib.Automation.cs(211,72): error CS1519: Invalid token ';' in class, struct, or interface member declaration [C:\UnrealEngine\Engine\Source\Programs\AutomationTool\Scripts\AutomationScripts.Automation.csproj]
UATHelper: Packaging (Windows (64-bit)):   BuildCMakeLib.Automation.cs(213,37): error CS1002: ; expected [C:\UnrealEngine\Engine\Source\Programs\AutomationTool\Scripts\AutomationScripts.Automation.csproj]
UATHelper: Packaging (Windows (64-bit)):   BuildCMakeLib.Automation.cs(213,84): error CS1519: Invalid token '(' in class, struct, or interface member declaration [C:\UnrealEngine\Engine\Source\Programs\AutomationTool\Scripts\AutomationScripts.Automation.csproj]
UATHelper: Packaging (Windows (64-bit)):   BuildCMakeLib.Automation.cs(213,112): error CS1519: Invalid token ')' in class, struct, or interface member declaration [C:\UnrealEngine\Engine\Source\Programs\AutomationTool\Scripts\AutomationScripts.Automation.csproj]
UATHelper: Packaging (Windows (64-bit)):   BuildCMakeLib.Automation.cs(214,27): error CS1519: Invalid token '(' in class, struct, or interface member declaration [C:\UnrealEngine\Engine\Source\Programs\AutomationTool\Scripts\AutomationScripts.Automation.csproj]
UATHelper: Packaging (Windows (64-bit)):   BuildCMakeLib.Automation.cs(214,45): error CS1519: Invalid token ',' in class, struct, or interface member declaration [C:\UnrealEngine\Engine\Source\Programs\AutomationTool\Scripts\AutomationScripts.Automation.csproj]
UATHelper: Packaging (Windows (64-bit)):   BuildCMakeLib.Automation.cs(215,4): error CS1519: Invalid token ':' in class, struct, or interface member declaration [C:\UnrealEngine\Engine\Source\Programs\AutomationTool\Scripts\AutomationScripts.Automation.csproj]
UATHelper: Packaging (Windows (64-bit)):   BuildCMakeLib.Automation.cs(215,27): error CS1519: Invalid token '(' in class, struct, or interface member declaration [C:\UnrealEngine\Engine\Source\Programs\AutomationTool\Scripts\AutomationScripts.Automation.csproj]
UATHelper: Packaging (Windows (64-bit)):   BuildCMakeLib.Automation.cs(215,45): error CS1519: Invalid token ',' in class, struct, or interface member declaration [C:\UnrealEngine\Engine\Source\Programs\AutomationTool\Scripts\AutomationScripts.Automation.csproj]
UATHelper: Packaging (Windows (64-bit)):   BuildCMakeLib.Automation.cs(215,70): error CS1519: Invalid token ';' in class, struct, or interface member declaration [C:\UnrealEngine\Engine\Source\Programs\AutomationTool\Scripts\AutomationScripts.Automation.csproj]
UATHelper: Packaging (Windows (64-bit)):   BuildCMakeLib.Automation.cs(219,91): error CS1002: ; expected [C:\UnrealEngine\Engine\Source\Programs\AutomationTool\Scripts\AutomationScripts.Automation.csproj]
UATHelper: Packaging (Windows (64-bit)):   BuildCMakeLib.Automation.cs(219,107): error CS1519: Invalid token '+' in class, struct, or interface member declaration [C:\UnrealEngine\Engine\Source\Programs\AutomationTool\Scripts\AutomationScripts.Automation.csproj]
UATHelper: Packaging (Windows (64-bit)):   BuildCMakeLib.Automation.cs(221,102): error CS1002: ; expected [C:\UnrealEngine\Engine\Source\Programs\AutomationTool\Scripts\AutomationScripts.Automation.csproj]
UATHelper: Packaging (Windows (64-bit)):   BuildCMakeLib.Automation.cs(221,145): error CS1519: Invalid token ';' in class, struct, or interface member declaration [C:\UnrealEngine\Engine\Source\Programs\AutomationTool\Scripts\AutomationScripts.Automation.csproj]
UATHelper: Packaging (Windows (64-bit)):   BuildCMakeLib.Automation.cs(358,49): error CS1002: ; expected [C:\UnrealEngine\Engine\Source\Programs\AutomationTool\Scripts\AutomationScripts.Automation.csproj]
UATHelper: Packaging (Windows (64-bit)):   BuildCMakeLib.Automation.cs(360,45): error CS1002: ; expected [C:\UnrealEngine\Engine\Source\Programs\AutomationTool\Scripts\AutomationScripts.Automation.csproj]
UATHelper: Packaging (Windows (64-bit)):   BuildCMakeLib.Automation.cs(392,37): error CS1002: ; expected [C:\UnrealEngine\Engine\Source\Programs\AutomationTool\Scripts\AutomationScripts.Automation.csproj]
UATHelper: Packaging (Windows (64-bit)):   BuildCMakeLib.Automation.cs(392,74): error CS1519: Invalid token ';' in class, struct, or interface member declaration [C:\UnrealEngine\Engine\Source\Programs\AutomationTool\Scripts\AutomationScripts.Automation.csproj]
UATHelper: Packaging (Windows (64-bit)):   BuildCMakeLib.Automation.cs(394,49): error CS1002: ; expected [C:\UnrealEngine\Engine\Source\Programs\AutomationTool\Scripts\AutomationScripts.Automation.csproj]
UATHelper: Packaging (Windows (64-bit)):   BuildCMakeLib.Automation.cs(396,45): error CS1002: ; expected [C:\UnrealEngine\Engine\Source\Programs\AutomationTool\Scripts\AutomationScripts.Automation.csproj]
....
UATHelper: Packaging (Windows (64-bit)):        BuildPhysX.Automation.cs(1153,48): error CS1002: ; expected [C:\UnrealEngine\Engine\Source\Programs\AutomationTool\Scripts\AutomationScripts.Automation.csproj]
UATHelper: Packaging (Windows (64-bit)):        BuildPhysX.Automation.cs(1154,43): error CS1002: ; expected [C:\UnrealEngine\Engine\Source\Programs\AutomationTool\Scripts\AutomationScripts.Automation.csproj]
UATHelper: Packaging (Windows (64-bit)):        BuildPhysX.Automation.cs(1155,40): error CS1002: ; expected [C:\UnrealEngine\Engine\Source\Programs\AutomationTool\Scripts\AutomationScripts.Automation.csproj]
UATHelper: Packaging (Windows (64-bit)):        BuildPhysX.Automation.cs(1156,45): error CS1002: ; expected [C:\UnrealEngine\Engine\Source\Programs\AutomationTool\Scripts\AutomationScripts.Automation.csproj]
UATHelper: Packaging (Windows (64-bit)):        BuildPhysX.Automation.cs(1200,48): error CS1002: ; expected [C:\UnrealEngine\Engine\Source\Programs\AutomationTool\Scripts\AutomationScripts.Automation.csproj]
UATHelper: Packaging (Windows (64-bit)):        BuildPhysX.Automation.cs(1200,75): error CS1519: Invalid token ';' in class, struct, or interface member declaration [C:\UnrealEngine\Engine\Source\Programs\AutomationTool\Scripts\AutomationScripts.Automation.csproj]
UATHelper: Packaging (Windows (64-bit)):        BuildPhysX.Automation.cs(1201,35): error CS1002: ; expected [C:\UnrealEngine\Engine\Source\Programs\AutomationTool\Scripts\AutomationScripts.Automation.csproj]
UATHelper: Packaging (Windows (64-bit)):        BuildPhysX.Automation.cs(1202,48): error CS1002: ; expected [C:\UnrealEngine\Engine\Source\Programs\AutomationTool\Scripts\AutomationScripts.Automation.csproj]
UATHelper: Packaging (Windows (64-bit)):        BuildPhysX.Automation.cs(1203,49): error CS1002: ; expected [C:\UnrealEngine\Engine\Source\Programs\AutomationTool\Scripts\AutomationScripts.Automation.csproj]
UATHelper: Packaging (Windows (64-bit)):        BuildPhysX.Automation.cs(1204,48): error CS1002: ; expected [C:\UnrealEngine\Engine\Source\Programs\AutomationTool\Scripts\AutomationScripts.Automation.csproj]
UATHelper: Packaging (Windows (64-bit)):        BuildPhysX.Automation.cs(1205,43): error CS1002: ; expected [C:\UnrealEngine\Engine\Source\Programs\AutomationTool\Scripts\AutomationScripts.Automation.csproj]
UATHelper: Packaging (Windows (64-bit)):        BuildPhysX.Automation.cs(1206,40): error CS1002: ; expected [C:\UnrealEngine\Engine\Source\Programs\AutomationTool\Scripts\AutomationScripts.Automation.csproj]
UATHelper: Packaging (Windows (64-bit)):        BuildPhysX.Automation.cs(1207,45): error CS1002: ; expected [C:\UnrealEngine\Engine\Source\Programs\AutomationTool\Scripts\AutomationScripts.Automation.csproj]
UATHelper: Packaging (Windows (64-bit)):        BuildPhysX.Automation.cs(1209,48): error CS1002: ; expected [C:\UnrealEngine\Engine\Source\Programs\AutomationTool\Scripts\AutomationScripts.Automation.csproj]
UATHelper: Packaging (Windows (64-bit)):        BuildPhysX.Automation.cs(1211,44): error CS1002: ; expected [C:\UnrealEngine\Engine\Source\Programs\AutomationTool\Scripts\AutomationScripts.Automation.csproj]
UATHelper: Packaging (Windows (64-bit)):        BuildPhysX.Automation.cs(1211,74): error CS1519: Invalid token ';' in class, struct, or interface member declaration [C:\UnrealEngine\Engine\Source\Programs\AutomationTool\Scripts\AutomationScripts.Automation.csproj]
UATHelper: Packaging (Windows (64-bit)):        BuildPhysX.Automation.cs(1318,48): error CS1002: ; expected [C:\UnrealEngine\Engine\Source\Programs\AutomationTool\Scripts\AutomationScripts.Automation.csproj]
UATHelper: Packaging (Windows (64-bit)):        BuildPhysX.Automation.cs(1318,76): error CS1519: Invalid token ';' in class, struct, or interface member declaration [C:\UnrealEngine\Engine\Source\Programs\AutomationTool\Scripts\AutomationScripts.Automation.csproj]
UATHelper: Packaging (Windows (64-bit)):        BuildPhysX.Automation.cs(1319,35): error CS1002: ; expected [C:\UnrealEngine\Engine\Source\Programs\AutomationTool\Scripts\AutomationScripts.Automation.csproj]
UATHelper: Packaging (Windows (64-bit)):        BuildPhysX.Automation.cs(1320,48): error CS1002: ; expected [C:\UnrealEngine\Engine\Source\Programs\AutomationTool\Scripts\AutomationScripts.Automation.csproj]
UATHelper: Packaging (Windows (64-bit)):        BuildPhysX.Automation.cs(1321,49): error CS1002: ; expected [C:\UnrealEngine\Engine\Source\Programs\AutomationTool\Scripts\AutomationScripts.Automation.csproj]
UATHelper: Packaging (Windows (64-bit)):        BuildPhysX.Automation.cs(1322,48): error CS1002: ; expected [C:\UnrealEngine\Engine\Source\Programs\AutomationTool\Scripts\AutomationScripts.Automation.csproj]
UATHelper: Packaging (Windows (64-bit)):        BuildPhysX.Automation.cs(1323,43): error CS1002: ; expected [C:\UnrealEngine\Engine\Source\Programs\AutomationTool\Scripts\AutomationScripts.Automation.csproj]
UATHelper: Packaging (Windows (64-bit)):        BuildPhysX.Automation.cs(1324,40): error CS1002: ; expected [C:\UnrealEngine\Engine\Source\Programs\AutomationTool\Scripts\AutomationScripts.Automation.csproj]
UATHelper: Packaging (Windows (64-bit)):        BuildPhysX.Automation.cs(1325,45): error CS1002: ; expected [C:\UnrealEngine\Engine\Source\Programs\AutomationTool\Scripts\AutomationScripts.Automation.csproj]
UATHelper: Packaging (Windows (64-bit)):        BuildPhysX.Automation.cs(1345,51): error CS1002: ; expected [C:\UnrealEngine\Engine\Source\Programs\AutomationTool\Scripts\AutomationScripts.Automation.csproj]
UATHelper: Packaging (Windows (64-bit)):        BuildPhysX.Automation.cs(1345,66): error CS1519: Invalid token ';' in class, struct, or interface member declaration [C:\UnrealEngine\Engine\Source\Programs\AutomationTool\Scripts\AutomationScripts.Automation.csproj]
UATHelper: Packaging (Windows (64-bit)):        BuildPhysX.Automation.cs(1346,45): error CS1002: ; expected [C:\UnrealEngine\Engine\Source\Programs\AutomationTool\Scripts\AutomationScripts.Automation.csproj]
UATHelper: Packaging (Windows (64-bit)):        BuildPhysX.Automation.cs(1347,35): error CS1002: ; expected [C:\UnrealEngine\Engine\Source\Programs\AutomationTool\Scripts\AutomationScripts.Automation.csproj]
....
UATHelper: Packaging (Windows (64-bit)):        SyncBinariesFromUGS.Automation.cs(289,3): error CS0116: A namespace cannot directly contain members such as fields or methods [C:\UnrealEngine\Engine\Source\Programs\AutomationTool\Scripts\AutomationScripts.Automation.csproj]
UATHelper: Packaging (Windows (64-bit)):        SyncBinariesFromUGS.Automation.cs(293,2): error CS1022: Type or namespace definition, or end-of-file expected [C:\UnrealEngine\Engine\Source\Programs\AutomationTool\Scripts\AutomationScripts.Automation.csproj]
UATHelper: Packaging (Windows (64-bit)):        Tasks\ModifyJsonValue.cs(73,51): error CS1525: Invalid expression term 'object' [C:\UnrealEngine\Engine\Source\Programs\AutomationTool\BuildGraph\BuildGraph.Automation.csproj]
UATHelper: Packaging (Windows (64-bit)):        Tasks\ModifyJsonValue.cs(73,59): error CS1002: ; expected [C:\UnrealEngine\Engine\Source\Programs\AutomationTool\BuildGraph\BuildGraph.Automation.csproj]
UATHelper: Packaging (Windows (64-bit)):        Tasks\ModifyJsonValue.cs(73,59): error CS1525: Invalid expression term ')' [C:\UnrealEngine\Engine\Source\Programs\AutomationTool\BuildGraph\BuildGraph.Automation.csproj]
UATHelper: Packaging (Windows (64-bit)):        Tasks\ModifyJsonValue.cs(73,60): error CS1002: ; expected [C:\UnrealEngine\Engine\Source\Programs\AutomationTool\BuildGraph\BuildGraph.Automation.csproj]
UATHelper: Packaging (Windows (64-bit)):        Tasks\ModifyJsonValue.cs(73,60): error CS1525: Invalid expression term ')' [C:\UnrealEngine\Engine\Source\Programs\AutomationTool\BuildGraph\BuildGraph.Automation.csproj]
UATHelper: Packaging (Windows (64-bit)):        Tasks\ModifyJsonValue.cs(73,61): error CS1002: ; expected [C:\UnrealEngine\Engine\Source\Programs\AutomationTool\BuildGraph\BuildGraph.Automation.csproj]
UATHelper: Packaging (Windows (64-bit)):        
UATHelper: Packaging (Windows (64-bit)):        (see C:\UnrealEngine\Engine\Programs\AutomationTool\Saved\Logs\Log.txt for full exception trace)
UATHelper: Packaging (Windows (64-bit)): AutomationTool exiting with ExitCode=1 (Error_Unknown)
UATHelper: Packaging (Windows (64-bit)): BUILD FAILED
PackagingResults: Error: Unknown Error
3 Likes

Same issue on my side. No chance to fix it yet, continue research

Hey team!

Can you please advise if you have full support of VS 2022 for 4.27 version?

Thanks

Apparently the AutomationTool program had to be compiled, after compiling UE.

It works perfectly for me.

17 Likes

Same for me. But i had to rebuild.

2 Likes

Same for me too. In Visual Studio 2022, I just right clicked the AutomationTool listing in the Programs folder and selected Rebuild. Now I have no more packaging errors due to UAT launching.

Thank you all!

3 Likes

Thank you! Specifically I had to do a ā€œRebuildā€ on AutomationTool after building the engine. Not sure why, hopefully this gets ironed out in future versions of the engine.

1 Like

Yep, I got this error as well. I can confirm that when you find the AutomationTool program and select ā€œRebuildā€ (NOT build), it works afterwards.
Iā€™m also using Visual Studio 2022 and UE4.27;

3 Likes

Thank You!
Rebuild of AutomationTool solved the issue.

This should be marked as the solution. This worked for me. Thank you!

Absolute f****ng legend. Thanks for that mate

@Unit_Seven that worked for me 2

Confirm here as well on VS2022.
Rebuild AutomationTool.

Thanks, everyone!

I ran into this too while running UpdateLocalVersion via UAT

I was getting obscure errors with ā€˜objectā€™ not being defined, toolsversion being 12.0, and langversion:6 being undefined - but only after uninstalling VS2019.

The rebuild of AutomationTool worked around this, but not when running via TeamCity. I updated projects to the correct toolsversion, but the errors kept coming. It also seems to work fine when running in the debugger - just not via the RunUAT bat file.

I ended up re-installing VS2019 on the build machines (just the C++ and .NET desktop workflows) and now everything works as expected.

ā†’ there is a hidden dependency on VS2019 somewhere and Iā€™ll get back to you if I ever find it.

Cheers
John

As far as I can tell, installing Visual Studio 2019 with no workloads and the single component of ā€˜C# and Visual Basic Roslyn Compilersā€™ does the trick

Cheers
John

thank you!

thank you!
worked also for me (rebuild not build) on Visual Studio 2022

Not working on Source version from GitHub

Try rebuild as commented above

1 Like

I already did, this error persists, I am now trying to recompile the entire engine from the root sln project including all descendants.