visual-studio

Way to see assigned visual studio shortcuts with given prefix

Is there a simple way to see assigned shortcuts with given prefix? Something similar to emacs CTRL+M, CTRL+H. I can do it in following way, but hope, that there is more simple solution: Tools -> Customize -> Keyboard In "Press shorcut keys" press given prefix (say CTRL+M) In "Shortcut currently used by" combo-box there is a list of ass...

Microsoft Visual Studio: opendir() and readdir(), how?

I've used this kind of code in my Dev-cpp before: if((dh = opendir(folder)) !== false){ while((file = readdir(dh)) !== false){ // do my stuff } closedir(dh); } But now i am using MSVC++ and i dont know how to add those files there, i tried to copy dirent.h/dir.h/errno.h in there, but it gives another error relating to...

How do I back up a database to a .bak file?

Hi, I have a website I've created in Visual Studio 2008 and I need to take it live. How can I backup the database file to a .bak so I can hand it over to the hosting company to place on the server? ...

Generating Member for labels: Any reason I should?

I had read in another post here on SO that when possible you shouldn't Generate Member's for labels. I was wondering what some potential DRAWBACKS to this would be? Am I correct in saying that the benefit is increased performance? Anything else? I have a winform app with 100's of labels. Is there any benefit to not generating me...

VIsual Studio Copy Project

I would like to make a copy of my project. I would rather not start doing it from scratch by adding files and references, etc. Please note that I don't mean copy for deployment. Just plain copy. Is there a tool in VS to do this? I am using VS 2008 ...

Unable to debug web service project in Visual Studio 2008

I've been assigned a web app written in VB using VStudio.net 2003. I am trying to configure the source on my localhost (VStudio 2008) so I can explore and learn about the current app (before I begin any real changes) and I cannot get debugging working for the web service project(s). Symptom 1: "Unable to automatically step into the ser...

Visual Studio Add-in QueryStatus() calls

I wonder if anyone can tell me why does QueryStatus() method get called so many times when command is being evaluated for execution? In my case it gets called several times (at least 9) with at least one vsCommandStatusTextWantedName and many more vsCommandStatusTextWantedNone, but never with vsCommandStatusTextWantedStatus? So lots of ...

Move a list of source files with classes inside to another folder and automatically change namespace

Hello, Let's say I have 100 winforms in folder Forms. All form classes belong to ProjectName.Forms namespace. I want to move all those forms to folder WinForms and I want their namespace to change to ProjectName.WinForms. Is there a way to do this automatically without manually changing each form's namespace? I have a Resharper, but di...

Transfer all ReSharper Settings between PCs

I was wondering if there is a way to copy ALL my settings from ReSharper (including the StyleCop for ReSharper settings and the keyboard bindings I have set for ReSharper) from one PC to another? ...

What's the compelling reason to upgrade to Visual Studio 2010 from VS2008?

Are there new features in Visual Studio 2010 that are must-haves? If so, which ones? For me, the big draws for VS2008 as compared to VS2005 were LINQ, .NET Framework multitargeting, WCF (REST + Syndication), and general devenv.exe reliability. Granted, some of these features are framework things, and not tool things. For the purposes o...

Is Visual Studio only used for programming?

Is Visual Studio only used for programming and coding, or does it have other features? In a work environment, how is Visual Studio used for other kinds of work? ...

What is .NET Framework?

I am confused can someone clarify what is .NET Framework means? Is that an another name of Visual Studio? ...

Will the new VS2010 Beta 1 have a Virtual PC

I love the idea of using VS2010. I downloaded it today to play with it. But I am hesitant to install it all on my machine as upgrading from Microsoft betas is usually difficult. Also, I am not a TFS install expert, so I don't know the best ways to set that up. But I still want to play with it... Does anyone know of a VPC that has it...

Automatically stop/restart ASP.NET Development Server on Build

Is there a way to automatically stop the ASP.NET Development Server (Cassini) whenever I do a build/rebuild in VS2008 (and then obviously have it start again when required)? Maybe there's some hidden configuration setting somewhere? Or at least some way to do it as a post-build event maybe? For some background, the issue is that I'm usi...

Not finding the metadata window (F12) when using Resharper

When I hit F12 (or right-click and select Go To Definition) in Visual Studio on code I don't have the source for, it should bring up a generated metadata file. (Very similar to the Code Definition Window) This doesn't work when ReSharper (R#) is installed. After R# is installed, the Object Browser opens instead. I've had this problem...

add a web service reference to a console app

Im creating a simple web service in a console app. (PersonService) this is my Program.cs below im trying to add a service reference to a different console app (PersonClient) how can i do this? i tried adding it by right clicking, add service reference, pointing to the refernce etc... but it wont work. [DataContract] pu...

get variable name in debugger visualizer

Is there a way to get the underlying variable name of a target object in a Visual Studio debugger visualizer? The built-in string visualizer does it: string myStr = "abc\ndef"; Debugger.Break(); Clicking on the visualizer icon for myStr, you will see the "Expression" text box shows "myStr". How can I get this in my own visualizers? ...

Visual Studio Error: PFX - Error Importing Key / Object already exists

I have a VS 2008 ClickOnce solution that I am attempting to compile with "Sign Manifest" turned on. With this option checked, I am prompted for my PFX's password, and upon entering the correct password I receive the error: "Error Importing Key" / "Object already exists". I'm sure I've hosed something. I've tried to run the "CERTUTIL -...

Accidentally Deleted 'Tools' Menu in Visual Studio

I was messing around with my toolbars and menus in Visual Studio 08. I noticed that they were behaving strangely. When I closed the "Customize" dialog, my 'Tools' and 'Help' menu were gone (perhaps more, I can't remember what else was there). I don't want to reset everything, as I have been curtailing the VS environment to my exact li...

Visual Studio External Tools Argument problem

Visual studio 2005: I am moving from post build event to using the external tools menu with a batch file. Previously I had cd "$(ProjectDir).." for /f "tokens=2,3,4 delims=/ " %%a in ('date /t') do set bdate=%%c.%%a.%%b pkzipc -add -overwrite -dir=current "Z:\Technology\VisualStudio2005\Project Zips\$(ProjectName)_%bdate%_%username%.z...