i am trying to get html5 to package for ue4.27 but im getting an error related to hololens

1>------ Build started: Project: HoloLens.Automation, Configuration: Development Any CPU ------
1>C:\Documents\ue-4.27-html5-es3\Engine\Source\Programs\AutomationTool\HoloLens\HoloLensPlatform.Automation.cs(17,15,17,25): error CS0234: The type or namespace name ‘Management’ does not exist in the namespace ‘Windows’ (are you missing an assembly reference?)
1>C:\Documents\ue-4.27-html5-es3\Engine\Source\Programs\AutomationTool\HoloLens\HoloLensPlatform.Automation.cs(1235,24,1235,89): error CS0246: The type or namespace name ‘IAsyncOperationWithProgress<,>’ could not be found (are you missing a using directive or an assembly reference?)
1>C:\Documents\ue-4.27-html5-es3\Engine\Source\Programs\AutomationTool\HoloLens\HoloLensPlatform.Automation.cs(1235,52,1235,68): error CS0246: The type or namespace name ‘DeploymentResult’ could not be found (are you missing a using directive or an assembly reference?)
1>C:\Documents\ue-4.27-html5-es3\Engine\Source\Programs\AutomationTool\HoloLens\HoloLensPlatform.Automation.cs(1235,70,1235,88): error CS0246: The type or namespace name ‘DeploymentProgress’ could not be found (are you missing a using directive or an assembly reference?)
2>------ Build started: Project: AutomationTool, Configuration: Development Any CPU ------
2>CSC : error CS0006: Metadata file ‘C:\Documents\ue-4.27-html5-es3\Engine\Binaries\DotNET\AutomationScripts\HoloLens\HoloLens.Automation.dll’ could not be found
========== Build: 0 succeeded, 2 failed, 19 up-to-date, 0 skipped ==========
========== Build started at 2:11 PM and took 01.719 seconds ==========

this shows up when the automation tool compiles and whenever i package the project it shows up in the build log everything else built correctly

someone said on a different forum

“Confirm here as well on VS2022
Changed Win sdk from 10.0.19 to 10.0.18 and everything become fine
Also you can do it via Visual Studio Installer” when they had the same error as me but i tried that and it didnt work

Packaging game server fails using Unreal Engine source build

