473,406 Members | 2,849 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,406 software developers and data experts.

vcproj file and MS build?

Can anybody shed some light... Confused here :((
Isn't VS.2005 supposed to use the new build system, that can be invoked
separately from the IDE?
If yes, why it creates vcproj files? Are these files compatible
with msbuild? Or, can they be exported to the build?

Regards,
--PA

Nov 23 '05 #1
8 2327
"=?Utf-8?B?UGF2ZWwgQS4=?=" <pa*****@NOwritemeNO.com> wrote in
news:C7**********************************@microsof t.com:
Can anybody shed some light... Confused here :((
Isn't VS.2005 supposed to use the new build system, that can be
invoked separately from the IDE?
Yes, using vcbuild.exe for C++ projects and using msbuild.exe for C#/VB
projects.
If yes, why it creates vcproj files? Are these files compatible
with msbuild? Or, can they be exported to the build?


They're not compatible with msbuild. You need to use vcbuild.exe. If you
invoke msbuild.exe on a solution with only C++ projects, it will shell
out to vcbuild.exe (and make you lose the nice multi-proc build
facility).

Thanks,
--
Tarek Madkour, Visual C++ Team
This posting is provided "AS IS" with no warranties, and confers
no rights.
Nov 23 '05 #2
Thank you Tarek!
can you be so kind and give me more pointers about vcproj XML -
how we can add custom properties, actions on build events, etc,
outside of the IDE ?

Thanks a lot
--PA

"Tarek Madkour [MSFT]" wrote:
<pa*****@NOwritemeNO.com> wrote in
news:C7**********************************@microsof t.com:
Can anybody shed some light... Confused here :((
Isn't VS.2005 supposed to use the new build system, that can be
invoked separately from the IDE?


Yes, using vcbuild.exe for C++ projects and using msbuild.exe for C#/VB
projects.
If yes, why it creates vcproj files? Are these files compatible
with msbuild? Or, can they be exported to the build?


They're not compatible with msbuild. You need to use vcbuild.exe. If you
invoke msbuild.exe on a solution with only C++ projects, it will shell
out to vcbuild.exe (and make you lose the nice multi-proc build
facility).

Thanks,
--
Tarek Madkour, Visual C++ Team
This posting is provided "AS IS" with no warranties, and confers
no rights.

Nov 24 '05 #3
"=?Utf-8?B?UGF2ZWwgQS4=?=" <pa*****@NOwritemeNO.com> wrote in
news:D7**********************************@microsof t.com:
can you be so kind and give me more pointers about vcproj XML -
how we can add custom properties, actions on build events, etc,
outside of the IDE ?


Certainly, the xml schema is published at:
http://msdn2.microsoft.com/library/2208a1f2.aspx.

You can also try adding simple custom build rules and property sheets
and check the output .vcproj files for samples. It's all pretty
intuitive to follow.

Thanks,
--
Tarek Madkour, Visual C++ Team
This posting is provided "AS IS" with no warranties, and confers
no rights.
Nov 30 '05 #4
Great, exactly what I looked for. Thanks!

"Tarek Madkour [MSFT]" <ta****@online.microsoft.com> wrote in message news:Xn*****************************@207.46.248.16 ...
"=?Utf-8?B?UGF2ZWwgQS4=?=" <pa*****@NOwritemeNO.com> wrote in
news:D7**********************************@microsof t.com:
can you be so kind and give me more pointers about vcproj XML -
how we can add custom properties, actions on build events, etc,
outside of the IDE ?


Certainly, the xml schema is published at:
http://msdn2.microsoft.com/library/2208a1f2.aspx.

You can also try adding simple custom build rules and property sheets
and check the output .vcproj files for samples. It's all pretty
intuitive to follow.

Thanks,
--
Tarek Madkour, Visual C++ Team
This posting is provided "AS IS" with no warranties, and confers
no rights.

Dec 1 '05 #5
How to excute a task/target from vcproj file ? I want to include following
task from my vcproj file , how to do it ?
Just include this section in vcproj filr ?

<UsingTask TaskName="SimpleTask3.SimpleTask3"
AssemblyFile="SimpleTask3\bin\debug\simpletask3.dl l"/>
<Target Name="MyTarget">
<SimpleTask3 MyProperty="Hello!"/>
</Target>
Jun 27 '08 #6
sandy wrote:
How to excute a task/target from vcproj file ? I want to include
following task from my vcproj file , how to do it ?
Just include this section in vcproj filr ?

<UsingTask TaskName="SimpleTask3.SimpleTask3"
AssemblyFile="SimpleTask3\bin\debug\simpletask3.dl l"/>
<Target Name="MyTarget">
<SimpleTask3 MyProperty="Hello!"/>
</Target>
..vcproj files are not MS build files - there's no way to embed an MSBuild
task inside a vcproj file. Instead, you need to reference the vcproj file
from an MSBuild file that includes your custom task.

-cd
Jun 27 '08 #7
Carl Daniel [VC++ MVP] wrote:
sandy wrote:
>How to excute a task/target from vcproj file ? I want to include
following task from my vcproj file , how to do it ?
Just include this section in vcproj filr ?

<UsingTask TaskName="SimpleTask3.SimpleTask3"
AssemblyFile="SimpleTask3\bin\debug\simpletask3.dl l"/>
<Target Name="MyTarget">
<SimpleTask3 MyProperty="Hello!"/>
</Target>

.vcproj files are not MS build files - there's no way to embed an
I've give you that one.
MSBuild task inside a vcproj file. Instead, you need to reference
But this I highly doubt. The custom build step capability is very
powerful.. You should be able to invoke an MSBuild task during build of your
C++ project with no trouble, with a little extra effort you should be able
to store the task definition in your build target as well.
the vcproj file from an MSBuild file that includes your custom task.

-cd

Jun 27 '08 #8
Ben Voigt [C++ MVP] wrote:
Carl Daniel [VC++ MVP] wrote:
>sandy wrote:
>>How to excute a task/target from vcproj file ? I want to include
following task from my vcproj file , how to do it ?
Just include this section in vcproj filr ?

<UsingTask TaskName="SimpleTask3.SimpleTask3"
AssemblyFile="SimpleTask3\bin\debug\simpletask3.dl l"/>
<Target Name="MyTarget">
<SimpleTask3 MyProperty="Hello!"/>
</Target>

.vcproj files are not MS build files - there's no way to embed an

I've give you that one.
>MSBuild task inside a vcproj file. Instead, you need to reference

But this I highly doubt. The custom build step capability is very
powerful.. You should be able to invoke an MSBuild task during build
of your C++ project with no trouble, with a little extra effort you
should be able to store the task definition in your build target as
well.
That's true - you could do it with either side (VCBuild or MSBuild) as the
driver.

-cd
Jun 27 '08 #9

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

Similar topics

5
by: Lin Ma | last post by:
Hello, What is the .VCPROJ file? I only installed C#.net and VB.net for the .Net studio 2003. Do I need to install more application to read this file? Thanks, Lin
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...
5
by: Jacobo Rodriguez Villar | last post by:
Hello, Is there any way (or program) to convert and maintain easily a C++ project (vs7.1) to a Makefile file, in order to build it in Linux? Many thanks -- Jacobo Rodríguez Villar ...
5
by: -DG- | last post by:
I had thought that all VC compile/link options could be set from within Visual Studio but apparently that's not the case. The .vcproj file seems to hold refs to old files despite changes to...
0
by: futurefrontiers | last post by:
I have about 300 .mak files that I would like to convert to VC7 .vcproj files. I know I can do this inside Visual Studio IDE. But I'd like to avoid the painstaking process of opening each file in...
2
by: Anil Gupte | last post by:
I get an error saying "The application for project "C:\...\fbridge.vcproj" is not installed." "Make sure the application for the project type (.vcproj) is installed." -- Anil Gupte...
12
by: Anil Gupte | last post by:
I have recently installed VC#, VC++ and VB 2005 Express Edition. Someone had sent me the sln file to load it into C# and so I tried, and I get an error saying: "The application for project...
3
by: Ed | last post by:
Hello, guys, Here I have a VC project. I used to build it in VS.Net IDE. But because of cross platform requiremment, it need to be ported into Linux. First I need to consider the build...
3
by: tvnaidu | last post by:
porting windows static libs and dll into linux static lib abd shared lib, any tool to convert vcproj files to Linux makefiles? porting windows static libs and dll into linux static lib abd shared...
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: 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
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.