visual-studio

What's the most abused features in Visual Studio / C#?

For me, No.1 has to be code folding. #region xxx #endregion All of sudden, people find an excuse to have big classes(files) because they can "organize" them nicely. I once saw a half-page-long class with 3,000 lines. I was speechless and they were like "what's the problem"? No.2 is partial class. It's actually a nice feature especial...

ReflectedSchemas folder in the user's AppData folder (Visual Studio)

Today I ran WinDirStat to check what is filling up my harddisk. I was surprised to see that this folder contains 4.6 GB (!): C:\Users\...\AppData\Roaming\Microsoft\VisualStudio\9.0\ReflectedSchemas What is the purpose of this folder and the files it contains? Is there a way to get rid of these files in a safe way? Thanks! ...

Is there anything I can do to make "help" load faster in Visual Studio 2008?

Loading Help or clicking F1 in Visual Studio is horribly slow to load and has been on ever PC I have installed it on. Is there any optimizations that can be employed to ease this pain? This is not the same question as Visual Studio Optimizations I am just trying to solve the problem with help loading. ...

Has anyone managed to get Visual Studio 2003 running on Windows 7?

Yes, I know... I could set up a virtual machine running XP. Unfortunately our build environment is such that we need to be running VC2003, 2005 and 2008 concurrently and it would be much more convenient if I could run 2003 natively on Windows 7 for the few projects we have that require it. I realize some things may not be available in ...

MSVC equivalent to '__builtin_return_address'

With msvc, is there an equivalent to gcc's "__builtin_return_address"? I'm looking to find the address of the calling function, 1 level deep. ...

How do I open a new visual studio instance using EnvDTE?

I'm using the EnvDTE COM objects to automate Visual Studio. I'm still looking through the documentation, however, I figured I'd drop the question here to see if someone already knows how to do this. So, the problem is that when I get the DTE object and look at what Solution is open, I need to open another instance of Visual Studio if th...

Use project designer with multiple setting files

In one of my class libraries I use multiple setting files to seperate settings based on components. In the VS project designer you can use automatic ApplicationSettings to store forms data (controls, checkboxes, etc...). If there is only one settings file in the project it will use this, however using multiple settings files confuses the...

Will installing Visual Studio 2010 side by side with VS2008 cause problems?

What kind of problems might this cause? Is it better to install in a VM? ...

Can I create a visual studio 2008 starter kit that is based on a solution file with multiple projects

I have successfully managed to create Visual Studio starter kits in the past, however as far as I am aware they can only be made at the project level. I have a solution that contains multiple projects that I want to distribute throughout an organisation for several software projects. The starter kit that I want to make is at the soluti...

cxxTestgen.py throw a syntax error

I've follow the tutorial on http://cxxtest.com/index.php?title=Visual_Studio_integration and I've looked on google but found nothing. When I try to lunch a basic test with cxxtest and visual studio I get this error : 1>Generating main code for test suite 1> File "C:/cxxtest/cxxtestgen.py", line 60 1> print usageString() 1> ...

Running small C++ programs in Visual Studio without creating projects

Hi stackoverflowers is there any way to build/run small C++ programs, in Visual Studio without creating projects, like in old days in IDEs like turbo c++ you could just compile and run without creating projects. Thanks in advance! ...

CoCreateInstance for EnvDTE without an AddRef()?

This is somewhat related to another question that I've asked that I've pretty much figured out. The last piece of the puzzle is using CoCreateInstance() instead of GetActiveObject(). I don't want to use an existing instance of EnvDTE, so I call CoCreateInstance, which properly fires off a new instance of VisualStudio. CoCreateInstance() ...

How to create addin for VS2005.?

Hi, i want to convert my window application, that i developed in VS2005 using C#, as an Add in for Visual Studio 2005. How can i do it.? ...

Visual studio 2008 crashes when starting to debug

When I press F5, everything compiles fine, but when the app is to be started, VS crashes, showing the "Just in time debugger" dialog. More than one (similar) solution has this problem. A new solution containing just a form, works. This problem started out of the blue, I have made no changes to the environment as far as I can understand....

on which os should i try the vs2010 beta1? which emulator is faster?

I just downloaded the VS 2010 Beta1 Pro and I want to setup a vm to try the new devenv. Which os and which emulator software should I try for the best performaces? (currently I've XP sp3, Win 7 RC, Win 2008). ...

Problem with Visual Studio 2010 with Windows 7 RC1

Has anyone run into the error where your upgrading a VS2008 project which targets .NET 3.5 to VS2010 and the error message states that you don't have .NEt 3.5 installed? Snippet from the error message below "is targeting ".NETFramework, Version=v3.5, Profile=Full", which is not installed on this machine" I know that running multiple...

What does the 'Validating Web Site' step do when building an ASP.Net website?

It's taking some time to do every time I debug my application. Is it something I can speed-up or skip? ...

Subversion: Tortoise+AnkhSVN

Open Ankh seems to be using Subversion 1.6.2 and Tortoise uses Subversion 1.6.0. After creating a repository with Tortoise I could not get ankh to see it. After downloading subversion and doing svn admin -create --pre-1.6-compatible z:\......\etc.. now ankh can see it. This is my first time using version control, and maybe I don't nee...

How can I write additional test information to the screen during a testrun?

I want to output some additional information about a test run that I can quickly visually review. It doesn't affect the outcome of the test. I am familiar with Assert.Inconclusive(String) but I want the test to pass/fail on it's own. ...

Subsonic 3 T4 Templates - Output half of a View to a UserControl

I am using the Subsonic MVC Template and in the List.tt template it loops through all the properties and puts them into an HTML table. I would like that table written to a usercontrol but after a few hours I cannot get it to work properly. The T4 templates can be found here http://code.google.com/p/subsonicproject/downloads/list. ...