visual-studio

open file dialog not working in vista and 2008 envir

i am using Vista . I designed MSi file through Visual Studio 2008 Setup and deployment project in which I added one custom action. In the custom action, I am opening OpenFile dialog. This Open File dialog is not showing mapped drive or network locations. so how can i make the open file dialog to mapthe network drives. ...

Using a COM based Addin created for Visual Studio 6 in Visual Studio 2005.

Is it possible to use an Add-in created for Visual Studio 6 in Visual Studio 2005. I know its possible for one to use COM Add-ins created for Visual Studio 2002/3 in Visual Studio 2005. Unfortunately I don't have the Add-in project, else I would have tried to upgrade. I need the Add-in to work in VS2005 because it acts like a project wi...

how to configure settings of visual studio console window once and for all

How can I change the default settings of the Visual Studio console window? ...

Can't load DLL due to dependency issue with Visual C Runtime DLL

I'm trying load a 3rd party DLL but I get an error when attempting to load it. Opening it in Dependency Walker shows that the DLL simply relies on kernel32.dll and msvcr90.dll. However, I get the following error in Dependency Walker when opening this DLL: Error The Side-by-Side configuration information for [full path to the dll that I...

Dumb completion in Visual Studio

Intellisense is nice for what it does, but often I find myself longing for the "crude" text completion of editors like Vim. I can't seem to find a facility for being able to complete a word--perhaps in a string, anywhere really--and have VS try to complete it for me (based on stuff I've typed before in the current buffer, or in all open ...

Is there a way to change what is stored on the "Go To Definition" stack in Visual Studio 2008 (and 2005)?

Visual Studio 6 had the 'Go To Definition' (and 'Go To Declaration' functionality) just like Visual Studio 2005 & 2008. Oh, actually, not quite like those two. For some reason, not only are the 'Go To Definition' an 'Go To Declaration' actions added to their stack, but so are a lot of cursor movements, particularly 'Find' and 'Find Nex...

Storing Connection Strings in Registry?

We decided to use the registry for handling our deployment with connection strings in our VB.net application. The requirements are: If the program cannot connect to the server, first check the registry for a connection string. IF not, create the folder and fill in the name, type, and data. Make sure its encrypted. I have never e...

FogBugz On Demand + online source control at low/no cost?

I have a project in the free hosted FogBugz On Demand (FOD) product right now. This is great for feature/issue tracking. But I've been working from a codebase that is solely on my development machine. I'd like to collaborate with another guy who is thousands of miles from me. So we need a source control solution (SCM)! I use Visual Stud...

easiest way to get continual unit tests running locally with visual alerts, with xUnit for C#/VS2008?

Hi, I'm currently using MSTest in VS2008 for unit tests, but I am looking at going to xUnit.net. Question - What would be the easiest way to get my unit tests running continually locally (on my PC) and with some sort of visual alert of pass / # of fails. i.e. similar to what we do in Ruby on Rails with autospec. THanks PS Interseste...

LINQ-to-SQL References to Entities in other DataContexts

In my database designs, I tend to have "clusters" of tables. These clusters will typically support one application or group of tightly-functionally-related applications. Often, these clusters also relate to each other through a relatively small number of foreign keys; this helps otherwise independent applications in the business integrat...

Regex: How to retrieve all lines containing strA but not strB in Visual Studio

How can I retrieve all lines of a document containing "strA", but not "strB", in the Visual Studio search box? ...

Is there an alternative to Microsoft Code Contracts static analysis?

I am very impressed with the Microsoft Code Contracts. Unfortunately the static analysis is only available in Visual Studio 2008 Team System and Visual Studio 2010 Premium. We are happily using Visual Studio 2008 Professional (_**without**_ MSDN). Upgrading our Visual Studio license from pro to premium is way to expensive. Is there ...

CE 5 Application Development under VS2005/CE 6 Development Environment

Can I develop an application targeted to run on CE 5.0 using the Visual Studio 2005/CE 6.0 development environment? Or do I need to find the CE 5.0 development downloads on microsoft.com rather than the latest CE 6.0 ones? Having been 'given' a hardware platform of an ARM based touch device running CE 5.0, along with an SDK from the dev...

What names do you use for the “Solution Platforms” in Visual Studio?

The Visual Studio Default config says: “Any CPU”, does anybody change that? If so, what would you use and why? ...

Attach event to control inside a Placeholder using designer ASP.NET C#

Hi Everyone, Is it possible to add an event to a control which is inside another control, like say a PlaceHolder control using the designer? When the control is alone on the form this works perfectly... you simply add it from the properties window by clicking the thunder icon and clicking on the event needed. I know I can do by adding...

ASP.NET MVC View Code Formatting - braces <% } %>

Does anyone know how to configure visual studio to correctly format code segments within a View This annoys the crap outta me!: <select> <% foreach(Height height in ViewData.Model.Heights) {%> <option value="<%=height.ID %>"><%=height.Value%></option> <% }%> </select> It should be like this: <% foreach(Height height in ViewData.Mode...

ASP IDE on Windows

What is the best free alternative to Visual Studio for ASP development on Windows platform? ...

FileLoadException when running unit tests in visual studio

I'm trying to run some unit tests in VS 2005 and keep getting the following error System.IO.FileLoadException: Could not load file or assembly 'Tests.CS.vs2005, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. The parameter is incorrect. (Exception from HRESULT: 0x80070057 (E_INVALIDARG)) at System.Refl...

How to make the usercontrol to be added to the "ToolBox" automatically in visual studio IDE?

I have created a usercontrol and have added into the GAC folder but when I Right click on the ToolBox and click "Choose Items" but the usercontrol is not shown in the .net Framework Components. Can someone teach me? Thanks in advance! ...

How to find files in source control but not in a Visual Studio solution?

I have a rather large Visual Studio 2008 solution in Subversion. It was migrated from Visual SourceSafe a few months ago. I'm starting to find that there are a number of files still in source control that were removed from the solution back when I was using VSS. They were probably renamed or deleted after they were checked out - VSS does...