473,770 Members | 6,105 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 2347
"=?Utf-8?B?UGF2ZWwgQS4 =?=" <pa*****@NOwrit emeNO.com> wrote in
news:C7******** *************** ***********@mic rosoft.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*****@NOwrit emeNO.com> wrote in
news:C7******** *************** ***********@mic rosoft.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*****@NOwrit emeNO.com> wrote in
news:D7******** *************** ***********@mic rosoft.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.2 48.16...
"=?Utf-8?B?UGF2ZWwgQS4 =?=" <pa*****@NOwrit emeNO.com> wrote in
news:D7******** *************** ***********@mic rosoft.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="Simpl eTask3.SimpleTa sk3"
AssemblyFile="S impleTask3\bin\ debug\simpletas k3.dll"/>
<Target Name="MyTarget" >
<SimpleTask3 MyProperty="Hel lo!"/>
</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="Simpl eTask3.SimpleTa sk3"
AssemblyFile="S impleTask3\bin\ debug\simpletas k3.dll"/>
<Target Name="MyTarget" >
<SimpleTask3 MyProperty="Hel lo!"/>
</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="Simpl eTask3.SimpleTa sk3"
AssemblyFile="S impleTask3\bin\ debug\simpletas k3.dll"/>
<Target Name="MyTarget" >
<SimpleTask3 MyProperty="Hel lo!"/>
</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="Simpl eTask3.SimpleTa sk3"
AssemblyFile="S impleTask3\bin\ debug\simpletas k3.dll"/>
<Target Name="MyTarget" >
<SimpleTask3 MyProperty="Hel lo!"/>
</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
5133
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
2031
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 vcbuild to perform the actual ..vcproj processing. I’ve been working on a tool that converts .vcproj files to msbuild formatted files so, with the appropriate C++ tasks (including cl and link tasks), a user could build his code on the command...
5
11576
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 TyphoonLabs Lead Programmer
5
2560
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 project config. In other words, there are NO refs to a given lib file within the entire project->properties menu hierarchy. Yet the linker is looking for a missing file. It is ref'd only in the .vcproj file. This seems odd. Shouldn't vcproj be...
0
1365
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 Visual Studio and then converting it to .vcproj. Is there a way to do the same thing in the command window?
2
2377
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 www.keeninc.net www.icinema.com
12
9124
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 "C:\...\fbridge.vcproj" is not installed." "Make sure the application for the project type (.vcproj) is installed." The app is called Test, and there appears to be some kind of reference in there that calls this fbridge.vcproj. I can see the...
3
2594
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 environment. I need a tool to translate the vcproj or solution file into some other common build file, such as Makefile, or Ant Build XML. I check the Ant, Scons, and some other build tools. It seems there is
3
4695
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 lib, any tool to convert vcproj files to Linux makefiles? I have Visual studio 2005 vcproj files need to convert to Linux makefile, any clue how to do? Porting windows app to Linux, any tool to convert vcproj files to Linux Makefile?,...
0
9425
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10231
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10059
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10005
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
1
7416
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6679
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5452
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3576
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2817
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.