Kernel mode driver fails on VS2022 image

Li's Avatar

Li

27 Sep, 2024 08:27 PM

Hello,

I was going to build a Kernel mode driver project on AppVeyor VS2022 image.
It was built well about 20 days ago. But now it is not.
Seems like the WDK and SDK in the image were automatically updated recently.
I tried to build a Microsoft sample Kernel mode driver project, but it also failed.
https://github.com/li-apporto-service/appveryor-test
It would be great if you find and resolve the root cause.

Thank you for your great effort.

  1. Support Staff 1 Posted by Owen McDonnell on 27 Sep, 2024 09:56 PM

    Owen McDonnell's Avatar

    Would you mind linking to a previous successful build and then hit RE-BUILD COMMIT on that build, and link to that log as well?
    Images were indeed updated but it's not clear to me why that would leave the whole toolset unfound.

  2. 2 Posted by Li on 27 Sep, 2024 11:19 PM

    Li's Avatar

    Sorry, I found the successful log. I can't link to the url. But here are the vcvarsall.bat result of the successful log.

    **********************************************************************
    ** Visual Studio 2022 Developer Command Prompt v17.10.2
    ** Copyright (c) 2022 Microsoft Corporation
    **********************************************************************
    [vcvarsall.bat] Environment initialized for: 'x64'
    Name Value
    ---- -----
    __DOTNET_ADD_64BIT 1
    __DOTNET_PREFERRED_BITNESS 64
    __VSCMD_PREINIT_PATH C:\Program Files (x86)\Microsoft SDKs\Azure\CLI2\wbin;C:\Program Files\Git\cmd;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Windows\Syste...
    7zip "C:\Program Files\7-Zip\7z.exe"
    ALLUSERSPROFILE C:\ProgramData
    ANDROID_HOME C:\Program Files (x86)\Android\android-sdk
    APPDATA C:\Users\appveyor\AppData\Roaming
    APPVEYOR True
    APPVEYOR_ACCOUNT_NAME Apporto
    APPVEYOR_API_URL http://localhost:49681/
    APPVEYOR_BUILD_FOLDER C:\projects\apporto-vusb-server
    APPVEYOR_BUILD_ID 50410782
    APPVEYOR_BUILD_NUMBER 114
    APPVEYOR_BUILD_VERSION 1.0.114
    APPVEYOR_BUILD_WORKER_IMAGE Visual Studio 2022
    APPVEYOR_JOB_ID kbp478gqj66qwc16
    APPVEYOR_JOB_NUMBER 1
    APPVEYOR_PROJECT_ID 1030640
    APPVEYOR_PROJECT_NAME apporto-vusb-server
    APPVEYOR_PROJECT_SLUG apporto-vusb-server
    APPVEYOR_REPO_BRANCH bugfix/AP-9536-run-driver
    APPVEYOR_REPO_COMMIT fc0967fd81fab2a2c356f2a78d2950fed454f6db
    APPVEYOR_REPO_COMMIT_AUTHOR li-apporto
    APPVEYOR_REPO_COMMIT_AUTHOR... [email blocked]
    APPVEYOR_REPO_COMMIT_MESSAGE AP-9536-RUN-DRIVER: Require admin privilege to setup
    APPVEYOR_REPO_COMMIT_TIMESTAMP 2024-08-15T09:17:51.0000000Z
    APPVEYOR_REPO_NAME apportocorp/apporto-vusb-server
    APPVEYOR_REPO_PROVIDER gitHub
    APPVEYOR_REPO_SCM git
    APPVEYOR_REPO_TAG false
    APPVEYOR_URL https://ci.appveyor.com
    APR_ICONV_PATH C:\Program Files (x86)\Subversion\iconv
    AVVM_DOWNLOAD_URL https://appveyordownloads.blob.core.windows.net/avvm
    ChocolateyInstall C:\ProgramData\chocolatey
    ChocolateyLastPathUpdate 133627157634938241
    CI True
    CI_LINUX False
    CI_WINDOWS True
    CommandPromptType Native
    CommonProgramFiles C:\Program Files\Common Files
    CommonProgramFiles(x86) C:\Program Files (x86)\Common Files
    CommonProgramW6432 C:\Program Files\Common Files
    COMPUTERNAME APPVEYOR-VM
    ComSpec C:\Windows\system32\cmd.exe
    DevEnvDir C:\Program Files\Microsoft Visual Studio\2022\Community\Common7\IDE\
    DriverData C:\Windows\System32\Drivers\DriverData
    DXSDK_DIR C:\Program Files (x86)\Microsoft DirectX SDK\
    EnableNuGetPackageRestore true
    ERLANG_HOME C:\Program Files\erl10.7
    ExtensionSdkDir C:\Program Files (x86)\Microsoft SDKs\Windows Kits\10\ExtensionSDKs
    EXTERNAL_INCLUDE C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.40.33807\include;C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.40.33807\ATLMFC\include;C:\Progr...
    Framework40Version v4.0
    FrameworkDir C:\Windows\Microsoft.NET\Framework64\
    FrameworkDIR64 C:\Windows\Microsoft.NET\Framework64
    FrameworkVersion v4.0.30319
    FrameworkVersion64 v4.0.30319
    FSHARPINSTALLDIR C:\Program Files\Microsoft Visual Studio\2022\Community\Common7\IDE\CommonExtensions\Microsoft\FSharp\Tools
    GIT_LFS_PATH C:\Program Files\Git LFS
    GOROOT C:\go
    HOMEDRIVE C:
    HOMEPATH \Users\appveyor
    HTMLHelpDir C:\Program Files (x86)\HTML Help Workshop
    IFCPATH C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.40.33807\ifc\x64
    INCLUDE C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.40.33807\include;C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.40.33807\ATLMFC\include;C:\Progr...
    is_x64_arch true
    JAVA_HOME C:\Progra~1\Java\jdk1.8.0
    lastexitcode 0
    LIB C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.40.33807\ATLMFC\lib\x64;C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.40.33807\lib\x64;C:\Progr...
    LIBPATH C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.40.33807\ATLMFC\lib\x64;C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.40.33807\lib\x64;C:\Progr...
    LOCALAPPDATA C:\Users\appveyor\AppData\Local
    LOGONSERVER \\APPVEYOR-VM
    M2_HOME C:\Program Files (x86)\Apache\Maven
    MAVEN_HOME C:\Program Files (x86)\Apache\Maven
    MSYS2_PATH_TYPE inherit
    NETFXSDKDir C:\Program Files (x86)\Windows Kits\NETFXSDK\4.8\
    NexusCredentials ***
    NUMBER_OF_PROCESSORS 2
    OPENSSL_CONF C:\OpenSSL-Win32\bin\openssl.cfg
    OS Windows_NT
    Path C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.40.33807\bin\HostX64\x64;C:\Program Files\Microsoft Visual Studio\2022\Community\Common7\IDE\VC\VCPackages;C:\Program File...
    PATHEXT .COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC;.CPL
    Platform x64
    POWERSHELL_DISTRIBUTION_CHA... MSI:Windows Server 2019 Datacenter
    PROCESSOR_ARCHITECTURE AMD64
    PROCESSOR_IDENTIFIER Intel64 Family 6 Model 63 Stepping 2, GenuineIntel
    PROCESSOR_LEVEL 6
    PROCESSOR_REVISION 3f02
    ProgramData C:\ProgramData
    ProgramFiles C:\Program Files
    ProgramFiles(x86) C:\Program Files (x86)
    ProgramW6432 C:\Program Files
    PROMPT $P$G
    PSModulePath C:\Users\appveyor\Documents\WindowsPowerShell\Modules;C:\Program Files\WindowsPowerShell\Modules;C:\Windows\system32\WindowsPowerShell\v1.0\Modules;C:\Program Files\AppVeyor\BuildAgent\Modules;C:...
    PUBLIC C:\Users\Public
    RUBYOPT -Eutf-8
    SESSIONNAME Console
    SystemDrive C:
    SystemRoot C:\Windows
    TEMP C:\Users\appveyor\AppData\Local\Temp\1
    TMP C:\Users\appveyor\AppData\Local\Temp\1
    UCRTVersion 10.0.22621.0
    UniversalCRTSdkDir C:\Program Files (x86)\Windows Kits\10\
    USERDOMAIN APPVEYOR-VM
    USERDOMAIN_ROAMINGPROFILE APPVEYOR-VM
    USERNAME appveyor
    USERPROFILE C:\Users\appveyor
    VCIDEInstallDir C:\Program Files\Microsoft Visual Studio\2022\Community\Common7\IDE\VC\
    VCINSTALLDIR C:\Program Files\Microsoft Visual Studio\2022\Community\VC\
    VCToolsInstallDir C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.40.33807\
    VCToolsRedistDir C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Redist\MSVC\14.40.33807\
    VCToolsVersion 14.40.33807
    VisualStudioVersion 17.0
    VS140COMNTOOLS C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\Tools\
    VS170COMNTOOLS C:\Program Files\Microsoft Visual Studio\2022\Community\Common7\Tools\
    VSCMD_ARG_app_plat Desktop
    VSCMD_ARG_HOST_ARCH x64
    VSCMD_ARG_TGT_ARCH x64
    VSCMD_VER 17.10.2
    VSINSTALLDIR C:\Program Files\Microsoft Visual Studio\2022\Community\
    VSSDK150INSTALL C:\Program Files\Microsoft Visual Studio\2022\Community\VSSDK
    VSSDKINSTALL C:\Program Files\Microsoft Visual Studio\2022\Community\VSSDK
    windir C:\Windows
    WindowsLibPath C:\Program Files (x86)\Windows Kits\10\UnionMetadata\10.0.22621.0;C:\Program Files (x86)\Windows Kits\10\References\10.0.22621.0
    WindowsSDK_ExecutablePath_x64 C:\Program Files (x86)\Microsoft SDKs\Windows\v10.0A\bin\NETFX 4.8 Tools\x64\
    WindowsSDK_ExecutablePath_x86 C:\Program Files (x86)\Microsoft SDKs\Windows\v10.0A\bin\NETFX 4.8 Tools\
    WindowsSdkBinPath C:\Program Files (x86)\Windows Kits\10\bin\
    WindowsSdkDir C:\Program Files (x86)\Windows Kits\10\
    WindowsSDKLibVersion 10.0.22621.0\
    WindowsSdkVerBinPath C:\Program Files (x86)\Windows Kits\10\bin\10.0.22621.0\
    WindowsSDKVersion 10.0.22621.0\
    WIX C:\Program Files (x86)\WiX Toolset v3.11\
    xunit20 C:\Tools\xUnit20

    And I hitted the `RE-BUILD COMMIT`. It fails now.
    Here are the current failed vcvarsall.bat result as well.

    **********************************************************************
    ** Visual Studio 2022 Developer Command Prompt v17.11.2
    ** Copyright (c) 2022 Microsoft Corporation
    **********************************************************************
    [vcvarsall.bat] Environment initialized for: 'x64'
    Name Value
    ---- -----
    __DOTNET_ADD_64BIT 1
    __DOTNET_PREFERRED_BITNESS 64
    __VSCMD_PREINIT_PATH C:\Program Files (x86)\Microsoft SDKs\Azure\CLI2\wbin;C:\Program Files\Git\cmd;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Windows\Syste...
    7zip "C:\Program Files\7-Zip\7z.exe"
    ALLUSERSPROFILE C:\ProgramData
    ANDROID_HOME C:\Program Files (x86)\Android\android-sdk
    APPDATA C:\Users\appveyor\AppData\Roaming
    APPVEYOR True
    APPVEYOR_ACCOUNT_NAME Apporto
    APPVEYOR_API_URL http://localhost:49678/
    APPVEYOR_BUILD_FOLDER C:\projects\apporto-vusb-server
    APPVEYOR_BUILD_ID 50692872
    APPVEYOR_BUILD_NUMBER 174
    APPVEYOR_BUILD_VERSION 1.0.174
    APPVEYOR_BUILD_WORKER_IMAGE Visual Studio 2022
    APPVEYOR_JOB_ID cjwe6x9etcg65dl9
    APPVEYOR_JOB_NUMBER 1
    APPVEYOR_PROJECT_ID 1030640
    APPVEYOR_PROJECT_NAME apporto-vusb-server
    APPVEYOR_PROJECT_SLUG apporto-vusb-server
    APPVEYOR_RE_BUILD True
    APPVEYOR_REPO_BRANCH bugfix/AP-9536-run-driver
    APPVEYOR_REPO_COMMIT fc0967fd81fab2a2c356f2a78d2950fed454f6db
    APPVEYOR_REPO_COMMIT_AUTHOR li-apporto
    APPVEYOR_REPO_COMMIT_AUTHOR... [email blocked]
    APPVEYOR_REPO_COMMIT_MESSAGE AP-9536-RUN-DRIVER: Require admin privilege to setup
    APPVEYOR_REPO_COMMIT_TIMESTAMP 2024-08-15T09:17:51.0000000Z
    APPVEYOR_REPO_NAME apportocorp/apporto-vusb-server
    APPVEYOR_REPO_PROVIDER gitHub
    APPVEYOR_REPO_SCM git
    APPVEYOR_REPO_TAG false
    APPVEYOR_URL https://ci.appveyor.com
    APR_ICONV_PATH C:\Program Files (x86)\Subversion\iconv
    AVVM_DOWNLOAD_URL https://appveyordownloads.blob.core.windows.net/avvm
    ChocolateyInstall C:\ProgramData\chocolatey
    ChocolateyLastPathUpdate 133699831072033006
    CI True
    CI_LINUX False
    CI_WINDOWS True
    CommandPromptType Native
    CommonProgramFiles C:\Program Files\Common Files
    CommonProgramFiles(x86) C:\Program Files (x86)\Common Files
    CommonProgramW6432 C:\Program Files\Common Files
    COMPUTERNAME APPVEYOR-VM
    ComSpec C:\Windows\system32\cmd.exe
    DevEnvDir C:\Program Files\Microsoft Visual Studio\2022\Community\Common7\IDE\
    DriverData C:\Windows\System32\Drivers\DriverData
    DXSDK_DIR C:\Program Files (x86)\Microsoft DirectX SDK\
    EnableNuGetPackageRestore true
    ERLANG_HOME C:\Program Files\erl10.7
    ExtensionSdkDir C:\Program Files (x86)\Microsoft SDKs\Windows Kits\10\ExtensionSDKs
    EXTERNAL_INCLUDE C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.41.34120\include;C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.41.34120\ATLMFC\include;C:\Progr...
    Framework40Version v4.0
    FrameworkDir C:\Windows\Microsoft.NET\Framework64\
    FrameworkDIR64 C:\Windows\Microsoft.NET\Framework64
    FrameworkVersion v4.0.30319
    FrameworkVersion64 v4.0.30319
    FSHARPINSTALLDIR C:\Program Files\Microsoft Visual Studio\2022\Community\Common7\IDE\CommonExtensions\Microsoft\FSharp\Tools
    GIT_LFS_PATH C:\Program Files\Git LFS
    GOROOT C:\go
    HOMEDRIVE C:
    HOMEPATH \Users\appveyor
    HTMLHelpDir C:\Program Files (x86)\HTML Help Workshop
    IFCPATH C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.41.34120\ifc\x64
    INCLUDE C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.41.34120\include;C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.41.34120\ATLMFC\include;C:\Progr...
    is_x64_arch true
    JAVA_HOME C:\Progra~1\Java\jdk1.8.0
    lastexitcode 0
    LIB C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.41.34120\ATLMFC\lib\x64;C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.41.34120\lib\x64;C:\Progr...
    LIBPATH C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.41.34120\ATLMFC\lib\x64;C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.41.34120\lib\x64;C:\Progr...
    LOCALAPPDATA C:\Users\appveyor\AppData\Local
    LOGONSERVER \\APPVEYOR-VM
    M2_HOME C:\Program Files (x86)\Apache\Maven
    MAVEN_HOME C:\Program Files (x86)\Apache\Maven
    MSYS2_PATH_TYPE inherit
    NETFXSDKDir C:\Program Files (x86)\Windows Kits\NETFXSDK\4.8\
    NexusCredentials ***
    NUMBER_OF_PROCESSORS 2
    OPENSSL_CONF C:\OpenSSL-Win32\bin\openssl.cfg
    OS Windows_NT
    Path C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.41.34120\bin\HostX64\x64;C:\Program Files\Microsoft Visual Studio\2022\Community\Common7\IDE\VC\VCPackages;C:\Program File...
    PATHEXT .COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC;.CPL
    Platform x64
    POWERSHELL_DISTRIBUTION_CHA... MSI:Windows Server 2019 Datacenter
    PROCESSOR_ARCHITECTURE AMD64
    PROCESSOR_IDENTIFIER Intel64 Family 6 Model 63 Stepping 2, GenuineIntel
    PROCESSOR_LEVEL 6
    PROCESSOR_REVISION 3f02
    ProgramData C:\ProgramData
    ProgramFiles C:\Program Files
    ProgramFiles(x86) C:\Program Files (x86)
    ProgramW6432 C:\Program Files
    PROMPT $P$G
    PSModulePath C:\Users\appveyor\Documents\WindowsPowerShell\Modules;C:\Program Files\WindowsPowerShell\Modules;C:\Windows\system32\WindowsPowerShell\v1.0\Modules;C:\Program Files\AppVeyor\BuildAgent\Modules;C:...
    PUBLIC C:\Users\Public
    PY_PYTHON 3.12
    RUBYOPT -Eutf-8
    SESSIONNAME Console
    SystemDrive C:
    SystemRoot C:\Windows
    TEMP C:\Users\appveyor\AppData\Local\Temp\1
    TMP C:\Users\appveyor\AppData\Local\Temp\1
    UCRTVersion 10.0.26100.0
    UniversalCRTSdkDir C:\Program Files (x86)\Windows Kits\10\
    USERDOMAIN APPVEYOR-VM
    USERDOMAIN_ROAMINGPROFILE APPVEYOR-VM
    USERNAME appveyor
    USERPROFILE C:\Users\appveyor
    VCIDEInstallDir C:\Program Files\Microsoft Visual Studio\2022\Community\Common7\IDE\VC\
    VCINSTALLDIR C:\Program Files\Microsoft Visual Studio\2022\Community\VC\
    VCToolsInstallDir C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.41.34120\
    VCToolsRedistDir C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Redist\MSVC\14.40.33807\
    VCToolsVersion 14.41.34120
    VisualStudioVersion 17.0
    VS140COMNTOOLS C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\Tools\
    VS170COMNTOOLS C:\Program Files\Microsoft Visual Studio\2022\Community\Common7\Tools\
    VSCMD_ARG_app_plat Desktop
    VSCMD_ARG_HOST_ARCH x64
    VSCMD_ARG_TGT_ARCH x64
    VSCMD_VER 17.11.2
    VSINSTALLDIR C:\Program Files\Microsoft Visual Studio\2022\Community\
    VSSDK150INSTALL C:\Program Files\Microsoft Visual Studio\2022\Community\VSSDK
    VSSDKINSTALL C:\Program Files\Microsoft Visual Studio\2022\Community\VSSDK
    windir C:\Windows
    WindowsLibPath C:\Program Files (x86)\Windows Kits\10\UnionMetadata\10.0.26100.0;C:\Program Files (x86)\Windows Kits\10\References\10.0.26100.0
    WindowsSDK_ExecutablePath_x64 C:\Program Files (x86)\Microsoft SDKs\Windows\v10.0A\bin\NETFX 4.8 Tools\x64\
    WindowsSDK_ExecutablePath_x86 C:\Program Files (x86)\Microsoft SDKs\Windows\v10.0A\bin\NETFX 4.8 Tools\
    WindowsSdkBinPath C:\Program Files (x86)\Windows Kits\10\bin\
    WindowsSdkDir C:\Program Files (x86)\Windows Kits\10\
    WindowsSDKLibVersion 10.0.26100.0\
    WindowsSdkVerBinPath C:\Program Files (x86)\Windows Kits\10\bin\10.0.26100.0\
    WindowsSDKVersion 10.0.26100.0\
    WIX C:\Program Files (x86)\WiX Toolset v3.14\
    xunit20 C:\Tools\xUnit20

  3. Support Staff 3 Posted by Owen McDonnell on 28 Sep, 2024 11:09 PM

    Owen McDonnell's Avatar

    Have you tried any other values for the <PlatformToolset> value? It's difficult to tell from documentation what the legal values are but (based on some web searching) maybe try 'v143'.

  4. 4 Posted by Li on 30 Sep, 2024 05:16 AM

    Li's Avatar

    I tried it as well. Actually, I did everything what I can do on my side.
    Finally, I did decide to request support from service team.
    So, if possible, please try to make some updates to my public repository and test on your side.

  5. 5 Posted by Li on 01 Oct, 2024 08:15 AM

    Li's Avatar

    FYI - When the AppVeyor image worked well for the driver project (When the default wdk and sdk versions were 10.0.22621.0), I had to install the 10.0.22621.0 wdk and wdk.vsix by a ps script additionally.

    Start-Process -FilePath "$toolsDirectory\wdksetup.exe" -ArgumentList '/quiet', '/features OptionId.WindowsdriverKitComplete OptionId.WDKVisualStudioDev17' -NoNewWindow -Wait
    Start-Process "C:\Program Files\Microsoft Visual Studio\2022\Community\Common7\IDE\VSIXInstaller.exe" -ArgumentList "/q $toolsDirectory\WDK.vsix" -Wait -NoNewWindow
    
    Without this additional steps, there was also the error of error MSB8020: The build tools for WindowsKernelModeDriver10.0 (Platform Toolset = 'WindowsKernelModeDriver10.0') cannot be found.
    So, I tried to install the 10.0.26100.0 sets in the same way, but it wasn't helpful.
    Hope this information is helpful. Can you let me know any progress on this problem?
  6. Support Staff 6 Posted by Owen McDonnell on 01 Oct, 2024 08:26 PM

    Owen McDonnell's Avatar

    Can you please drop a link to the builds to which you're referring.

  7. 7 Posted by Li on 01 Oct, 2024 09:33 PM

    Li's Avatar
  8. Support Staff 8 Posted by Owen McDonnell on 02 Oct, 2024 06:51 AM

    Owen McDonnell's Avatar

    Ok, so the original repo you linked to is a public reproduction of the problem? Have you actually tried to build that project on AppVeyor? I've cloned it and I can't get it to build locally. Are you able to?
    Take a look at MS documentation here. It seems possible that your WDK installation is not being seen by Visual studio. You can try to RDP into build worker and verify that the correct version of WDK is present.

  9. 9 Posted by Li on 02 Oct, 2024 07:13 AM

    Li's Avatar

    the original repo you linked to is a public reproduction of the problem?

    Yes. https://github.com/li-apporto-service/appveryor-test

    Have you actually tried to build that project on AppVeyor?

    Sure
    https://ci.appveyor.com/project/Apporto/appveryor-test/builds/50691895
    https://ci.appveyor.com/project/Apporto/appveryor-test/builds/50691841
    https://ci.appveyor.com/project/Apporto/appveryor-test/builds/50691827
    https://ci.appveyor.com/project/Apporto/appveryor-test/builds/50691818
    ...

    I've cloned it and I can't get it to build locally. Are you able to?

    Sure, but the local wdk and sdk versions are 10.0.22621.0

    Take a look at MS documentation here. It seems possible that your WDK installation is not being seen by Visual studio. You can try to RDP into build worker and verify that the correct version of WDK is present.

    Let me try. But you know, the old version 10.0.22621.0 worked when I do some additional work. So, I guess that the new updated version 10.0.26100.0 is the problem (installation, integration, configuration... in AppVeyor image).

  10. Support Staff 10 Posted by Owen McDonnell on 02 Oct, 2024 05:13 PM

    Owen McDonnell's Avatar

    It seems from this commit that we never actually had version 10.0.22621.0, but rather went from 10.0.22000 to current version.
    That was the only change made to the installation of Visual Studio 2022. If you had to install WDK before to build your project, you'll need to make sure it properly installs again.
    Note the caveat in the link I provided above...

    If you can't find driver project templates in Visual Studio, the WDK Visual Studio extension didn't install properly. To resolve this,launch Visual Studio Installer, click "Modify", add "Windows Driver Kits" in the Individual Component tab and Click "Modify"

  11. 11 Posted by Li on 03 Oct, 2024 05:51 AM

    Li's Avatar

    If you can't find driver project templates in Visual Studio, the WDK Visual Studio extension didn't install properly. To resolve this,launch Visual Studio Installer, click "Modify", add "Windows Driver Kits" in the Individual Component tab and Click "Modify"

    Based on the comment you mentioned, I logged in to the RDP worker and looked at the installed components and found that the Windows Driver Kits was not installed. I made updates to the vs2022 image like this and got succeeded.

    Start-Process -FilePath "C:\Program Files (x86)\Microsoft Visual Studio\Installer\vs_installer.exe" -ArgumentList 'modify --installPath "C:\Program Files\Microsoft Visual Studio\2022\Community" --add Component.Microsoft.Windows.DriverKit --passive --norestart' -Wait
    Start-Process -FilePath "$toolsDirectory\wdksetup.exe" -ArgumentList '/quiet', '/features OptionId.WindowsdriverKitComplete OptionId.WDKVisualStudioDev17' -NoNewWindow -Wait
    

    Thank you for your support.

  12. Support Staff 12 Posted by Owen McDonnell on 03 Oct, 2024 07:07 PM

    Owen McDonnell's Avatar

    That's good news. Thanks for sharing your solution!

  13. Owen McDonnell closed this discussion on 03 Oct, 2024 07:07 PM.

Comments are currently closed for this discussion. You can start a new one.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac

 

26 Sep, 2024 03:49 PM
26 Sep, 2024 09:02 AM
25 Sep, 2024 07:07 PM
24 Sep, 2024 08:39 PM
24 Sep, 2024 06:47 AM
20 Sep, 2024 05:50 PM