visual-studio

Creating Unit Tests in VS2008, unnecessary references?

Creating Unit Tests in VS2008 (rightclick, create unit tests) causes a lot of references to be added to my testproject. These are the same references that the project being tested is using. Why is this necessary? Is there an option somewhere to turn it off? ...

What are the licensing terms of the Visual Studio Image libraries?

What are the licensing terms of the images installed with Visual Studio at %Program Files%\Microsoft Visual Studio\9.0\Common7\VS2008ImageLibrary\1033\VS2008ImageLibrary ...

Keep VS2005 in sync with filesytem?

Is there an easy way to keep VS2005 project in sync with changes made directly on filesystem? In eclipse I can simply "refresh" the project and any changes show up. Does something similar exist in VS? ...

Suggestions for maintaining Visual Studio vcproj project files in version control

Microsoft Visual Studio uses XML to save its .vcproj project files. So diffing XML project files should be easily. Unfortunately, if you change any of the project file's properties, Visual Studio insists on randomly shuffling the XML nodes of the project file! This makes textual diffing and merging of project file changes basically impo...

Why do I need to convert my visual studio solutions with every new release?

Every time Microsoft releases a new version of visual studio, they always require me to convert my solution and project files to 'the latest version.' Even with something as simple as a "Hello World" solution, I need to go through their conversion wizard! And, to make things worse, the new visual studio solution files aren't compatible...

Visual Studio switch statement formatting

I'm using Visual Studio 2005. It always wants to format switch statements like this: switch (thing) { case A: stuff; break; case B: things; break; } Is there a way to have it indent the cases like this?: switch (thing) { case A: stuff; break; case B: things; break; } ...

visual studio express edition features

DO you know if the express edition of visual studio 2005/2008 supports calling of managed C++ code from C#? ...

Easily (GUI?) creating custom VS project template?

Is there an easy way to create custom project templates? I did a quick google, but it seems I have to fuzz around with all kinds of zip files, xml documents etc.. What I ultimately want to make is something like the Empty Solution template, but with some directories and custom projects already in place. I want this because it would mak...

Extra space while installing .msi

I have extra space in my custom made .msi. The data to be installed has about 600MB and the installer says it needs 1.4 GB.Switching to a different location then the predetermined one (e.g from C:\Program Files\My_App to F:\My_App) shows that it always need approximately 800 MB on the Windows partition, which is in my case the extra spac...

How to make the Visual Studio compiler ignore a file?

Is anyone aware of a way to make visual studio completely ignore a file when compiling? I have a C# solution that has a foo.config file that isn't really a standard config file - it's just a text file. During compiling VS grabs a hold of the file and bombs. I'd like for it to act as though it's just a text file. I do not have the o...

Setting the contents of a textBox to upper-case on CurrentItemChanged

I would like the text in my textBox to be set to upper-case whenever currentItemChanged is triggered. In other words, whenever the text in the box changes I'd like to make the contents upper-case. Here is my code: private void rootBindingSource_CurrentItemChanged(object sender, System.EventArgs e) { toUserTextBox.Text.ToUpper(); ...

How might I use the W3C Markup Validator API in my .NET application?

I found that there's an API for the W3C Markup Validator. I had earlier asked: Is there a .NET library for the W3C Markup Validator API? Assaf's answer: This API is SOAP based. If you want to use it in a .net application you can just add the web reference and code against it. Seems simple enough as it's basically a one-met...

Developers with VS 2005 and VS 2008 working on the same project(s)

We have a solution that has a website and a class library. We also have developers working in VS 2005 and VS 2008. The issue is when a user adds a file/removes a file from the class library it doesn't get added to the project file for the user(s) using the other version of VS. Also I had to setup our automated build to use one project fi...

Convert cs file encoding

I recently got asked to review a Visual Studio solution. One of the first things I did was run SourceMonitor on it. But when I tried to analyze it, I got an error that said SourceMonitor could not parse Unicode or UTF-encoded files. Is there a quick was to convert all of the .cs file in a solution to ASCII encoding? ...

Already have MSDN with Team System Test edition, how do I....

Already have MSDN with Team System Test Edition, how do I go about getting Developer Edition? Can't find it on MSDN. Do I need to buy a whole other MSDN license for this? Can you add just another SKU into the Team System family, in other words, can you have 2 Team System Versions, or does it have to be the Team $uite MegaVersion or si...

VS tool to find candidates for expressions.

Are there any tools that augment/replace intellisense with a search of for expressions that will result in a given type? I'm thinking of the case where I need to get some particular object and I known the type and will recognize the name but don't know what sequence of objects to jump thought to get to it. Such a tool would do a breadth...

Permissions Error Registering Assembly

I've waited a long time for concensus on moving from IIS to the built in web server for debugging our web application, one of the main reasons being that I don't always have to run VS as admin. We now have a COM dll included (exported by) in the solution, and on build it, VS tries to register this and complains because my regular user d...

C# dropdownmenuitem clicked and listview editing

I have 2 questions concerning C#. 1) I have a dropdown menu with several items in them. They are clickable, but when I click one, the older clicked one stays selected. Click another and the 2 original ones stay selected, and so on. I don't want this. What I want is that when I click one of the dropdownitems, that one is that selected on...

Tool to automatically reformat whole C# source tree in VS2008?

I have inherited a large source tree, C#, Visual Studio 2008. It has many quality issues, one of them is that the code is generally badly formatted. I am looking for a tool, preferably a plugin for Visual Studio, that will go over the whole solution and apply the same basic formatting that Visual Studio itself applies when, for example...

What's a good code coverage tool for use with Visual Studio (C++)?

I'm looking for a code coverage tool that I can easily use with Visual Studio. It must support c++. What have your experiences been with these applications? Did they work well with lots of lines of code? (we have somewhere in the region of a million lines of code). How well does it break down the results? Lines? Functions ? Classes? Does...