visual-studio

Weird Click Behavior in VS 2005

I've noticed in Visual Studio (definitely 2005, I can't say for other versions), if I click on something no topmost in z-order (either in another pane of the interface, as when I have the window split, or when another program had focus), VS thinks I made a double-click instead of a single-click. This is very annoying in the case of havin...

VS 2005 Toolbox Messed Up

I'm not sure when it happened, but at some point, my Visual Studio 2005 grew a group named "#13119" that I can't delete (it even shows in the toolbox when I have a code file open - it's the only thing in there. Is there any way to fix this? I tried resetting the toolbox, and that didn't help. It's not a really big deal, but rather irkso...

SVN plugin for VS2008

Hi there, I'm using VisualSvn with my vs2008 and I have to run some sort of commit monitor in the tray area to see if the local copy of project is out of date. I have two problems with that: 1.I hate to have it in two places, I want to see that as an icon in my VS. 2.The commit monitor software keeps an eye on several projects, when ...

How to validate that some template does *not* compile for given argument types?

I'm writing a smart ptr template which is intended to be instantiated only for a given base class and its subclasses, which provides boost::shared_ptr-like implicit conversions to variants MyPtr<U> of the template MyPtr<T> has long as the conversion is valid from T* to U* (valid base class and const-compatible). This was working fine in...

visual studio 2008 / asp.net web forms - is hand coding ~80% of the time too much?

I still find myself hand coding Visual Studio projects more than using the variety of UI-driven menus and dialogs. For example: web projects: hand code html/css in Source View vs dealing with the Design View / Properties Window flushing out class files: code by hand using stuff like the prop-TAB-TAB Create Property keyboard shortcut a...

Visual Studio 2008 Plug-in / Add-in development - Getting Started

hey guys, in relation to this stackoverflow question, how would I go about creating my own Visual Studio 2008 plug-in. I've checked the Visual Studio Developer Centre on MSDN, but the amount of info is overwhelming. There are loads of project types, and I don't even know where to start. Where should I start looking if I want to write s...

Recursive nmake target

When recursively invoking nmake, via the $(MAKE) macro, how can I pass on the target specified on the command line to the new instance? So, say I execute the following from the command line: c:\nmake clean I want the recursive call to nmake to pass the 'clean' target to the new nmake instance. ...

Running Visual Studio in Parallels for mac - problem with debugging sites sitting in os x drive

I've installed parallels desktop on my MacBook to be able to run Visual Studio 2008 in a XP installation. Everything works great except when I decided to put my websites in my sites folder in the os x file system (Which by default automatically happens because the My Documents folder is mapped to the Mac's Documents folder, and I'd rathe...

How should SharePoint Visual Studio projects that share each other's code be managed?

My SharePoint Visual Studio solution structure currently contains these projects: Common: contains extension methods, helpers, frequently used controls, etc. Logging: would normally be included in Common but contains calls to native methods so marked 'unsafe' Site-specific project: one for each distinct site, containing features, web p...

vs 2008 broken snippets functionality

Is there a way to reset to the original vb.net snippets that came along with visual studio 2008? I recently installed a purchased third party lib, that managed to break almost all the default snippets. I can see that the snippets do physically exist in C:\Program Files\Microsoft Visual Studio 9.0\VB\Snippets\1033 but only the followi...

How to Compile a C# Project from Source

So I mean compile without visual studio ...

Visual Studio stack trace in notepad++

This is probably just a setting I'm not seeing, but when I get a stack trace out of Visual Studio's exception helper dialog, it has \r\n after each "line" in the call stack. When I copy this and paste it into Notepad++, it shows up as literally \r\n, visible in the document. Of course I'd like these to be interpreted as CR LF, so everyth...

Finding references in Visual Studio

I'm using Visual Studio and COM with C# for the first time and there's something I don't quite understand about the 'references'. How do you know what to reference with a given 'using something.something'? The .Net references seem fairly simple, but COM is less obvious. I'm running Visual Studio 2005 and have the latest VSTO installed, b...

convert CString to const char*

How do I convert a CString to const char* in my Unicode MFC application? ...

Is VS 2008 Standard worth it?

My dev environment now consists of: vc# express / v web dev express NUnit Tortoise for Subversion SqlYog for MySql Custom automated copy/paste deployment I'd like to use: TestDriven.NET (looked at pex too and it seems interesting) VisualSVN or AnkhSVN Not sure if VS will have integrated control of mysql. Deployment projects Just ...

How to add resources in separate folders?

Hello, When I try to add a resource at the resource designer by clicking "Add an existing item",the item is placed in the folder "Resource". The problem is that if I create a new directory in the Resource directory and place the resources there,I get a compiler error that the files cannot be found. I can't put all resources in one fol...

"Show Source of Selected Element Only" in Visual Studio 2003

There is a feature in Eclipse ("Show Source of Selected Element Only") which allows to view the code of the selected method only. All other part of the code is invisible. I remember that a similar feature was available in Visual Studio 6.0. I would like to know if this feature is available in Visual Studio 2003 and up? If yes, please po...

How to set a default namespace for classes when there are two simlar classes in different namespaces

Ok, so since going to version 2.5 Nunit is causing me all sorts of problems because they introduced the static class Is into the nunit.framework namespace. It would be well and good if Rhino.Mocks and a few other frameworks did not also make use of an Is static class. So now if I upgrade to 2.5 most of my code that uses rhino mocks con...

How to catch exceptions on another thread without affecting the debugger

I have a udp service which is listening on a socket for udp datagrams: int result = 0; try { result = m_ReceivingSocket.Receive(buffer); } catch (SocketException e) { Log.Debug("Timed out with socket exception, so no result was found.", e); } It does this on a Timer every 1 millisecond because it is important that I get the udp me...

Visual Studio: Stop copying DLL files during build without my permission!

I have a Visual Studio project that relies on several DLL references. Here is a sample of those references in my csproj: <ItemGroup> <Reference Include="Class1.Project1"> <SpecificVersion>False</SpecificVersion> <HintPath>..\bin\Class1.Project1.dll</HintPath> <Private>False</Private> </Reference> <Reference Include="C...