Fixing CS1668: Invalid Search path in LIB environment variable

When trying to run msbuild.exe against .sln file it results in error message

"error CS1668: Warning as error: Invalid search path 
'C:Program Files\Microsoft SDKs\Windows\v6.0A\common\lib' 
specified in 'LIB environment variable'.

If you take a look at this folder, there is actually no "common\lib" sub folder.

Solution: Simply create "common\lib" sub folders and rerun MSbuild. MSbuild doesn't  actually need anything from this folder but it's set as input variable anyways during Visual Studio setup.

About me

Bizic Bojan is Freelance Software Development Consultant with focus on C++, Qt and .NET based software solutions development. 

 

Disclaimer:

The opinions expressed herein are my own personal opinions and do not represent my employer’s view in any way.

Creative Commons License
This work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 3.0 Unported License.