visual-studio

How do you call "Document Format" programmatically from C#?

I'm writing a simple VS add-in and would like to programmatically invoke the "Document Format" option (under Edit) within code. Google isn't being very friendly to me today.... ...

How do you export and import Visual Studio macros?

I would like to export some macros that I have defined and be able to import them into another clean install of Visual Studio with the same module/naming structure that I have defined. I have some menu command customizations that execute my macros - so to work in another install of VS, it needs the same macros available. I would like t...

Why does VS 2008 sp1 install abort on Win7 RC?

What can you do if you get the following error when installing Visual Studio 2008 sp1 in Windows 7 RC? Operation Aborted ...

How to fix the HTML Intellisense in ASP.NET AJAX Controls or Pages

I'm using ASP.NET AJAX. I create a .aspx page that is based on a .master file. I add the , , control into the content page, and suddenly the markup intellisense no longer works for these controls, or for any controls nested within them. Is this a bug? Can I fix this? ...

Sending code to the F# interactive console

Hello! It is possible to send highlighted code directly to the F# interactive console in Visual Studio 2008 by pressing Alt+Enter on the keyboard, which is indeed very useful. Is it possible to in a similar fashion send the contents of one, several or all files in a project to the F# interactive console at the same time? My intent is t...

Move intermediates directory on C# projects in Visual Studio

I'm currently in the process of stripping down, refactoring and cleaning up a medium sized (15 ish projects) Visual Studio solution. The solution contains projects in both C++ and C#. I'm keen to keep things as neat as possible in terms of output - seperating anything compiler created from source code, as it helps subversion (okay, I ca...

Where are assemblies installed into the GAC physically stored?

I want to export the assemblies built in my project. But where are they physically stored? ...

VS 2008 - Publish Web Site - Exclude App_Data

How do I prevent Visual Studio 2008 (standard edition) from publishing the App_Data folder? I can't have the contents of App_Data published because it ruthlessly overwrites the production data. ...

Visual Studio - New Filter instead of New Folder when using Create Project From Existing Source Wizard

I used the Create Project From Existing Code Wizard for Visual Studio 2008, but apparently projects created this way do not allow you to create virtual solution folders, and instead only allow you to create actual system folders. I would like to have the standard project setup of Header Files, Resource Files, and Sources Files, but I see...

What process is accessing my assembly (delete failure when cleaning a project in visual studio?

I am running an external process in a custom msbuild task. This task is in assembly A which is called when I'm building project B. Everything works fine. However, when trying to clean the project. Visual Studio 2008 gives me an error saying "the process cannot access assembly A because it is being used by another process". Restarting Vis...

CLR interfering with C++ STD?

I have some code compiling under the clr and other code that is unmanaged in a single project. My common.h file includes all the std library headers that I need. It is included by manager.h (forward declaration for manager.cpp (no CLR)), which is included by main_window.h (WinForm) which is included by document_manager.cpp (CLR). At r...

Losing Break Point

// break point set here>> webRequest = (HttpWebRequest)WebRequest.Create(server); webRequest.Timeout = 30000; webRequest.Credentials = CredentialCache.DefaultCredentials; webRequest.Method = "POST"; webRequest.ContentType = "application/x-www-form-urlencoded"; webRequest.KeepAlive = false; XmlDocument doc = new XmlDocument(); doc.Appen...

oleview could able create instance but cocreateinstance fails

Hi, I could able to create instance of the com server using oleview. But when i do the same thing in code with cocreateinstance it gives the error E_NOINTERFACE or 0x80004002. By breaking cocreate instance if found that Queryinterface return this error. How could i resolve it? Please help many thanks in advance. ...

I can't create New Project on Visual Web Developer 2008 Express

I can't create New Project on my Visual Web Developer 2008 Express with SP1. (I can only create New Website) My colleague has the exact same version (if you go to Help - About) but they can create both New Website and New Project. I am trying to do this tutorial on MVC that also says that you can do it on Web Developer Express (http://...

Visual Studio 2008 CSS Validation Level

I'm validating my CSS to level 2.1 in Visual Studio 08 Is there a way to change the level you validate to? I can't find one ...

How do I disable exp/lib generation when building an exe?

I realize this is probably caused by some _dllexport() somewhere, not in my code but in some third-party piece. (Qt, Boost, OpenSG, ...) Is there a simple linker option to disable this? I've searched but not found anywhere. ...

How to automatically insert preprocessor and comment blocks into a new C++ header file in Visual Studio?

When I create a new C/C++ header file in Visual Studio (2005/2008), I want to have some preprocessor header includes automatically inserted into the new header file. Anybody know how to do this? The New Porject and New Item template system in Visual Studio does not seem to apply to C++ files. As an example, when I create foo.h, I want t...

How can you automaticly insert a namespace for a Visual Studios snippet?

I have a code snippet that creates a C# class for me. It puts the regions in all the right places and sets it up just the way I like it. When I create a class by adding a new item it automatically creates the namespace based on my project and folder structure. Is there a way I could do the same action with my custom snippet? Is there...

Is there a way to take a C# class or library and automaticly convert it to Visio?

I have a C# class library that I need to document. Is there a way I can convert the project or class to a Visio Uml. Please keep in mind I am using Visual Studios 2008 Professional. ...

Which projects do you include in your solutions

How do you commonly lay out your solutions in Visual Studio? Recently, I've kept the BLL, DAL and presentation in different classes and planned to add a test solution as I learn TDD. However, after recently watching a video from Rob Conery and viewing a project from an external contractor, I noticed a theme of multiple projects in the so...