Scenario:
I'm teaching a small class on C# fundamentals and while preparing a sample ran into the error below. I was trying to run CSC.exe to compile CSharp code from the command line.
Error:
Invalid search path 'C:\Program Files\Microsoft SDKs\Windows\v6.0A\lib' specified in 'LIB environement variable' -- 'The system cannot find the path specified.'

Description of the problem:
In my case, the lib folder did not exist and the compiler was trying to reference it. Searching around online showed a few ways to fix it. Here's the one that worked for me:
Fix:
1. Using Windows explorer, navigate to C:\Program Files\Microsoft SDKs\Windows\v6.0A
2. Create a new "lib" folder
Tags: