WSL-DistroLauncher icon indicating copy to clipboard operation
WSL-DistroLauncher copied to clipboard

wslapi.h not found

Open nandesu opened this issue 5 years ago • 1 comments

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.

nandesu avatar Oct 15 '19 22:10 nandesu

Update Windows SDK to latest version.

Biswa96 avatar Oct 16 '19 03:10 Biswa96

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

jonathanlyonmoore avatar Oct 13 '20 20:10 jonathanlyonmoore

Make sure the UWP is installed.

jonathanlyonmoore avatar Oct 13 '20 21:10 jonathanlyonmoore