473,402 Members | 2,061 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,402 software developers and data experts.

msbuild whackiness

Hello, I am trying to use msbuild to try and automate the building
process. It does compile fine, but I get the following warning:

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

Now I do have VS 2003 installed on the box as well. However the warning
says that the following path is specified in the LIB environment
variable (which it isn't - I checked both system and user environment
variable).

What is the problem here?
Thanks.
Feb 14 '06 #1
8 8763
Frank,

Check in the project file. Variables can be defined there, I believe.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"Frank Rizzo" <no**@none.com> wrote in message
news:eC***************@TK2MSFTNGP09.phx.gbl...
Hello, I am trying to use msbuild to try and automate the building
process. It does compile fine, but I get the following warning:

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

Now I do have VS 2003 installed on the box as well. However the warning
says that the following path is specified in the LIB environment variable
(which it isn't - I checked both system and user environment variable).

What is the problem here?
Thanks.

Feb 14 '06 #2
Nicholas Paldino [.NET/C# MVP] wrote:
Frank,

Check in the project file. Variables can be defined there, I believe.


I did. There is absolutely nothing there that refers to that directory.
Feb 14 '06 #3

"Frank Rizzo" <no**@none.com> wrote in message
news:OO**************@TK2MSFTNGP10.phx.gbl...
| Nicholas Paldino [.NET/C# MVP] wrote:
| > Frank,
| >
| > Check in the project file. Variables can be defined there, I
believe.
|
| I did. There is absolutely nothing there that refers to that directory.

Are you sure LIB is not in the environment? Did you run a set command from
the command line?

Willy.
Feb 15 '06 #4
Hi Frank,

Make sure that you check both your User Variables and System Variables.
Both LIB variables have a value of:

C:\Program Files\Microsoft Visual Studio .NET\FrameworkSDK\Lib\

--
Tod Birdsall, MCSD for .Net
software blog: http://tod1d.net

Feb 15 '06 #5
Willy Denoyette [MVP] wrote:
"Frank Rizzo" <no**@none.com> wrote in message
news:OO**************@TK2MSFTNGP10.phx.gbl...
| Nicholas Paldino [.NET/C# MVP] wrote:
| > Frank,
| >
| > Check in the project file. Variables can be defined there, I
believe.
|
| I did. There is absolutely nothing there that refers to that directory.

Are you sure LIB is not in the environment? Did you run a set command from
the command line?

Willy.

I am absolutely sure. I've checked and rechecked because I couldn't
believe it. I didn't run anything from the command line. Simply opened
the command line, went to the solution directory and typed in msbuild.
Feb 15 '06 #6

"Frank Rizzo" <no**@none.com> wrote in message
news:ud**************@TK2MSFTNGP14.phx.gbl...
| Willy Denoyette [MVP] wrote:
| > "Frank Rizzo" <no**@none.com> wrote in message
| > news:OO**************@TK2MSFTNGP10.phx.gbl...
| > | Nicholas Paldino [.NET/C# MVP] wrote:
| > | > Frank,
| > | >
| > | > Check in the project file. Variables can be defined there, I
| > believe.
| > |
| > | I did. There is absolutely nothing there that refers to that
directory.
| >
| > Are you sure LIB is not in the environment? Did you run a set command
from
| > the command line?
| >
| > Willy.
| >
| >
| I am absolutely sure. I've checked and rechecked because I couldn't
| believe it. I didn't run anything from the command line. Simply opened
| the command line, went to the solution directory and typed in msbuild.

Sorry if I wasn't clear, but my question was.... did you run "set" from the
command line without arguments, this will output the actual environment
params. I can't see why else the warning message would mention this:
..... specified in 'LIB environment ...

Willy.
Feb 15 '06 #7
Yeh, or running "echo %lib%" from the command line should work too...
Feb 15 '06 #8
Gabriel Magaña wrote:
Yeh, or running "echo %lib%" from the command line should work too...


Ok, I figured it out. If you run msbuild from a generic cmd.exe window,
for some reason msbuild itself adds vs2003 directories to the lib
variable. So I simply went to vsvars32.bat file in the vs2003 folder
structure and removed the ...VC7\ATLMFC\LIB folder from it (since I
don't even have it) and it all compiles fine no warnings.

The LIB env var in various command windows is thus:

cmd.exe
C:\Program Files\Microsoft Visual Studio .NET 2003\SDK\v1.1\Lib\

vs2005 command prompt
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\

vs2003 command prompt (i have that installed as well)
C:\Program Files\Microsoft Visual Studio .NET 2003\VC7\ATLMFC\LIB;
C:\Program Files\Microsoft Visual Studio .NET 2003\VC7\LIB;
C:\Program Files\Microsoft Visual Studio .NET
2003\VC7\PlatformSDK\lib\prerelease;
C:\Program Files\Microsoft Visual Studio .NET 2003\VC7\PlatformSDK\lib;
C:\Program Files\Microsoft Visual Studio .NET 2003\SDK\v1.1\lib;
C:\Program Files\Microsoft Visual Studio .NET 2003\SDK\v1.1\Lib\
Feb 16 '06 #9

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Uma Abhyankar | last post by:
Hello, I am using .NET Beta1 Visual Studio. I have to invoke VCBuild through MSBuild on command prompt. I have following issues: Issue1: -------- MSBuild invokes VCBuild internally....
1
by: Uma Abhyankar | last post by:
Hello All, I was facing an issue with VCBuild on Beta1. Today after shifting to .NET Beta2, it looks like the issue is still not resolved :-( I have to invoke VCBuild through MSBuild on command...
4
by: cisco | last post by:
could not find anything specific to this but does anyone know of msbuild has a new quick start tutorials. The only one i can find seem to be for the preview version of msbuild. Is thiis the only...
5
by: Al | last post by:
Hi all We have created a xml file that imports a single project using the Import element. This project compiles to a class library, but has references to two other projects that are also class...
0
by: ME | last post by:
I have a need to generate both the DLL version of my application and an EXE version. I would like to build both of them with a single call "build". One of the ideas I have come up with is to...
0
by: ccallen | last post by:
How to print msbuild <Messageto the VS 2005 output window, from an msbuild file that is loaded into VS? After reading Don Boxs' "MSBuild for MAKEFILE converts" , I copied the snippet, for point...
3
by: jrett | last post by:
I've got a source tree with over 100 projects, some depending on others and I'd like to set this up on an automated nightly build, or where devs can do private builds of the entire source tree to...
3
by: Danny | last post by:
Hi I trying to master msBuild but have a problem. I have a solution that I wish to build using msbuild but want to override BeforeBuild/AfterBuild targets for each of the projects. I trying to...
7
by: shapper | last post by:
Hello, I am working on an ASP.MET MVC Web Application with NET 3.5 in VS 2008. I need to run some extra tasks on this project build so I download MSBuild from http://msbuildtasks.tigris.org/....
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.