vcproj file and MS build?

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

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
 
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,
 
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

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,[/QUOTE]
 
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,
 
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.dll"/>
<Target Name="MyTarget">
<SimpleTask3 MyProperty="Hello!"/>
</Target>
 
sandy said:
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.dll"/>
<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
 
Carl said:
.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.
 
Ben said:
I've give you that one.


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
 
Back
Top