Selected Visual studio is missing required components and may be not be able to build generate project
Asked Answered
I

2

5

Build a simple project of unity "hello world", Unity says me:

Selected Visual studio is missing required components and may be not be able to build generate project

¿Any idea why get this message?

enter image description here

Isomerous answered 11/2, 2020 at 16:26 Comment(0)
R
15

Give this a try:

  1. Open the Visual Studio 2017 Installer
  2. Click "Modify"
  3. Select and install the optional Package C++ Universal Windows Platform tools from Universal Windows Platform development

enter image description here

Hope this helps!

Redevelop answered 11/2, 2020 at 17:18 Comment(2)
This worked for me running Unity 2019.4.0f1 & Visual Studio 2019.Mccullum
Worked for Unity 2021.3.141f & Visual Studio 2022Oraleeoralia
T
1

I had the same problem with the new version of Visual Studio because the Universal Windows Platform tools no longer exist.

Microsoft’s shift from UWP to the Windows App SDK, which offers broader compatibility, better developer adoption, cross-platform support, and future-proofing, has introduced challenges for exporting Unity projects to UWP.

image

I had to use an older version of the Visual Studio Installer, and version 17.8 worked for me with Unity 2022.3.33 Make sure to install Desktop Development with C++ and Universal Windows Platform.

image2

Make sure you have installed the Windows SDK and manually selected the version in the build settings and prevent using the latest installed version.

image 3

image 4

Resolving Common Windows SDK Version Errors in Unity Builds

I encountered this error after building and discovered that setting the Windows SDK version manually resolved the issue.

Library\Bee\artifacts\UWPPlayerBuildProgram\AsyncPluginsFromLinker failed with output:
UnityEditor.Build.BuildFailedException: Burst compiler (1.8.15) failed running

stdout:
Starting 1 library requests
Info: LINK : fatal error LNK1181: cannot open input file 'ucrt.lib'

Error: Burst internal compiler error: Burst.Compiler.IL.Aot.AotLinkerException: Non 0 exit code | The native link step failed. Check previous exception in the log - linker command line : "H:\Program Files\VS 1.8\VC\Tools\MSVC\14.38.33130\bin\Hostx64\arm\link.exe "@C:\\Users\\MyPC\\AppData\\Local\\Temp\\tmpE483.tmp""

LINK : fatal error LNK1181: cannot open input file 'ucrt.lib'
Tribromoethanol answered 10/8 at 14:32 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.