visual-studio

How to open the red-button menu on Visual Studio (2008) with the keyboard?

When you type something and there's some problem you get a tiny red rectangle at the end of the symbol/word that has the problem and when you hover the mouse over it, you get a button and when you press the button you get a list of possible actions to fix the problem, including adding using statements or refactoring. Is there a way to o...

Weird MethodNotFound exception when renaming a property - related to asp.net / web forms / fluentnhibernate and visual studio

I have a local website which I run through Visual Studio 2008's internal development web server (through the run / compile button). I have an external library which is referenced on a page of that website and resides inside the web site's "bin" folder. I've recently changed a class' property name inside that library (renaming it, from ...

Using visual studio 6 c++ compiler from within emacs

Hey guys, I'm just getting started with c++ development and I would like to use emacs to write the code and then compile and run it from within emacs using the visual studio 6 compiler. I have already googled around a bit but just can't seem to find an explanation of how this is done. Any pointers? Thanks for your help, joerg ...

VS2008: Highlight several words in different colors simultaneously - Possible as plug-in?

Hi, I use GVim and Visual Studio for coding. One of the most missing features in VS compared to GVim is the possibility to highlight several words in different colors simultaneously. See this screenshot of a GVim session for an example (wResult and fBufferLocked are marked) In GVim I use this feature very often to get a quick overview...

How would you create this solution in visual studio?

I have project X, fully operational that compiles into X.exe I have project Y, it has a reference to project X, and compiles to: Y.exe; Y.dll I build project X's solution and the release folder has: X.exe I build project Y's solution and the release folder has: X.exe, Y.exe, Y.dll How do I remove the extra X.exe in project Y? ...

Exclude file from Visual Studio Deployment Project depending on Configuration

I have a solution with 3 projects: windows application, class library and setup project (Visual Studio 2008). Solution has 3 configurations: Debug, Release and Release with DLL. I want to include or exclude that DLL depending on current configuration. How can I do that? ...

Get the Exception Trace ( or the Log File) when VS 2008 Crashes

My VS 2008 has a lot of plugins such as Resharper, Syncfusion, Typemock, TestDriven.net and you-name-it. And I am always running all of them on the latest beta versions. The problem is that this morning the VS 2008 crashed when it was loading Windows Form designers. I think it must be due to Syncfusion ( version 7.2.0.20), or its intera...

"Copy to Output Directory" in a C++/CLI Project

How do I get the "Copy to Output Directory" property for content files in a C++/CLI Windows Forms Project? Edit: I am presently using the post-build event to copy my content files. ...

How to use MsTest in Continous Integration without VS ?

I my problem is quite simple, i have a CI server wich run msbuild and mstest. The problem is that the Microsoft.VisualStudio.QualityTools.UnitTestFramework.dll doesn't exist( and i thinks other file related to mstest...) if we don't install VS in the server wich is pretty stupid for a CI server... Anybody have a solution about this pr...

WCF: Callback is not asynchronous

Hi, I'm trying to program a client server based on the callback infrastructure provided by WCF but it isn't working asynchronously. My client connects to the server calling a login method, where I save the clients callback channel by doing MyCallback callback = OperationContext.Current.GetCallbackChannel() After that the server does s...

How to use CLR in a different runtime environments under multiple projects in visualstudio??

Hi Here is My Scenario. I have an Existing Solution in visualstudio which contains 15 projects. in some project i need to use managed c++ extensions. So first i have a workaround for sample solution contains 4 projects in those i have maintained dependencies b/w them. and my solution is builded also. I apply the same procedure to ex...

Getting all changed files from a certain date from a VS project or VSS?

Is there a utlity or other means to easily pull all changed fiels from a VS ASP.NET project or from the associated VSS store for that poroject fro ma given date and have it maintain the folder structure and dump it to a seperate folder from the dev version for deployment purposes? Want to be able to easily grab the chanegs so we can pus...

Do I need to run devenv.exe /setup twice? [VS 2005 and 2008]

I am writing a VS Integration Package and setup using Visual Studio Setup Package. I have a custom action that runs "devenv.exe /setup" when the package is installed. If the user has VS 2005 and 2008 installed, do I need to run devenv.exe /setup from both directories? Like so: "C:\Program Files\Microsoft\Visual Studio 8\Common7\IDE\dev...

How to strip out robo-comments and #region from C#?

I've got some code I'm maintaining that has a good deal of machine generated comments and machine generated regions. (or created by a particularly misled developer) These are comments exclusively repeating the method metadata and space expansions of pascal cased names: #region methods /// <summary> /// Implementation of a public met...

Rebase *** RelocateImage failed

When building a project with Visual Studio, I noticed a nasty little post linker error, with windows Rebase REBASE: *** RelocateImage failed (dll name) Image may be currupted I was unable to get a usable build. I tried erasing all the object files and rebuilding, with the same problem. This happened only under certain compiling config...

How can I add a reference in a Visual Studio website project type?

Normally when you add a new assembly you have to go into Visual Studio and add a reference (the .dll is stored in the /bin directory). Since this website compiles on the fly, is it possible for me to just add the .dll to the live website, and then use that .dll in an .aspx page? Currently in Visual Studio I can't see the .dll unless I ...

Toggle "Break when an exception is thrown." using macro or keyboard shortcut.

Note: The accepted solution doesn't quite work, but it's very close. Is there a macro or keyboard shortcut that will toggle "break when an exception is thrown" without using the GUI. Opening the dialog with ctrl+alt+e and checking the "Common Language Runtime Exceptions" "Thrown" box then clicking OK is simple enough, but this is som...

403 Forbidden with Built-In VS 2008 Web Server

I have an ASP.Net webapp where I wanted to test using a different local account. So I created the account, but then started getting 403 Forbidden when logging in with that account. This is using the VS 2008 built-in web server (Cassini). A coworker suggested giving that user account permissions on the project files which I did. I als...

Why does visual studio 2005 split stringtables apart when saving/creating .rc files?

Whether I'm loading an existing .rc file or creating a new one, visual studio has this odd tendency to split tring tables apart. I haven't really figured out if there is a pattern to it, though I've noticed it seems to have a tendency to start at ids divisible by powers of two where possible. Since the resource compiler doesn't actuall...

Where can I find nice Dark ReSharper (with Color identifiers = on) Themes?

I haven't come across any decent dark Visual Studio 2008 color themes with support for ReSharper's Color identifiers turned on. Have any been published? ...