vcproj

Can the working directory be set in the project (.vcproj) file?

I have a script that generates a .sln file and a few .vcproj files for visual studio 2005. I need to set the WorkingDirectory option but its specified in the .user file. A file we cannot currently generate. I found the vcproj file definition at msdn, but it seems that this option cant be set from there. How does one specify "Configura...

Select "Target Device" in vs2005's vcproj file.

I created a new project file using visual studio 2005. My target is to build for WinMobile 5.0 Pocket PC device. But I do not see the "Target Device" Bar enabled to select from it. Though I can go to project properties and select the device option but I want it to show up on the bar. Any idea about that ? Also, If I copy the UUID from e...

Where can I find a reference for the .vcproj file structure?

I looked on MSDN, couldn't find it. I found an XML Schema for the .vcproj file, which is nice. But what I really want is an explanation for each of the elements in the vcproj file, a reference. The immediate question in front of me is, what is the significance of the UniqueIdentifier attribute in the element VisualStudioProject/Files/Fi...

How do I get msbuild.exe? Can it build a .vcproj when VS2008 is not installed?

I know msbuild will be installed, if I install Visual Studio 2005 or 2008. I know msbuild is also installed if I install the .NET Framework SDK. As of .NET 3.0, I think there is no longer a separate ".NET Framework SDK". Instead if I want the free SDK stuff - all the .NET command line tools, all the base class libraries - then I ...

How to have different Project Dependencies for each Project Configuration?

I would like to have different Project Dependencies depending on which Project Configuration I'm currently building. For example, I don't want to build and link SomeTestLib.vcproj in Release configuration, but I'd like to build and link to it in Debug. One solution, that sorta works, is to use conditional compilation macros: #if...

VS2008: how to run two separate projects from the same solution

I have a single un-managed C++ console-app solution (.sln) with two projects (.vcproj) both are built as .exe. I want to run them both at the same time (one is a client and one is a server). How do I configure my Visual Studio such that when I hit a single button, say F5, it would be smart enough to run one after another, in the order th...

VS2008 - Can't remove project configuration

I have a Windows Mobile/Pocket PC project in Visual Studio 2008 SP1. I have tried to remove an old build configuration "ReleaseCN3" from the solution using the Configuration Manager. I run the Configuration Manager, click on Edit, then highlight the "ReleaseCN3" configuration and click Remove. The configuration is removed from the lis...

How to generate .sln/.vcproj using qmake

Hi! I have main.cpp in c:\test folder and do the following: qmake -project qmake -tp vc test.pro The answer is: WARNING: Unable to generate output for: C:/test//Makefile.Debug [TEMPLATE vcapp] WARNING: Unable to generate output for: C:/test//Makefile.Release [TEMPLATE vcapp] But, I don't need make files. I need .vcproj! Environme...

Consecutive build of VS2005 and VS2008 C++ projects causes LNK1104 error

I have VS2005 and VS2008 installed on the same machine. I also have a common codebase that I build using both '05 and '08. For this purpose, I have 2 VC projects.. A '08 project called XYZ_2008.vcproj and a '05 project called XYZ_2005.vcproj, and the corresponding 2 slns as well. Both projects output dlls, libs and pdbs to the same outpu...

What is the delimiter name of a C# project file?

What is the file name "delimiter? name of a C# project file? I am not sure if "delimiter" is the right term. A solutions file ends as ".sln". How does a project file end in Visual Studio 2010? ...

What are the other possible names of project files in C# other than .cproj?

.cproj is not the only name of the project file. My solution says there are 5 projects but only three .cproj files are seen. What is the file extinsion of other project files/? THe icon that represents the other two look different as well: ...

Reading the .vcproj file with C#

We create the vcproj file with the makefileproj keyword so we can use our own build in VS. My question is, using C#, how do you read the "C++" from the following vcproj file: <?xml version="1.0" encoding="Windows-1252"?> <VisualStudioProject ProjectType="Visual C++" Version="8.00" Name="TestCSProj" ProjectGUID="{840501C9-6AFE-8CD6-1...

Cleaning up vcproj files

We have a fairly big code base with several platform and build configurations, and our vcproj files keep growing exponentially. We are using visual studio 2005. The problem is that every time we add a build configuration or platform all file configuration needs to be multiplied for each files in project. For example: <FileConfiguration...

Does the vcproj file contain information about what version of the CRT the compiler should use?

I have created a simple application to test out migrating some C++ code to .Net. Part of that test was to include all the libraries that were present in the old app. When I tried to create an object from .Net it fell over with a missing .dll error. Looking at the manifest for the dll I have created it is referencing MSVCRT80D.dll and...

How can I read the OutputDirectory property from a vcproj (2008) file in a wrapper script?

I am trying to write an MSBuild wrapper script that builds a vcproj (well, a solution containing vcproj files) and then copies the output of a particular vcproj file into a special "package" directory that is in turn published out to a file share. I need to do this for several Configurations and Platforms (Debug, Release, Win32, x64). ...

In the VS2008 vcproj file how important are the ProjectGUID and the UniqueIdentifier?

I have copy and pasted entire C++/CLI projects and been able to run them without any trouble as long as the relative paths to assemblies, headers, and libs remain the same. In each one of these copied projects the vcproj files are exactly the same (as one would hope). I have been doing this so that we can use one project as a template ...

Why Visual Studio removes the drive letter from the AssemblyReference RelativePath when editing a project?

Hello, using visual studio we always load and build references to a unit (R:). The problem is that when someone edits any project properties the drive letter is removed from the assembly path and then the build machine can not build the application. The project file looks like this when created: <References> <AssemblyReference ...