visual-studio

Print from Visual Studio Object Browser

I'm working on mapping two objects in .NET. I'd like to be able to print the properties list from the Object Browser window so I can look at the information simultaneously. Is there a way to print that information via Visual Studio 2008? Failing that, does anyone know of a good method to print a general definition of a class (property ...

Visual Studio hangs on build

When I try to build my projects in Visual Studio 2008, web sites won't build anymore, they hang on this stage: ------ Build started: Project: C:\...\Web\, Configuration: Debug Any CPU ------ Validating Web Site Building directory '/Web/Admin/Secure/'. Building directory '/Web/Admin/'. Building directory '/Web/Students/'. Building direc...

How do I do "svn st" in AnkhSVN for Visual Studio? -no text-

The title says it all. Just installed AnkhSVN and I see the equivalent of "svn up" but I'd prefer to run "svn st" first so that I don't just blindly update. Thanks! ...

Merging vcproj files - SCM's hell

Hi all, Merging project/solution files is a well-known disaster among developers/SCM admins performing merges in their source control. Take, for example, a common scenario: development is done on a project/solution in two different branches. When time comes to merge back into a main development line, there is a very small resemblence ...

Crystal Reports datasource in Visual Studio

Using Visual Studio 2005 with default install of Crystal Reports. When I create a report, Crystal asks for the database, and I give it my development db. In the app, I create a DataTable and pass it to the report, which is then handed to the CR Viewer. At runtime, neither the report object, nor the viewer need to see the db since I have...

Why is "array" a reserved word in C/C++?

Visual Studio syntax highlighting colors this word blue as if it were a keyword or reserved word. I tried searching online for it but the word "array" throws the search off, I get mostly pages explaining what an array is. What is it used for? ...

Merging Visual Studio solution files

Microsoft Visual Studio (2005 and 2008) seems to have fun shuffling the Project IDs (GUIDs) around each time we do a little change in a solution. We found that this little detail leads to frustration each time someone has to merge branches in Source control... We though about coding a little tool to sort those Project ids before Check I...

Refactoring tool in VS 2008?

At University we have VS 2005 and it has some refactoring tool like rename, extract method, extract class, etc. I have decide to download VS 2008 from MSDN and it has only Rename and Extract method, how can I activate the other? EDIT: I have downloaded Microsoft VS 2008 C# Express Edition. ...

How can I disable horizontal scrolling in a WPF listbox?

This seems to be an absurdly simple question but Google and SO searches yield nothing. How can I disable horizontal scrolling in a WPF listbox when items take up more horizontal space than is available in the box? ...

Why does stdafx.h work the way it does?

Hi all.. As usual, when my brain's messing with something I can't figure out myself, I come to you guys for help :) This time I've been wondering why stdafx.h works the way it does? To my understanding it does 2 things: Includes standard headers which we might (?) use and which are rarely changed Work as a compiler-bookmark for when ...

What is a solution folder in visual studio

I have a vs 2008 solution and I would like to include a real folder in the solution, but not at the project level, instead at the solution level. I noticed you can right click the solution and add a solution folder, but it comes up as some white folder, and I have my doubts as to exactly what it is supposed to be... basically on the f...

Is there a recommended number of lines of code per file?

Hello, I have a class file that contains all the classes that are needed for a certain web application. Currently I'm at line 7269 and it contains numerous classes. I'm not particularly worried but I've started to notice that when working on this file Visual Studio responds slower. I'm thinking that this may be caused by the size of the...

Dependencies of references not copied to output directory

I have a CommonUtils lib I have built into a dll which I file reference from several of my projects. CommonUtils depends on log4net.dll which was set as a file reference and copy-local=true when CommonUtils.dll was built. log4net.dll and CommonUtils.dll are not in GAC. Everything works fine in MyWorkingProject where I only have a file r...

Visual Studio - Publish to multiple locations?

Hi, Is there a way to automatically publish a website to multiple locations at once? Our website is load balanced across multiple servers, so when I want to publish I have to do it to each server individually. Thx, Trev ...

getting value from other column besides the valuemember column in Infragistics ultracombo

I am fairly new to using infragistics controls (started yesterday). While they are (very) impressive they do add another layer of complexity, which I am muddeling through. So I am asking what I feel to be a fairly simple issue: I am trying to get the value from another column besides the one that is displayed in the combobox. So far all...

What are all these Visual Studio 2005 files for?

I just (re-)joined a company to work on some C++ projects. I'm looking at the files and I'm trying to figure out what all the Visual Studio related files are. Many I suspect are orphans from previous versions of the IDE. I've listed all the file extensions below and annotated the ones I think I understand. If can provide more informatio...

Visual c++ 2008: how to have global settings defined in a solution

I have a number of solutions with a large number of projects in them. I would like to be able to define global settings for the solution that are used by all projects. For example an include directory. I want to be able to change the include directory in one place for all projects in the solutions. When I searched for a solution I foun...

Code analysis/FxCop in VS2008

FxCops is something new to me, but as always I would like to get to know the new things.. From what I've read, FxCops is already included in VS2008. I guess it's the "Code Analysis" function. Whenever I try to run it though, it seems to start a rebuild and end in the "Finished Rebuilding" state. I checked the output window and there are ...

Setting both Debug and Release settings in Visual C++ 2008

A common mistake when configuring the compilation/linking/etc. settings in VC++ 2008 is to set them in Release but not Debug (or vice versa) rather than setting them for "All Configurations". Any suggestions on how to avoid this kind of mistake? Some beginnings of ideas that I have: Find a way to make VC++ go to the "All Configuration...

Should the new MFC Feature pack contols appear in VS toolbox

I'm trying to use some of the new MFC feature pack controls on an existing MFC app, with VS2008 SP1. None of the new controls appear in the dialog-editor toolbox. Should I expect them to be there, and if so, do people have any suggestion for how to get them to appear? ...