Build-Wrapper-window and link error

I used bellow command according to Configuration Manager of My solution:
build-wrapper-win-x86.exe --out-dir out “C:\Prgram File\MSBuild\12.0\Bin\MSBuild.exe” C:\users\admin\Desktp\MDAS\MDAS.sln /t:Rebuild /p:Configuration=Release /p:Platform=“win32”

1 Error:
LINK181: can not open input file “x.lib” […\Desktop\MDAS\MDAS_view\MDAS_view.vcxproj]
How to fix error?

Hi @Mahzad_Zahedi,

if you run msbuild command alone does it succeed?

“C:\Prgram File\MSBuild\12.0\Bin\MSBuild.exe” C:\users\admin\Desktp\MDAS\MDAS.sln /t:Rebuild /p:Configuration=Release /p:Platform=“win32”

If it is not the case try to properly build your code without the build-wrapper and once you have a successful build then you can wrap it with the build-wrapper.

Hi @mpaladin Massimo PaladinNo ,
running Msbuild alone also was resulted to LINK error in this project. there are many additional libraries and dependencies in my project? how libraries are linked in Msbuild command ?

Should I set any thing such as linker in the enviroment varaibles?

Hi @Mahzad_Zahedi,

you should open the proper Visual Studio Developer Command Prompt which properly setup the environment for the build.