DEV Community

Jung Gyuho
Jung Gyuho

Posted on • Updated on

Visual Studio 2022 에서 Win10 WDK 사용하기

Visual Studio 2019 설치
Visual Studio 2022 설치

Windows SDK 10.0.19041
Windows WDK 10.0.19041

  • Visual Studio 2019 용 WDK Extension 설치

Windows SDK 10.0.22621 ( Windows 11 SDK )
Windows WDK 10.0.22621 ( Windows 11 WDK )

  • Visual Studio 2022 용 WDK Extension 설치

그후 아래 내용을 배치파일로 생성하여 관리자 권한으로 실행

PUSHD %~dp0

CD /D C:\

if not exist "%ProgramFiles(x86)%\Windows Kits\10\DesignTime\CommonConfiguration\Neutral\WDK\10.0.19041.0\" (
    md "%ProgramFiles(x86)%\Windows Kits\10\DesignTime\CommonConfiguration\Neutral\WDK\10.0.19041.0"
    copy "%ProgramFiles(x86)%\Windows Kits\10\DesignTime\CommonConfiguration\Neutral\WDK\*.props" "%ProgramFiles(x86)%\Windows Kits\10\DesignTime\CommonConfiguration\Neutral\WDK\10.0.19041.0\"
)


if not exist "%ProgramFiles(x86)%\Windows Kits\10\build\10.0.19041.0\" (
    md "%ProgramFiles(x86)%\Windows Kits\10\build\10.0.19041.0"
    xcopy /e /y "%ProgramFiles(x86)%\Windows Kits\10\build\10.0.22621.0\*.*" "%ProgramFiles(x86)%\Windows Kits\10\build\10.0.19041.0\"
)

POPD

Enter fullscreen mode Exit fullscreen mode

Top comments (0)