Visual Studio 2010 & 2008 can’t handle source files with identical names in different folders?

So @Hans Passant pointed in the right direction, Thanks!! You don’t have to list the file, a folder is sufficient. Then if you look in the defined macros at the bottom of the VS 2010 list, you’ll see: %(RelativeDir)/ Univariate/ The problem, as posted, was actually a simplified version of what I’m working on — … Read more

How do I programmatically list all projects in a solution?

Here’s a PowerShell script that retrieves project details from a .sln file: Get-Content ‘Foo.sln’ | Select-String ‘Project\(‘ | ForEach-Object { $projectParts = $_ -Split ‘[,=]’ | ForEach-Object { $_.Trim(‘[ “{}]’) }; New-Object PSObject -Property @{ Name = $projectParts[1]; File = $projectParts[2]; Guid = $projectParts[3] } }

Tool to view the contents of the Solution User Options file (.suo)

A bit late for the original poster, but maybe useful to others. Two freeware viewers for structured storage files (including .suo-files): https://github.com/ironfede/openmcdf (old URL: http://sourceforge.net/projects/openmcdf/) http://www.mitec.cz/ssv.html (free for non-commercial use) When you open a .suo file in one of these viewers, you will see streams related to: Bookmarks Debugger watches Unloaded projects Outlining Task-list user … Read more

How to save DLLs in a different folder when compiling in Visual Studio?

There are 2 parts of your question: How to configure solutions to build assemblies/EXE into folders of your choice – this is configured through properties of the project in VS (project properties -> build -> output path). Also value of check “copy local” property on each reference. How to load assemblies files from non-default locations … Read more

VS2008 Setup Project: Shared (By All Users) Application Data Files?

I have learned the answer to my question through other sources, yes, yes! Sadly, it didn’t fix my problem! What’s that make me — a fixer-upper? Yes, yes! To put stuff in a sub-directory of the Common Application Data folder from a VS2008 Setup project, here’s what you do: Right-click your setup project in the … Read more

visual c++: #include files from other projects in the same solution

Settings for compiler In the project where you want to #include the header file from another project, you will need to add the path of the header file into the Additional Include Directories section in the project configuration. To access the project configuration: Right-click on the project, and select Properties. Select Configuration Properties->C/C++->General. Set the … Read more