Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Windows MSR driver compilation error #665

Closed
KylePan-01 opened this issue Jan 31, 2024 · 5 comments
Closed

Windows MSR driver compilation error #665

KylePan-01 opened this issue Jan 31, 2024 · 5 comments
Assignees

Comments

@KylePan-01
Copy link

I use Visual Studio Community 2022, Windows SDK 10.0.22621.2428 and WDK 10.0.22621.2428 to compile MSR in the pcm/src/WinMSRDriver, but I got the following error:

“C:\Users\34957\Documents\GitHub\pcm\src\WinMSRDriver\MSR.vcxproj”(默认目标) (1) ->
(ValidateNTTargetVersion 目标) ->
  C:\Program Files (x86)\Windows Kits\10\build\10.0.22621.0\WindowsDriver.common.targets(314,5): error MSB4044: 未给任务“ValidateNTTargetVersion”的必需参数“ValidNTTargetVersions”赋值。 [C:\Users\34957\Documents\GitHub\pcm\src\WinMSRDriver\MSR.vcxproj]

It means that "ValidNTTargetVersions" not given, but I can not find this parameter in MSR.vcxproj.
Does it caused by VS 2022? Because I read the compilation in the Windows Build Pass, which used VS 2019 rather than 2022.

@phtephanx
Copy link

Related: #615

I get the same error also using VS Community 2022.

@bootstrapper777
Copy link

I made the changes suggested here : https://learn.microsoft.com/en-us/answers/questions/1526163/msb4044-issue-compiling-msr-driver-and-generating and my MSR compile succeeded

@rdementi
Copy link
Contributor

I made the changes suggested here : https://learn.microsoft.com/en-us/answers/questions/1526163/msb4044-issue-compiling-msr-driver-and-generating and my MSR compile succeeded

thanks a lot for sharing the solution. We will adopt it asap.

@rdementi rdementi self-assigned this Feb 24, 2024
@rdementi
Copy link
Contributor

this issue should now be resolved in the master branch : 5690185

@rdementi
Copy link
Contributor

please reopen if the issue is still there

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants