?? Warning using Command Line Compile ??

T

Tom Baxter

I just set up VS 2008 B2 and did a simple command line compile from the VS
command prompt.

I received this warning:

warning CS1668: Invalid search path 'C:\Program Files\Microsoft
SDKs\Windows\v6.0A\lib' specified in 'LIB environment
variable' -- 'The system cannot find the path specified. '

When I checked, sure enough, the "lib" directory is not present'. Perhaps I
selected some combination of installation options that resulted in the "lib"
directory not being created.

I was just wondering if anyone has seen this.
 
N

Nicholas Paldino [.NET/C# MVP]

Tom,

I haven't seen it, but what is it that you are referencing that could be
there?

Also, if it is a warning that doesn't specify a directory, but it still
compiles, then perhaps it is an error with the install/project, and you can
modify the project properties to not include that path.
 
T

Tom Baxter

Nicholas Paldino said:
Tom,

I haven't seen it, but what is it that you are referencing that could
be there?


I did a fresh install of VS 2008 B2. Then, I opened the VS command prompt
and did a simple command-line compile of HelloWorld C# program.

What's happening is the script that runs when I open a VS command prompt is
setting the LIB environment variable to a directory that does not exist. The
script I'm referring to is:

%comspec% /k ""C:\Program Files\Microsoft Visual Studio
9.0\VC\vcvarsall.bat"" x86

Also, if it is a warning that doesn't specify a directory, but it still
compiles, then perhaps it is an error with the install/project, and you
can modify the project properties to not include that path.

As I said, there is no "project" to modify. The Microsoft script is setting
the LIB variable to a directory that does not exist.




--
- Nicholas Paldino [.NET/C# MVP]
- (e-mail address removed)

Tom Baxter said:
I just set up VS 2008 B2 and did a simple command line compile from the VS
command prompt.

I received this warning:

warning CS1668: Invalid search path 'C:\Program Files\Microsoft
SDKs\Windows\v6.0A\lib' specified in 'LIB environment
variable' -- 'The system cannot find the path specified. '

When I checked, sure enough, the "lib" directory is not present'. Perhaps
I selected some combination of installation options that resulted in the
"lib" directory not being created.

I was just wondering if anyone has seen this.
 
J

Jialiang Ge [MSFT]

Hello moondaddy,

From your post, my understanding on this issue is: you wonder the reason
and resolution for the warning CS1668 in Visual Studio 2008 beta 2 . If I'm
off base, please feel free to let me know.

Currently, there is no support for Visual Studio 2008 Beta 2 in MSDN
managed newsgroup. However, I am glad to share with you some of my research
results.

When I search the topic online, I find several community members talking
about the issue:
http://blogs.msdn.com/gusperez/archive/2005/08/08/449353.aspx
The blog page above explains the issue and give the fix. Please refer to it
and if you have any other concerns or need anything else, please feel free
to let me know.

Sincerely,
Jialiang Ge ([email protected], remove 'online.')
Microsoft Online Community Support

==================================================
For MSDN subscribers whose posts are left unanswered, please check this
document: http://blogs.msdn.com/msdnts/pages/postingAlias.aspx

Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscriptions/managednewsgroups/default.aspx#notif
ications. If you are using Outlook Express/Windows Mail, please make sure
you clear the check box "Tools/Options/Read: Get 300 headers at a time" to
see your reply promptly.

Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response from the community or a Microsoft Support
Engineer within 1 business day is acceptable. Please note that each follow
up response may take approximately 2 business days as the support
professional working with you may need further investigation to reach the
most efficient resolution. The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions or complex
project analysis and dump analysis issues. Issues of this nature are best
handled working with a dedicated Microsoft Support Engineer by contacting
Microsoft Customer Support Services (CSS) at
http://msdn.microsoft.com/subscriptions/support/default.aspx.
==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.
 
J

Jialiang Ge [MSFT]

Hello Tom,

From your post, my understanding on this issue is: you wonder the reason
and resolution for the warning CS1668 in Visual Studio 2008 beta 2 . If I'm
off base, please feel free to let me know.

Currently, there is no support for Visual Studio 2008 Beta 2 in MSDN
managed newsgroup. However, I am glad to share with you some of my research
results.

When I search the topic online, I find several community members talking
about the issue:
http://blogs.msdn.com/gusperez/archive/2005/08/08/449353.aspx
The blog page above explains the issue and give the fix. Please refer to it
and if you have any other concerns or need anything else, please feel free
to let me know.

Sincerely,
Jialiang Ge ([email protected], remove 'online.')
Microsoft Online Community Support

==================================================
For MSDN subscribers whose posts are left unanswered, please check this
document: http://blogs.msdn.com/msdnts/pages/postingAlias.aspx

Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscriptions/managednewsgroups/default.aspx#notif
ications. If you are using Outlook Express/Windows Mail, please make sure
you clear the check box "Tools/Options/Read: Get 300 headers at a time" to
see your reply promptly.

Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response from the community or a Microsoft Support
Engineer within 1 business day is acceptable. Please note that each follow
up response may take approximately 2 business days as the support
professional working with you may need further investigation to reach the
most efficient resolution. The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions or complex
project analysis and dump analysis issues. Issues of this nature are best
handled working with a dedicated Microsoft Support Engineer by contacting
Microsoft Customer Support Services (CSS) at
http://msdn.microsoft.com/subscriptions/support/default.aspx.
==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.
 
G

Guest

Thanks for the response, Jialiang.

I realize VS 2008 B2 is unsupported.

I read the blog posting you referred me to. It does not apply to my
situation. I did a fresh install of VS 2008 B2 on a clean machine. I did not
touch the LIB variable. The LIB variable is being set by the Microsoft
script, "C:\Program Files\Microsoft Visual Studio 9.0\VC\vcvarsall.bat",
which runs when the VS command prompt is opened.

So, it seems the Microsoft script is responsible for setting the LIB
variable to a path that does not exist.

Hopefully this can be fixed before the final 2008 release.

Thanks
 
J

Jialiang Ge [MSFT]

Dear Tom ,

Thank you so much for the great feedback on Visual Studio 2008 beta 2. I
believe that other community members will also benefit from your experience
sharing. Would you help to submit the issue at
http://connect.microsoft.com/VisualStudio with reproducing steps? The
developer from Visual Studio product team may review the feedbacks from
customers. I appreciate your time and efforts working with us.

If you have any comments on our support service, website design, our
product limitation, our process, and etc., please don't hesitate to let me
know. I will do my best to follow up.

Have a nice day!

Sincerely,
Jialiang Ge ([email protected], remove 'online.')
Microsoft Online Community Support

=================================================
When responding to posts, please "Reply to Group" via your newsreader
so that others may learn and benefit from your issue.
=================================================
This posting is provided "AS IS" with no warranties, and confers no rights.
 

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