visual studio project files
Asked Answered
M

1

46

What is the difference between a .vcproj and a .vcxproj Visual Studio project file? Is the .vcproj format only available in versions of Visual Studio prior to 2010?

I ask because I am reading an MSDN tutorial dated 10/12 which says to insert text into a certain area of the .vcproj file that doesn't exist in the .vcxproj file. Trying to put the text in a similar area breaks the project.

Magnuson answered 2/12, 2012 at 3:24 Comment(2)
Out of curiosity, what tutorial are you watching that asks you to modify the vc(x)proj by hand?Ecstasy
The .vcproj and .vcxproj file formats are really completely different. That's why they changed the names. What works with a .vcproj file will not work with a .vcxproj file.Taboo
K
42

Build System Changes

Project files no longer use the .vcproj file name extension. Visual Studio automatically converts project files that were created by an earlier release of Visual C++ to the format that is used by the current system. For more information about how to manually upgrade a project, see /Upgrade (devenv.exe).

The MSBuild system is used to build Visual C++ projects. However, in Visual Studio 2008 and earlier releases, the VCBuild system was used. Certain file types and concepts that depended on VCBuild either do not exist or are represented differently in the current system.

In the current release, the file name extension for a project file is .vcxproj.

Here is your answer: it has been changed from .vcproj to .vcxproj

Knapsack answered 2/12, 2012 at 3:29 Comment(4)
Hmm. I guess the tutorial is outdated even though it has a build date of 10/12. :(Magnuson
Basically, .vcproj is used by the old VCBuild system, and .vcxproj is used by the new XML based MSBuild system.Lilybel
"No longer"? ..."Current system"? ...Can you please be clear at what point the change occurred ...Eg. "?VS2010? was the last version to us vcproj, all later versions use vcxproj"Ouzel
@Ouzel "The MSBuild system is used to build Visual C++ projects. However, in Visual Studio 2008 and earlier releases, the VCBuild system was used."Electrolyte

© 2022 - 2024 — McMap. All rights reserved.