I am moving the solution from visual studio 2005 to visual studio 2008. When I create the solution in 2005, I have no problems. However, after using devenv.exe / Upgrade, and then use msbuild to solve, I get the following warnings:
CSC: warning CS1668: Invalid search path '\ vc98 \ lib' specified in 'LIB environment variable' - 'The system cannot find the specified path.' CSC: warning CS1668: Invalid search path '\ vc98 \ mfc \ lib' specified in 'LIB environment variable' - 'The system cannot find the specified path. 'CSC: warning CS1668: Invalid search path' c: \ program files \ microsoft visual studio 9.0 \ vc \ platformdk \ lib 'specified in' LIB environment variable '-' The system cannot find the specified path. '
I checked http://social.msdn.microsoft.com/Forums/en-US/Vsexpressinstall/thread/3f875480-fee2-4bc3-b829-95e220b22a01 and it does not offer me any help because my LIB and INCLUDE environment variables not set to custom or system ones. I looked at Studio Tools> Options> Projects and Solutions> VC ++ Directories and nothing is referencing anything old:
Library files: $ (VCInstallDir) Lib $ (VCInstallDir) atlmfc \ Lib $ (VCInstallDir) atlmfc \ Lib \ i386 $ (WindowsSdkDir) \ Lib $ (FrameworkSDKDir) Lib $ (VSInstallDir) $ (VSInstallDir) Lib
Include files:
$ (VCInstallDir) include $ (VCInstallDir) atlmfc \ include $ (WindowsSdkDir) include $ (FrameworkSDKDir) include
I used the diagnostic output so that I could see exactly what the LIB variable included in the call:
lib = c: \ Program Files \ Microsoft Visual Studio 9.0 \ VC \ ATLMFC \ LIB; c: \ Program Files \ Microsoft Visual Studio 9.0 \ VC \ LIB; C: \ Program Files \ Microsoft SDK \ Windows \ v6. 0A \ lib; \ vc98 \ lib; \ vc98 \ mfc \ lib; c: \ program files \ microsoft visual studio 9.0 \ vc \ platformdk \ lib; c: \ program files \ microsoft visual studio 9.0 \ vc \ lib; c: \ program files \ microsoft visual studio 9.0 \ vc \ atlmfc \ lib; LIBPATH = c: \ Windows \ Microsoft.NET \ Framework \ v3.5; c: \ Windows \ Microsoft.NET \ Framework \ v2.0.50727; c: \ Program Files \ Microsoft Visual Studio 9.0 \ VC \ ATLMFC \ LIB; c: \ Program Files \ Microsoft Visual Studio 9.0 \ VC \ LIB
So, if this vc98 is NOT in my env vars, or my studio and vc98 settings are not even set (or redist), where does this path come from? What process installs env var lib as?
Mike caron
source share