Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
This pull request introduces a new PowerShell script to automate the update of the Windows Driver Kit (WDK) version across multiple relevant files. The changes include the addition of the script itself, modifications to project files to support the dynamic versioning, and the creation of a template configuration file.
Key changes include:
New PowerShell Script:
scripts/Update-WdkVersion.ps1
: Added a script to update the WDK version in specified files, create backups, and roll back changes if errors occur.Template Configuration File:
scripts/setup_build/packages.config.template
: Created a new template file forpackages.config
to use a placeholder for the WDK version.Project File Updates:
tools/bpf2c/templates/kernel_mode_bpf2c.vcxproj
: Updated to include aWDKVersion
property and modified import statements to use the dynamic WDK version. [1] [2]tools/bpf2c/templates/user_mode_bpf2c.vcxproj
: Similar updates as the kernel mode project file to support dynamic WDK versioning. [1] [2]Testing
CI/CD
Documentation
In the code.
Installation
No.