473,395 Members | 1,688 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,395 software developers and data experts.

VCBuild issues in MSBuild

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. However it invokes VCBuild without
passing any config options. Only the target, Rebuild or clean options are
passed. The Debug or Release options are not, hence always both
configurations are built for any assembly.
For instance a command like:
msbuild abc.sln /t:rebuild /p:config=debug will internally invoke vcbuild abc.sln /rebuild
Hence unless I use something like
vcbuild abc.sln /rebuild "Debug:Win32"


it wont work!!
Issue2:
--------
There is a note written in VCBuild /help as follows:
Default Behavior:

================================================== ==========================
==

If no project is specified, and there is only a single .vcproj file in the

directory, that project will be built.

If no configuration is specified, and the VCBUILD_DEFAULT_CFG environment

variable is set, the configuration it specifies will be built. If it is not

set, then all configurations will be built.

The default action is to build the specified configurations without
cleaning.
Options will also be read from the VCBUILD_DEFAULT_OPTIONS environment
variable.

================================================== ==========================
However any value like, Debug, "Debug|Win32" set as values to
VCBUILD_DEFAULT_CFG, gives error when VCBuild is run on the assembly.

Please help me.

Thanks & Regards

Uma


Jul 21 '05 #1
2 5782

"Uma Abhyankar" <au**@persistent.co.in> wrote in message
news:OE**************@TK2MSFTNGP15.phx.gbl...
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. However it invokes VCBuild without
passing any config options. Only the target, Rebuild or clean options are
passed. The Debug or Release options are not, hence always both
configurations are built for any assembly.
For instance a command like:
msbuild abc.sln /t:rebuild /p:config=debug will internally invoke vcbuild abc.sln /rebuild
Hence unless I use something like
vcbuild abc.sln /rebuild "Debug:Win32"


it wont work!!
Issue2:
--------
There is a note written in VCBuild /help as follows:
Default Behavior:

================================================== ==========================
==

If no project is specified, and there is only a single .vcproj file in the

directory, that project will be built.

If no configuration is specified, and the VCBUILD_DEFAULT_CFG environment

variable is set, the configuration it specifies will be built. If it is
not

set, then all configurations will be built.

The default action is to build the specified configurations without
cleaning.
Options will also be read from the VCBUILD_DEFAULT_OPTIONS environment
variable.

================================================== ==========================
However any value like, Debug, "Debug|Win32" set as values to
VCBUILD_DEFAULT_CFG, gives error when VCBuild is run on the assembly.

Please help me.

Thanks & Regards

Uma

If you are referring to Visual Studio 2005, you're using an obsolete beta.
I'd suggest the you download Beta 2, then see if your issues have been
addressed.

http://lab.msdn.microsoft.com/vs2005/

--
Peter [MVP Visual Developer]
Jack of all trades, master of none.
Jul 21 '05 #2
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 prompt. I have
following issue:

Issue:
--------
MSBuild can invoke VCBuild internally. However it invokes VCBuild without
passing any config options. Only the target, Rebuild or clean options are
passed. The Debug or Release options are not, hence always both
configurations are built for any assembly.
For instance a command like:

prompt> msbuild abc.sln /t:rebuild /p:config=debug
will internally invoke
prompt> vcbuild abc.sln /rebuild

would build both release and Debug. We do not want that!!

Note: We do not have any project to project references in the vcproj. Also
we want to use MSBuild for building all our projects...

Could someone help...Please...

Regards
Uma

"Peter van der Goes" <p_**********@toadstool.u> wrote in message
news:Oy**************@TK2MSFTNGP09.phx.gbl...

"Uma Abhyankar" <au**@persistent.co.in> wrote in message
news:OE**************@TK2MSFTNGP15.phx.gbl...
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. However it invokes VCBuild without
passing any config options. Only the target, Rebuild or clean options are
passed. The Debug or Release options are not, hence always both
configurations are built for any assembly.
For instance a command like:
msbuild abc.sln /t:rebuild /p:config=debug

will internally invoke
vcbuild abc.sln /rebuild


would build both release and Debug. We do not want that!!
Issue2:
--------
There is a note written in VCBuild /help as follows:
Default Behavior:

================================================== ==========================
==

If no project is specified, and there is only a single .vcproj file in
the

directory, that project will be built.

If no configuration is specified, and the VCBUILD_DEFAULT_CFG environment

variable is set, the configuration it specifies will be built. If it is
not

set, then all configurations will be built.

The default action is to build the specified configurations without
cleaning.
Options will also be read from the VCBUILD_DEFAULT_OPTIONS environment
variable.

================================================== ==========================
Even this does not work, when msbuild invokes Please help me.

Thanks & Regards

Uma

If you are referring to Visual Studio 2005, you're using an obsolete beta.
I'd suggest the you download Beta 2, then see if your issues have been
addressed.

http://lab.msdn.microsoft.com/vs2005/

--
Peter [MVP Visual Developer]
Jack of all trades, master of none.

Jul 21 '05 #3

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

Similar topics

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...
0
by: Craig Lichtenstein | last post by:
As I’ve been reading about msbuild, I’ve noticed articles that mention msbuild’s incapability to natively read .vcproj files. In short, executing msbuild blah.vcproj causes msbuild to invoke...
3
by: Jonathan Wilson | last post by:
Is it possible to use vcbuild with the free MS compiler toolkit, as in can someone with just the MS toolkit and no access to a copy of Visual Studio itself use vcbuild to compile a Visual Studio...
0
by: 3doutpost | last post by:
(apologies for the new thread - for some reason google news doesn't give me the option to reply to an earlier vcbuild.exe thread) I'm trying to build a C++ project that was originally created in...
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....
0
by: Colin Desmond | last post by:
I am trying to use VCBuild to automate our overnight build process. We have a collection of C++/CLI projects in a solution. There are "Reference" based dependencies between some of these, but...
2
by: jpetrang | last post by:
Can you tell me if the vcbuild $ALL is the same as the msdev ALL? If so, how do I use it? I have a VS 6.0 command "msdev ProjectName.dsw /make ALL /clean" which, I believe, builds all the .dsp...
0
by: jeanne.petrangelo | last post by:
I'm encountering something I don't expect at all. I have a solution made of multiple projects which I am trying to migrate from VS6 to VS2005. The original uses nmake and msdev, so I'm trying to...
0
by: Machhindra | last post by:
Hi, I want to write a VS 2005 add-in, which will build all the vc solutions in my source tree. Similar to "auto_Build" addin in previous versions of the studio. One way is to use batch file...
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: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
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
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

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.