visual-studio

Visual Studio 2008 Pro - How to get a quick report about the number of files/classes/lines of code in a solution or project

How would you get a quick report about the number of files/classes/lines of code in a solution or project? any one know of any free addons or hidden menus i dont seem to have found yet ? Edit: It would also be cool if it could give a run down of amount of whitespace/comments compared to actual code. ...

Visual Studio - view type from metadata

I remember that in previous installations of Visual Studio that I had, when I used the 'go to definition' option on a type that was not in the current solution it would display a tab showing the type as reflected from metadata. My current installation goes directly to the Object Browser. I prefered seeing the metadata version. Is there ...

My Visual Studio takes All integer, long variable value as hexadecimal

Hi, I have a problem regarding my visual studio 2005. I initialized an integer variable and attach debugger to it to check its value at run time. When I run the application, the value of variable it shows is hexadecimal equivalent to value initialized. How can change it to show in decimal? Thank you ...

Updating the version number of all assemblies in a solution

I've got a rather large solution in Visual Studio. Is there a way to update the Major / Minor version numbers for all the assemblies in the solution in one go? ...

Problems with project paths in Visual Studio

Hey, Im having problems moving my SSIS Projects to a new PC. At the moment I have all my Projects in C:\Documents and Settings\myname\My Documents\Visual Studio 2005\Projects But my .dtsx packages are located in a different folder. This folder does not exist on my new pc. So whenever I try open the projects on my new PC It complains i...

Extracting doc comments from C# source file

Does anyone know of any tools that allow you to extract comments directly from a .cs file in to some simple text or even the clipboard? Even better if such a tool could work at the method level too. I am not looking for something like Sandcastle that works at build time, I am looking for something that works on single source code files....

What does the suffix #DEN mean on the value of a variable

When debugging in VS2005 I have a float in the Locals window whose values is: 1.744e-039#DEN What does the #DEN signify/stand for? ...

format code from ide ( VS2008)

Every once in a while I will paste in some code and it will lose all its tabs and look pretty bad I know that in the vs2008 xml viewer there is a button to format(indent) all the code to the correct hierarchy Is there such a function or macro or shortcut key that i could apply this to a section of code (or to all the code in that windo...

How to find .CS files in a project folder that are no longer in the project?

As our projects have evolved over the years many .cs files have been removed from projects, renamed etc. but they remain in source control. So when you pull latest code you get all these .cs files that are no longer referenced in any .csproj file. Anyone know an easy, reliable mechanism for detecting these files and eliminating them? ...

How to detect if app is started from VisualStudio?

Hello, I've got one quick question. Is there any simple way to detect if .net 2.0/3.x winforms application is run from visual studio (in any configuration debug/release/custom) ? Best regards, Tomasz. ...

Silverlight user control vanishes in designer

I am writing an application in Silverlight that is supposed to retrieve weather data from Google and then display it. I was working on the layout in XAML and was going to see how it looked in the designer, but when I switched to the designer pane, a small notice said that an assembly had been updated, so I clicked it, and the user contro...

How should I unit-test a simple CRUD-class?

I am right now trying to do very, very simple stuff with unit-testing in VS2008, to get started and get a feel for this. I think I have testing of small non-database stuff down, but now I want to start testing my real solutions - that are almost always CRUD-heavy. So let's assume I have a class in the data-access layer, that does standa...

Is there any option to set in Visual Studio 2008 that would turn off the Silverlight XAML preview by default?

The preview for a silverlight usercontrol in vs2008 is mostly useless to me and it takes forever to load. I spend a lot of time switching to XAML only and minimizing the preview for every Silverlight UserControl that I open. Is there a setting whereby I can tell VS2008 to by default open these in XAML-only mode? ...

"Add Service Reference" is failing in VS

In MS's Visual Web Developer, I have a completely default ASP.NET web service project and another project. When use the right click menu on the second project to run "Add Service Reference", I can find the first project listed as an option but I get an error when I attempt to select it, I get an error Metadata contains a reference that...

How to automatically convert VS2003 classes to partial Designer.cs files?

I'm upgrading a project from Visual Studio 2003 to 2008 and wish to automatically generate XXX.Designer.cs files and update the corresponding XXX.cs original one. Any automatic way to do it? UPDATE: I'm referring to WinForms. Of course, I know the old style works but i'm looking for a way to go to the new style without doing it by hand...

How do I write a build batch script that runs vcvars32.bat, and then continues with the build?

I want to write a simple batch script that loads the Visual Studio build environment using vcvars32.bat and then continue with the build, using vcbuild. However, my script won't execute past the invocation of vcvars32.bat. The last output I get is: Setting environment for using Microsoft Visual Studio 2008 x86 tools. As you can see I'...

Why is Visual Studio / Resharper still slow after upgrading memory?

ReSharper suggests 4 GB of memory. I just upgraded my PC from 512 MB to 4 GB of memory (I have a Dell). Is there anything I need to do in Windows after installing this memory or should it be good to go right now? I was expecting to see a big boost in Visual Studio but it still seems slow. ...

Schema for .vssettings files?

I would like to hand edit a Visual Studio team settings file to make a few changes. Is there a documented schema anywhere (either XSD or English prose) for .vssettings files? ...

What OSS software should I use for enterprise software?

Summary: OSS Technologies that fit with MS C#, Dot Net, and VS enterprise development. I am not trying to be subjective. I need a finite list of MS C# specific enterprise practices with matching OSS software titles that work with MS MVC (outlined below). From there I can review and setup a "hobbie kit" installer for my dev team. I wa...

Assert.ReferenceEquals() Passes where Object.ReferenceEquals() returns 'false' in Visual Studio Test

In attempting to create an initial, failing unit test in Visual Studio Professonal 2008's test capabilities, I can't seem to get Assert.ReferenceEquals() to correctly fail when an object instance is not equal to a null reference. Note that object.ReferenceEquals() is correctly returning false for this same comparison. Here is my class c...