visual-studio

How do I see the list of addins and plugins in Visual Studio?

I think I have a plugin or addin to studio installed which has killed all versions of studio. Where can I see the list of plugins and addins that studio is loading? I believe I have gone through all of the menu to find the list of addins. Would someone point me in the direction that shows me the list of addins? I will remove them a...

Adding C++ custom action in Visual studio installer

hi, due to some constraints i want to write a custom action in c++ and add its assembly in Visual Sutdio installer... is it possible? as i know about c# or vb in those one can create classes inherited from Installer and it worked but now i want the same with C++.... ...

Automating Visual Studio instance from separate process

Is there a way to write an application that can connect to a running instance of Visual Studio and issue commands to it? For example, could I write a WPF app with a button that, when clicked, issues a "Build.BuildSolution" command to an already-open instance of Visual Studio, causing it to start a build? I'm sure I could use SendKeys to...

Setting C# Memory Parameters

While I am still new to C# I'm curious if there is a way to tell windows that it needs to set aside X memory to run this application. While debugging (F5) I occasionally get a random "error writing to protected memory" notice, and it's usually fine for a bit after I restart the version of Visual Studio. Once in a while it takes a win...

Visual Studio performance and add-ins

Do the useful add-ins (Resharper, StyleCop, etc.) to Visual Studio speed up your work? Or tools need too many resources and you have to wait until each add-in completes execution? [Update]: By the way does some body notice whether performance of IDE + Resharper is better for solutions that contain web sites or web applications? ...

How to pass a C# Reference to COM Object to a C++ DLL

I am writing a Visual Studio add-in to process C++ code, and think that COM interop is slowing me down to much. I therefore want to pass a C# reference to a COM object to a small C++ DLL, have the DLL perform the necessary calculations and return back a string. I would be passing a CodeFunction2 object to the DLL and getting an XML str...

T4, XML data source and relative path in Visual Studio 2008

Hi, I recently implemented a quick T4 template to generate some data access related classes in our app (Thanks Oleg). One problem I am facing is that my template does need to read data from an XML file that is part of the solution. Obviously, the path to the XML data must be relative. But when I first implemented it yesterday, it looke...

How to easily duplicate a Windows Form in Visual Studio?

How can I easily duplicate a C#/VB Form in Visual Studio? If I copy & paste in the Solution Explorer, it uses the same class internally and gets messed up. How do you do it? ...

vs 2008 623 complier errors

I have a c++ console app that has been doing just fine and upon clean make started throwing compiler errors. Obviously I've redefined or omitted something, but I'm not sure what. ------ Rebuild All started: Project: alpineProbe, Configuration: Release Win32 ------ Deleting intermediate and output files for project 'abc', configuration ...

Compiling Qt libraries to run with Visual Studio 2008, why does nmake fail?

I'm trying to get my Visual Studio Qt plug-in to work, so to recompile the Qt libraries i ran the following commands from a VS command prompt: c:\*Qtfolder*>configure -platform -win32-msvc2008 After this I ran nmake and started the compilation process. It went for about 45 minutes before aborting due to linking errors. I got a total ...

Template's member typedef use in parameter undeclared identifier in VS but not GCC

I'm looking at some codes which makes heavy uses of templates. It compiles fine on GCC, but not on VS (tested on 2003 - 2010 beta 1), where it fails during syntax analysis. Unfortunately I don't know enough of the code structure to be able reduce the problem and reproduce it in only a few lines, so I can only guess at the cause. I'm hopi...

Delete files non-project files from SVN in Visual Studio

Hi, I am using AnkhSVN in Visual Studio. How can I delete all files from SVN as I delete them from Visual Studio (files ARE NOT included in projects). Ideally I would like to do: Press "Show All Files" In Visual Studio (shows the files not included in projects). Delete selected files (the ones not included in projects) from VS...

Cannot get StandardOutput for some process calls in cassini or unit test on win7 64

I am having trouble reading the output from a process when running several processes from .net. One example is the 'netsh' command. I am trying to read all scopes from a dhcp server. It is only failing in web applications and unit tests. In the below code the 'message' is an empty string. var arguments = @"-r myDhcpServer.myDomain dh...

Unable to Load Database project in VS2008

I have Database project which I'm unable to load in VS2008 and I have SQL Server 2008 Express edition installed on my machine.. I get following error message, when I try to load Database projects require a connection to a local instance of Microsoft SQL Server 2005 for design-time validation. To perform this operation, you m...

Start Visual Studio programmatically; C# equivalent of VB's CreateObject("VisualStudio.DTE.8.0")

I can start a new hidden Visual Studio process from VBScript, and drive it programmatically, by doing this: Set DTE = CreateObject("VisualStudio.DTE.8.0") DTE.DoStuff() How do I do that in C#? (Edit: using the correct types, not generic COM objects as used by that VBScript code.) I've tried this: using EnvDTE; ... DTE dte = new DTE...

my VS2008 cannot connect to Sql Server 2008, why?

MS Visual 2008 studio says "only servers up to 2005 are supported" when connecting SQL Server 2008? how to get around this? ...

Top Visual Studio Debugging Tools/Features

Which debugging feature of the Visual Studio IDE do you use the most. I agree that it depends on the scenario. But it turns out that people tend to use some features very often (eg Stacktrace) and some very rarely. ...

x64 va_list in Visual Studio 2005

I have a class non-static member function, and it has variable arguments, I'm compiling on Visual Studio 2005, with the 64-bit runtime, on 64-bit Windows. void Class::Foo(void* ptr,...) { va_list args; va_start(args,ptr); float f=va_arg(args,float); va_end(args) } I'm expecting a float, I pass a float to the function. ...

How to access selected project in Solution Explorer from a Visual Studio Add-In?

I developed a VS 2008 add-in and added a custom menu item to context menu for "Project" nodes in Solution Explorer. This allows me to right-click any project in solution and perform a custom operation on that project. Or at least, it would, if I knew how to access the selected project from my Click event handler. Can someone with more ...

Intellisense is lost for outside classes in Visual Studio

I have a file of a user control but it's not in a project, It's just read by a webpart in sharepoint and I was editing it but suddenly the AutoComplete for classes and variables like controls, SQL .. were gone. Only the common keywords are available like if, int, while ... How can I get them back? ...