error on build

B

Brian Henry

When i build my project i get this error

warning CS1668: Invalid search path 'C:\Program Files\Microsoft Visual
Studio .NET 2003\SDK\v1.1\Lib\' specified in 'LIB environment variable' --
'The system cannot find the path specified. '

this is in .NET 2.0, so im not sure why there are still references to 1.1,
where do i fix this reference at? thanks!
 
J

Jon Skeet [C# MVP]

Brian Henry said:
When i build my project i get this error

warning CS1668: Invalid search path 'C:\Program Files\Microsoft Visual
Studio .NET 2003\SDK\v1.1\Lib\' specified in 'LIB environment variable' --
'The system cannot find the path specified. '

this is in .NET 2.0, so im not sure why there are still references to 1.1,
where do i fix this reference at? thanks!

Well, what does your LIB environment variable look like? That sounds
like the kind of error you get if you run the 1.1 environment batch
file and then try to compile 2.0 code.
 
B

Brian Henry

I couldn't tell you i dont work with C# normally just VB.NET this is code
someone else wrote... no idea where to look
 
J

Jon Skeet [C# MVP]

Brian Henry said:
I couldn't tell you i dont work with C# normally just VB.NET this is code
someone else wrote... no idea where to look

Well, that wasn't a particularly C#-dependent question. Just type "set
LIB" at the command prompt and cut and paste the results...
 
B

Brian Henry

C:\Program Files\Microsoft Visual Studio 8\VC>set lib
LIB=C:\Program Files\Microsoft Visual Studio 8\VC\LIB;C:\Program
Files\Microsoft
Visual Studio 8\SDK\v2.0\lib;C:\Program Files\Microsoft Visual Studio .NET
2003
\SDK\v1.1\Lib\
LIBPATH=C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727


now i see it.. it's in the path...
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top