wbenny / injdrv

proof-of-concept Windows Driver for injecting DLL into user-mode processes using APC

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

MSB3191: Unable to create director

khazarhaji opened this issue · comments

commented

The command I have used to build was:
msbuild injldr.vcxproj /p:Configuration=Release /p:Platform=x64

Error

Build FAILED.

"C:\Users\Username\injdrv\src\injldr\injldr.vcxproj" (default target) (1) ->
(MakeDirsForCl target) ->
  C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Microsoft\VC\v170\Microsoft.CppBuild.targets(1016,5): error MSB3191: Unable to create director
y "C:\Users\Username\injdrv\src\injldr\bin\obj\x64\Release\injldr\C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.36.32532\modules". The g
iven path's format is not supported. [C:\Users\Username\injdrv\src\injldr\injldr.vcxproj]

What did I do as a solution
I have changed
<ObjectFileName>$(IntDir)%(RelativeDir)%(Filename)%(Extension).obj</ObjectFileName>
in line 70 to
<ObjectFileName>$(IntDir)%(Directory)%(Filename)%(Extension).obj</ObjectFileName>

It doesn't matter