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 Co-Founder of Amida IT-Services GmbH and Software Architect with focus on .NET, C++, Python and Cloud Native solutions. 



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.