error CS8652: The feature 'top-level statements' is currently in Preview and *unsupported*. To use Preview features, use the 'preview' language version

Im trying to install the dev kit of sony ps4 for unreal engine 5

I got the ue5 folder with the GenerateProjectFiles.bat file.

already installed vs2022 like this: UE 5.1 & Visual Studio 2022 installation guide | Community tutorial
i got this message:
Setting up Unreal Engine 5 project files…
Using bundled DotNet SDK
Building UnrealBuildTool…
C:\UnrealEngine-5.0\Engine\Platforms\Sony\Source\Programs\UnrealBuildTool\SonyPlatformSDK.cs(10,1): error CS8652: The feature ‘top-level statements’ is currently in Preview and unsupported. To use Preview features, use the ‘preview’ language version. [C:\UnrealEngine-5.0\Engine\Source\Programs\UnrealBuildTool\UnrealBuildTool.csproj]
C:\UnrealEngine-5.0\Engine\Platforms\Sony\Source\Programs\UnrealBuildTool\SonyProjectGenerator.cs(7,1): error CS8652: The feature ‘top-level statements’ is currently in Preview and unsupported. To use Preview features, use the ‘preview’ language version. [C:\UnrealEngine-5.0\Engine\Source\Programs\UnrealBuildTool\UnrealBuildTool.csproj]
C:\UnrealEngine-5.0\Engine\Platforms\Sony\Source\Programs\UnrealBuildTool\SonyToolChain.cs(10,1): error CS8652: The feature ‘top-level statements’ is currently in Preview and unsupported. To use Preview features, use the ‘preview’ language version. [C:\UnrealEngine-5.0\Engine\Source\Programs\UnrealBuildTool\UnrealBuildTool.csproj]
C:\UnrealEngine-5.0\Engine\Platforms\Sony\Source\Programs\UnrealBuildTool\SonyToolChain.cs(380,33): error CS8652: The feature ‘target-typed object creation’ is currently in Preview and unsupported. To use Preview features, use the ‘preview’ language version. [C:\UnrealEngine-5.0\Engine\Source\Programs\UnrealBuildTool\UnrealBuildTool.csproj]
C:\UnrealEngine-5.0\Engine\Platforms\Sony\Source\Programs\UnrealBuildTool\SonyToolChain.cs(571,36): error CS8652: The feature ‘target-typed object creation’ is currently in Preview and unsupported. To use Preview features, use the ‘preview’ language version. [C:\UnrealEngine-5.0\Engine\Source\Programs\UnrealBuildTool\UnrealBuildTool.csproj]
C:\UnrealEngine-5.0\Engine\Platforms\Sony\Source\Programs\UnrealBuildTool\UEBuildSony.cs(7,1): error CS8652: The feature ‘top-level statements’ is currently in Preview and unsupported. To use Preview features, use the ‘preview’ language version. [C:\UnrealEngine-5.0\Engine\Source\Programs\UnrealBuildTool\UnrealBuildTool.csproj]
C:\UnrealEngine-5.0\Engine\Platforms\Sony\Source\Programs\UnrealBuildTool\UEDeploySony.cs(9,1): error CS8652: The feature ‘top-level statements’ is currently in Preview and unsupported. To use Preview features, use the ‘preview’ language version. [C:\UnrealEngine-5.0\Engine\Source\Programs\UnrealBuildTool\UnrealBuildTool.csproj]

GenerateProjectFiles ERROR: UnrealBuildTool failed to compile.

Press any key to continue . . .

frustrating as hell… please help

1 Like

Did you find a solution to this error?