LogSlate: Window ‘Output Log’ being destroyed
LogSlate: Window ‘Output Log’ being destroyed
LogUObjectHash: Compacting FUObjectHashTables data took 0.28ms
UATHelper: Packaging (HTML5): Running AutomationTool…
UATHelper: Packaging (HTML5): Parsing command line: -ScriptsForProject=“C:/Users/carte/OneDrive/Documents/Unreal Projects/SideScroller2D3D/SideScroller2D3D.uproject” BuildCookRun -nocompileeditor -nop4 -project=“C:/Users/carte/OneDrive/Documents/Unreal Projects/SideScroller2D3D/SideScroller2D3D.uproject” -cook -stage -archive -archivedirectory=C:/Documents/P
ackagedUEGames -package -ue4exe=C:\Documents\ue-4.27-html5-es3\Engine\Binaries\Win64\UE4Editor-Cmd.exe -compressed -ddc=DerivedDataBackendGraph -pak -prereqs -nodebuginfo -targetplatform=HTML5 -build -clientconfig=Development -utf8output -compile
UATHelper: Packaging (HTML5): Dependencies are out of date. Compiling scripts…
UATHelper: Packaging (HTML5): C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Current\Bin\Microsoft.Common.CurrentVersion.targets(2203,5): warning MSB3245: Could not resolve this reference. Could not locate the assembly “Windows”. Check to make sure the assembly exists on disk. If this reference is required by your code, you may get c
ompilation errors. [C:\Documents\ue-4.27-html5-es3\Engine\Source\Programs\AutomationTool\HoloLens\HoloLens.Automation.csproj]
UATHelper: Packaging (HTML5): C:\Documents\ue-4.27-html5-es3\Engine\Source\Programs\AutomationTool\HoloLens\HoloLensPlatform.Automation.cs(17,15): error CS0234: The type or namespace name ‘Management’ does not exist in the namespace ‘Windows’ (are you missing an assembly reference?) [C:\Documents\ue-4.27-html5-es3\Engine\Source\Programs\AutomationTool\Holo
Lens\HoloLens.Automation.csproj]
UATHelper: Packaging (HTML5): C:\Documents\ue-4.27-html5-es3\Engine\Source\Programs\AutomationTool\HoloLens\HoloLensPlatform.Automation.cs(1235,24): error CS0246: The type or namespace name ‘IAsyncOperationWithProgress<,>’ could not be found (are you missing a using directive or an assembly reference?) [C:\Documents\ue-4.27-html5-es3\Engine\Source\Programs
\AutomationTool\HoloLens\HoloLens.Automation.csproj]
UATHelper: Packaging (HTML5): C:\Documents\ue-4.27-html5-es3\Engine\Source\Programs\AutomationTool\HoloLens\HoloLensPlatform.Automation.cs(1235,52): error CS0246: The type or namespace name ‘DeploymentResult’ could not be found (are you missing a using directive or an assembly reference?) [C:\Documents\ue-4.27-html5-es3\Engine\Source\Programs\AutomationToo
l\HoloLens\HoloLens.Automation.csproj]
UATHelper: Packaging (HTML5): C:\Documents\ue-4.27-html5-es3\Engine\Source\Programs\AutomationTool\HoloLens\HoloLensPlatform.Automation.cs(1235,70): error CS0246: The type or namespace name ‘DeploymentProgress’ could not be found (are you missing a using directive or an assembly reference?) [C:\Documents\ue-4.27-html5-es3\Engine\Source\Programs\AutomationT
ool\HoloLens\HoloLens.Automation.csproj]
UATHelper: Packaging (HTML5): Took 2.0410791s to run MSBuild.exe, ExitCode=1
UATHelper: Packaging (HTML5): ERROR: Failed to build “C:/Documents/ue-4.27-html5-es3/Engine/Programs/AutomationTool/Saved\UATTempProj.proj”:
UATHelper: Packaging (HTML5): C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Current\Bin\Microsoft.Common.CurrentVersion.targets(2203,5): warning MSB3245: Could not resolve this reference. Could not locate the assembly “Windows”. Check to make sure the assembly exists on disk. If this reference is required by your code, you may
get compilation errors. [C:\Documents\ue-4.27-html5-es3\Engine\Source\Programs\AutomationTool\HoloLens\HoloLens.Automation.csproj]
UATHelper: Packaging (HTML5): C:\Documents\ue-4.27-html5-es3\Engine\Source\Programs\AutomationTool\HoloLens\HoloLensPlatform.Automation.cs(17,15): error CS0234: The type or namespace name ‘Management’ does not exist in the namespace ‘Windows’ (are you missing an assembly reference?) [C:\Documents\ue-4.27-html5-es3\Engine\Source\Programs\AutomationTool
\HoloLens\HoloLens.Automation.csproj]
UATHelper: Packaging (HTML5): C:\Documents\ue-4.27-html5-es3\Engine\Source\Programs\AutomationTool\HoloLens\HoloLensPlatform.Automation.cs(1235,24): error CS0246: The type or namespace name ‘IAsyncOperationWithProgress<,>’ could not be found (are you missing a using directive or an assembly reference?) [C:\Documents\ue-4.27-html5-es3\Engine\Source\Pro
grams\AutomationTool\HoloLens\HoloLens.Automation.csproj]
UATHelper: Packaging (HTML5): C:\Documents\ue-4.27-html5-es3\Engine\Source\Programs\AutomationTool\HoloLens\HoloLensPlatform.Automation.cs(1235,52): error CS0246: The type or namespace name ‘DeploymentResult’ could not be found (are you missing a using directive or an assembly reference?) [C:\Documents\ue-4.27-html5-es3\Engine\Source\Programs\Automati
onTool\HoloLens\HoloLens.Automation.csproj]
UATHelper: Packaging (HTML5): C:\Documents\ue-4.27-html5-es3\Engine\Source\Programs\AutomationTool\HoloLens\HoloLensPlatform.Automation.cs(1235,70): error CS0246: The type or namespace name ‘DeploymentProgress’ could not be found (are you missing a using directive or an assembly reference?) [C:\Documents\ue-4.27-html5-es3\Engine\Source\Programs\Automa
tionTool\HoloLens\HoloLens.Automation.csproj]
UATHelper: Packaging (HTML5):
UATHelper: Packaging (HTML5): (see C:\Documents\ue-4.27-html5-es3\Engine\Programs\AutomationTool\Saved\Logs\Log.txt for full exception trace)
PackagingResults: Error: Failed to build “C:/Documents/ue-4.27-html5-es3/Engine/Programs/AutomationTool/Saved\UATTempProj.proj”:
UATHelper: Packaging (HTML5): AutomationTool exiting with ExitCode=1 (Error_Unknown)
UATHelper: Packaging (HTML5): BUILD FAILED
PackagingResults: Error: Unknown Error