Extend the Visual Studio C++ Build Process -
a found article (extend visual studio build process) explained how override build targets in c# project file. tested this, , seems work well. however, want override build target in c++ project (with visual studio 2005). problem c++ projects use different xml. instead of having <project>
root, c++ projects have <visualstudioproject>
root. when add <target>
tag c++ project file , try open project in visual studio, error:
the following error has occurred during xml parsing:
file: [path project file].vcproj line: 304 column: 30 error message: element 'target' unexpected according content model of parent element 'visualstudioproject'.
the file '[path project file].vcproj' has failed load.
how can override visual studio build target c++ project? or there better way customize happens during c++ build?
in visual studio 2005 there no build "targets" c++ builds c++ build system not use msbuild.
however, vc++2005 defines pre-build, pre-link, post-build events ability add custom build step non-standard files.
you may able achieve want using these settings.
note:
- vc++2005 projects can built using msbuild, it's not visual studio out of box.
- visual studio 2010 uses msbuild project types.
Comments
Post a Comment