WSL-DistroLauncher
WSL-DistroLauncher copied to clipboard
wslapi.h not found
Greetings Team,
Seems I'm missing a library package somewhere, but not finding much online about where to get this header file.
Severity Code Description Project File Line Suppression State Suppression State Error C1083 Cannot open include file: 'wslapi.h': No such file or directory C:\Users\nandesu\source\repos\WSL-DistroLauncher\DistroLauncher\DistroLauncher.vcxproj C:\Users\nandesu\source\repos\WSL-DistroLauncher\DistroLauncher\stdafx.h 27
Any assistance is greatly appreciated.
Update Windows SDK to latest version.
You should install the 2019 build tools that fixed your error but I'm still geeting one error
C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\MSBuild\Microsoft\VC\v160\Microsoft.CppCommon.targets( 2354,3): error MSB4019: The imported project "C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\MSBuild\Mi crosoft\WindowsXaml\v16.0\Microsoft.Windows.UI.Xaml.Cpp.targets" was not found. Confirm that the expression in the Impo rt declaration "C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\MSBuild\Microsoft\WindowsXaml\v16.0\Micr osoft.Windows.UI.Xaml.Cpp.targets" is correct, and that the file exists on disk
Make sure the UWP is installed.