Hi!
I’m building UE5 project with Visual Studio 2019. I want to package a simple plugin but I got the following errors:
UATHelper: Package Plugin Task (Windows): C:/Users/SRT/Documents/Unreal/UE5_release/Engine/Source/Runtime/Core/Public\Windows/WindowsPlatformCompilerSetup.h(6,2): error: PLATFORM_WINDOWS not defined
UATHelper: Package Plugin Task (Windows): #error PLATFORM_WINDOWS not defined
UATHelper: Package Plugin Task (Windows): ^
UATHelper: Package Plugin Task (Windows): C:/Users/SRT/Documents/Unreal/UE5_release/Engine/Source/Runtime/Core/Public\Windows/WindowsPlatformCompilerSetup.h(19,15): error: use of undeclared identifier '_MSC_VER'
UATHelper: Package Plugin Task (Windows): static_assert(_MSC_VER >= 1929, "Visual Studio 2019 v16.11 or greater is required to build Unreal Engine.");
I already tried the following BuildConfiguration.xml snipped:
<?xml version="1.0" encoding="utf-8" ?>
<Configuration xmlns="https://www.unrealengine.com/BuildConfiguration">
<ProjectFileGenerator>
<Format>VisualStudio2019</Format>
</ProjectFileGenerator>
</Configuration>
What I do is click on “Edit > Plugins > MyPlugin > Package”. I notice that UE5.vcxproj has <VCProjectVersion>16.0</VCProjectVersion>
but even if i change it to 16.11 manually the issue persist.