visual-studio

Can you turn off (specific) compiler warnings for any header included from a specific location?

I've got a third-party library that generates a ton of warnings, even under /W3. Is there a way for me to tell the compiler, "disable C4244 for any file included from this directory, or its subdirectories"? Of course, I don't want to disable the warning in our own codebase, nor do I want to have to track down every possible include and...

Visual Studio shortcut to find classes and methods?

Is there any short cut in visual studio 2010 to find classes/interfaces? I was using resharper few years back to do that. Here now i don't have resharper and looking something similar in studio 2010 which can help me do that. Right now i have to use find all "s classname" that's closest i can get. ...

Change Preferred Language in Visual Studio 2008

When you first install Visual Studio it asks you what your preferred language is and I chose VB. I am now becoming more of a C# guy, but everytime I want to go create a new project. I have to click Other Languages>Visual C#. Is there any way to not have to go through that process. I have seen other people in videos have it like this and ...

is there a way to track the values of certain variables after the end of a program in visual studio?

i have found myself several times in the need of knowing the last values set to a range of variables that were in a certain portion of code, or method; maybe dispersed around the program. does anyone know a way to select variables and know the last value set to them after the program ends running - in a windows maybe ? ...

Step out of a loop in Visual Studio's debugger

Is there a similar functionality like the step out of a function to step out of a loop? I am currently using VS2005, but am interested to know whether MS presented the option in any of the versions. ...

sdl setup visual studio 2010

I can not get sdl up and running. I included the include folder, the library folder and here is the code #include <SDL.h> int main() { if (SDL_Init(SDL_INIT_VIDEO)==-1) { return 1; } SDL_Quit(); return 0; } what am i doing wrong? It gives me this error message Error 1 error LNK2019: unresolved external symbol _...

SQL Metal for specific tables or another way to refresh/add table to .dbml file

Hi, anybody have any easy way of doing this in Visual Studio, without having to use the Server Explorer ? I tried also looking at macro's but recording only produce Sub TemporaryMacro() End Sub So no luck there. Any way to script this? ...

Customizing Border/Frame of VS 2010 Tool Window

I was viewing the Channel9 video on an introduction to VS 2010 extensibility to learn a bit about creating extensions. In the video, the end "enhanced" product was supposedly using a tool window but it did not look like one; it had no titlebar or anything. http://channel9.msdn.com/posts/VSIPMarketing/VSX101-An-Introduction-to-Visual-Stu...

Visual Studio 2008 crashes

When I open a aspx page, it crashes. Doesn't happen when I'm on SAFE MODE. It seems to be connected to Visual SVN. I'm also using Telerik, but telerik seems to work fine. ...

Visual Studio - I want "Go To Definition" to open Object Browser, not "metadata"

In Visual Studio version 2002 and 2003 "Go To Definition" would find the selected type or member in the Object Browser. In 2005 onwards it opens a source window "generated from metadata" instead. How do I configure these newer versions to go to Object Browser? (In other words, I have the opposite problem to this one.) Installing ReSharp...

Why not check in AssemblyInfo.cs

I was watching a video on Git and the guy went out of his way to ignore the AssemblyInfo.cs. Why should I not check that file in? If I don't check the file in won't Visual Studio complain for the next user when he checks my code out? ...

Visual studio intelisense window for numeric literal??

when we press . (dot) key after any character and string literal visual studio open intelisense window but not for numeric literal. I want to why visual studio don't do that for numeric? what the technical reason is behind this. ...

Prevent designer class from being rebuilt

Hi all, Is there any way that I can prevent a designer class from being rebuilt when running my project? The designer class is a webservice reference with over 30000 lines of code and appears to be being rebuilt almost every time I run my project. (Which obviously takes quite some time) Is there some explicit way I can prevent Visua...

Visual Studio: How to make its UI fast, lean and minimal?

Visual Studio can be quite slow to open and work with. The menus and auto-hide windows can get sluggish and commands take a while to start. What are the list of things one can do to make the UI of Visual Studio load faster and operate faster? What settings can one change to make it feel lean and minimal? PS: I know Visual Studio Express...

Storing debug session (breakpoint/bookmarks) in Visual Studio (C++)

Hi! When I'm debugging something, I would like to store breakpoints/bookmarks related to bug* I'm currently working on. So when I switch to another bug*, I don't want every time to manually disable breakpoints/bookmarks related to previous bug, and create another one for the new bug. It would be great that is possible to tag breakpoint ...

Is there any alternative to DateTime.Ticks or DateTime.TimeOfDay in Linq-To-Entities?

Hi there! I'm writing a log parser for an asp.net mvc2 web application. I use Entity framework as a model and logging is done both using my manual engine together with SqlServer2008 CDC feature. When inserting, or editing a row in a database, the action is being logged. However, there's a small lag between occuring changes in actual ta...

xml technique with visual studio projects

I am programming in .NET (C#) using Visual Studio. I want to use am XML file to store some information in my program. No other programs will ever need to access this XML file and no one will need to access/modify it manually our without using the program. I am wondering what build options I should select for this file or if it really mak...

"Object expected" error with "javascript:ShowDocument" statement

I added code to one button but while clicking it raises "Object expected" Javascript error Me.btnReport.Attributes.Add("onclick", String.Concat(New String() {"Javascript:ShowDocument('frmDocReport.aspx?PrjId=", Me.droplstProject.SelectedItem.Value, "&Type=", Me.droplstType.SelectedItem.Value, "&RecPerPage=", Me.droplstPAGE.SelectedItem....

How to copy a Visual Studio database unit test

I'm writing unit tests for stored procedures in VSTE for Database Professionals, and want to copy some already existing test cases that only need to be modified in a few places. Manually re-creating them would be very tedious. I couldn't find a solution either on the web or in books. Any ideas are welcome. ...

Eclipse Top Plugins to get for a Visual Studio Developer

I live in Visual Studio with Resharper. What free plug ins should I get for Eclipse to get me to the same level as I am used to in VS with Resharper. I have found Eclipse to have many of the Resharper features built in, but don't want to be missing great productivity tools. ...