visual-studio

Visual Web Developer Express and .NET, et al.

I'm coming from the open source world, and interested in giving ASP.NET a spin. But I'm having a little trouble separating the tools from the platform itself in regards to the licensing. I've downloaded Visual Web Developer 2008 Express, but not sure how different this is from one of the full-featured Visual Studio licenses -- and whethe...

GUIDs in a SLN file

Visual Studio Solution files contain two GUID's per project entry. I figure one of them is from the AssemblyInfo.cs Does anyone know for sure where these come from, and what they are used for? ...

Centralizing/controlling arbitrary builds of .NET projects and solutions.

Over the years I have created and tweaked a set of NAnt scripts to perform complete project builds. The main script takes a single application end point (a web application project for example) and does a complete, from source control, build of it. The scripts are preconfigured with the necessary information regarding build output locat...

Why can't Visual Studio run on more than one core? CPU at 25%

I'm running Visual Studio 2008 with the stuff-of-nightmares awful MS test framework. Trouble is that it's sending my CPU to 100% (well 25% on a quad-core). My question is why can't Visual Studio run on more than one core? Surely M$ must have a sufficient handle on threading to get this to work. ...

Locate and add project reference for .Net assembly containing a given type?

I'm working with a large (270+ project) VS.Net solution. Yes, I know this is pushing the friendship with VS but it's inherited and blah blah. Anyway, to speed up the solution load and compile time I've removed all projects that I'm not currently working on... which in turn has removed those project references from the projects I want t...

Could not load type 'XXX.Global'

Migrating a project from ASP.net 1.1 to ASP.net 2.0 and I keep hitting this error. I don't actually need Global because I am not adding anything to it, but after I remove it I get more errors. ...

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

Are there any free tools available to view the contents of the solution user options file (the .suo file that accompanies solution files)? I know it's basically formatted as a file system within the file, but I'd like to be able to view the contents so that I can figure out which aspects of my solution and customizations are causing it ...

How can I monitor trace output of a .Net app?

I'm working on some code that uses the System.Diagnostics.Trace class and I'm wondering how to monitor what is written via calls to Trace.WriteLine() both when running in debug mode in Visual Studio and when running outside the debugger. ...

Rehsarper 4.0 - Renaming a class does not rename the file

I probably set something on accident in the options, but I can't find it. Any ideas? ...

What’s the best approach when migrating legacy projects across versions of visual studio?

I’ve been thinking about the number of projects we have inhouse that are still being developed using visual studio 6 and how best to migrate them forward onto visual studio 2008. The projects range in flavours of C/C++ and VB. Is it better to let VS2k8 convert the workspaces into solutions, fix any compile errors and be on your merry wa...

Which C# project type would you use to redevelop a MFC C++ activex control?

Looking at the C# project templates in VS2k8 and the offerings are WPF User Control Library, WPF Custom Control Library and Windows Forms Control Library. Which of these would you use if you wanted to move a legacy active control written in c++ into the world of C# and .NET? ...

Very slow compile times on Visual Studio

We are getting very slow compile times, which can take upwards of 20+ minutes on dual core 2GHz, 2G Ram machines. A lot of this is due to the size of our solution which has grown to 70+ projects, as well as VSS which is a bottle neck in itself when you have a lot of files. (swapping out VSS is not an option unfortunately, so I don't w...

Visual studio automation: Enumerate opened windows upon solution loading.

How to enumerate opened code windows (i.e. those windows where you edit documents) upon solution loading using macros? As you probably know, MSVS remembers opened documents, i.e. when you load solution, IDE will load previously opened files. What I want to do is to perform some actions with those windows upon solution loading. I tried ...

Arithmetic underflow or overflow exception during debugging

This is the day of weird behavior. We have a Win32 project made with Delphi 2007, which hosts the .NET runtime and calls into .NET to show new forms, as part of a transition period. Recently we've begun experiencing exceptions at seemingly random locations and points of our code: Arithmetic overflow or underflow. The stack trace of on...

ToolStrips in TabPages frequently disappear from Windows Forms designer

I have a Windows Form app with a TabControl. One of the TabPages in the TabControl contains a ToolStrip. Frequently, the Windows Form designer will spontaneously set the Visible property of the Toolstrip to False. To get the toolstrip to reappear in my form, I have to manually find the control and set the property back to True. It's real...

How can I stop losing all my IDE window position when pressing the start debugging button ?

I use Visual Studio 2008. I haven't seen this behavior before and, as far as I know, I didn't change anything in the options. When I press Start debugging all the possibly windows (watch 1 - 4), data sources, properties, registers (to be honest I have not even ever seen these windows before) appear in front of the code window and stay ...

I don't get the concept of Visual Studio Projects and Solutions.

In Eclipse, I have a workspace that contains all of my projects. Each project builds and compiles separately. A project does not interact with another project. How does this relate to Visual Studio and Projects/Solutions there? ...

How to "Add Existing Item" an entire directory structure in Visual Studio

I feel ridiculous for asking this because it seems like it should be so simple, however I have been unable to discover an answer to this question. I have a free standing set of files not affiliated with any C# project at all that reside in a complicated nested directory structure. I want to add them in that format to a different directo...

How to attach debugger to step into native (C++) code from a managed (C#) wrapper?

Hi all, I have a wrapper around a C++ function call which I call from C# code. How do I attach a debugger in Visual Studio to step into the native C++ code? This is the wrapper that I have which calls GetData() defined in a C++ file: [DllImport("Unmanaged.dll", CallingConvention=CallingConvention.Cdecl, EntryPoint ...

Compiling code on an external drive

To make things easier when switching between machines (my workstation at the office and my personal laptop) I have thought about trying an external hard drive to store my working directory on. Specifically I am looking at Firewire 800 drives (most are 5400 rpm 8mb cache). What I am wondering is if anyone has experience with doing this ...