visual-studio

How to create a new project type in VS2010?

I've figured out how to create a new template, but I need a little more power than that. I need to override what happens when you click the "Run" button for example -- I want it to fire up a development server and then pop open my web browser. So, how can I add an entirely new project type? And preferably, how can I base it on another p...

Side-by-Side Visual Studio installation

Can Visual Studio Professional 2008 and Visual C++ Express 2008 be installed side by side without problems? update I am working in a situation where some of the team has pro, some have express. I have pro (but have not installed C++ Express) and for some reason, the solution doesn't compile for professional (fresh from svn), but it do...

i change the codebehind file, nothing happens

In asp.net WebForms I make any changes to aspx.cs file, nothing happens. R# and IntelliSense are not working too on that tab. I even can write 'blablabla' anywhere, it won't cause any errors. Seems like VS just takes the file from some other source, not the project folder, though the "CodeBehind" attribute in .aspx is written ok. I al...

Running Visual Assist X and ReSharper 5.0 at the same time

VS 2005/2008/2010 I have latest Visual Assist X and Resharper 5.0 installed at the same time. I found some Resharper shortkeys and functionalities just got disable or not working. Does these 2 plugins conflict? How do I check what has been disabled by Visual Assist X in ReSharper? Thanks. EDIT: Also, Visual Assist X overlaps some of ...

Tool to extract the sequence of Method or Event calls for .NET?

When i run the application i need to extract the information about the sequence of methods or classes the application touches when any event is performed on the application. Is any there other tool other than profiler? ...

In visual studio 2005 build mode drop down, release mode not shown

Hi, Recently I got a project when after opening in visual studio 2005 in build mode drop down, only debug mode is shown but release mode not shown.Project builds successfully in debug mode is there a way to enable release mode. Thanks ...

Why does my Visual Studio Setup Project launch IE when installation is complete?

I have this Visual Studio 2010 Setup Project for installing my application. On (clean) Windows 7 32bit installations, it starts Internet Explorer after installing my application. On my own machine (Windows 7 64bit), this doesn't happen. Do you have an idea what could be the issue here? The default browser on my machine is chrome. On the...

Organisation of compiler dependency paths to external libraries

I my current team we organize the dependencies to external libraries headers in the project settings like that: Compiler Settings->Additional Includes: d:\src\lib\boost_1_43 d:\src\lib\CxImage_6_00 ... As you can see, we include the exact library version number in our paths. The advantage of this method is that we always know, which e...

Changing the default behaviour in Visual Studio when autogenerating code for binding to an event.

Usually when I subscribe to an event, I use the Visual Studio builtin function to generate the method. So if I want to bind a clicked event to a button after I write += I click tab one time to generate the code after +=, and then tab again to create the empty method associated with this event. So for a button clicked event, I will end u...

Shortcut in Visual Studio 2010 to generate all possible Case's in Switch.

Hello, I can't find key binding to expand all possible cases in switch, eg. have switch with enum argument, in Borland C++ i doing this with [TAB] key while switch code is selected. I want to do this in Visual Studio 2010. Can anyone help me? ...

What's so called "Frames" in visual studio?

In the Call Stack window of visual studio, it reports: [Frames below may be incorrect and/or missing, no symbols loaded for IPCamera.ax] What does it mean by Frames, and why missing symbols may cause it incorrect?AFAIK,symbols are just for debugging info,missing symbols will only make the source invisible . ...

What's the difference between Memory 1~4 window of visual studio?

Anyone has experience with the Memory window of visual studio? ...

How can I update the outdated Team Foundation Server file status icon in Visual Studio 2010?

In visual studio 2010, under solution explorer the source control icons by the files denote that the file is currently checked out. However if I look at the file in the source control explorer it appears not to be checked out. I have tried the "refresh" button in solution explorer as well as "get latest version...". Neither update the st...

Changing Visual Studio default path for .cpp, .h file

Hi, I would like Visual Studio to automatically put my .h file in a folder /ProjectPath/include and my src file in /ProjectPath/src. That way, if I use the "Create class wizard" for instance, it would put the good path by default without me having to change the folder. Anyone know what setting I should change to get this behaviour when...

execution time of release build in VS2008 IDE vs. direct execution

Hi, When I've built a project in release mode in VS2008. The execution time of running the project from the IDE(project > debug > start new instance) is much faster than running the exe(In my case, 80 seconds and 200 seconds). What could be the reason for this? Can I speeden up the direct execution somehow? p.s. I had asked this here b...

Modifying method return value for managed code in Visual Studio 2010 debugger

Say I have this C# method: public bool GetVal() { return a1 == b1 || c1 == d1 || GetE1() == GetF1(); // Illustrating complicated logic here.. } I don't want to modify the content of the variables / return values of methods in the statement above, but want to return false to the method that's calling GetVal(). Is it possible to us...

Modifying application settings in unit tests

I have a class library I want to unit test using Microsofts unit test framework. Some of the classes I want to test are configured using application settings. These settings are defined inside the Settings.settings file having application scope and suitable default values. When the library is used by the application these settings can be...

how to make visual studio highlight buggy code files like netbeans ?

Howdy, after translate to c# (from java) and using visual studio, I found that visual studio dosent have the netbeans feature that highlight the buggy code files in files browser and lines that contains errors in the left side of the code. I think this feature very useful and let me find some error before press compile/run. so I want to ...

How to check if a class implements an interface without navigating through its inheritance tree?

If I want to know if a class inherits IDisposable I have to Go To Definition in each of its parent classes and interfaces? Isn't there an easier way? ...

How to deal with circular references?

If I have those two projects: MyCompany.ERP.Billing MyCompany.ERP.Financial Billing asks/sends information to Financial and vice-versa. Both are too big so I don't want to put them in a single project. Visual Studio doesn't allow circular references. How would you deal with that? ...