visual-studio

VS 2008 debugger displays integers in hex

Hi Guys, For some reason my Visual Studio debugger has started to show me my integers in Hex. I am programming ASP.net using C#. Does anyone have an idea how can I convince the debugger to display integers in decimal again? Thanks a lot, Assaf. ...

Visual Studio 2008 Sample Macros

Is there any place from where I can download the Visual Studio 2008 sample macros? It turned out that the folder VSMacros80\Samples is empty on my station. Thanks! ...

Override a GAC DLL in VS2003

I have a VS2003 project that references nunit.framework.dll. The dll is available from within my source tree. Everything works fine on my box(tm). When the build server tries to build the project, it fails, because the build server (outside of my control) has nunit.framework.dll V2.1 (outdated) in it's GAC. I believe that if I use a ab...

How to handle when SSRS does not automatically update fields based on database query?

So I am trying to change the number of fields in my dataset in SSRS and the refresh button is not picking up the added field from the SQL server. The query is definitely returning the correct data, as I have double checked in the server engine itself. Also, I have tried manually adding the field using the SSRS menu, but as soon as I exec...

Visual Studio Property Page Inherit Macros From Other Projects

So I am having a very difficult time finding a solution to this problem. Is there any way that I can inherit macros from another project. For example, for the post build I would like to use the macro for the RemoteMachine address that is located in one project in all the other projects. I was thinking something like (ProjectContaining...

Visual Studio 2010 UML Tools. How do they integrate with the code? For small/mid size products is there any value in using them ?

I just got a book that goes over all the VS2010 tools. Most I have never used like load testing/web testing, UML Tools, Layer Diagrams.... Has anyone had any real world experience with using these VS2010 tools like the UML diagramming? I am wondering if it is something that would really be useful starting a new project or is it just bu...

Green Exceptions?

When unhandled exceptions are encountered in VStudio usually the debugger highlights the line YELLOW as the line that threw the exception. However sometimes I encounter exceptions where the debugger highlights them green as shown: I've always treated them as normal exceptions, but today I decided to ask since google/bing produced no ...

json support in visual studio 2010

Hi, I'm trying to work on a new project parsing some JSON data for a Silverlight 4 project (specifically created as a "Silverlight Business Application - Visual C#" project) using C# in Visual Studio 2010, and I can't find how to include the references to have parsers and native object support for JSON data. As far as I know my devel...

Visual Studio - easy way to bring up type definition as source code

Oftentimes I want to bring up a system class in a source view, so that I can browse the properties and methods exposed by the class. Below is the screenshot of what I mean: Usually I do this by selecting the class name and pressing F12 (or right click>Go To Definition). However, if I haven't got it anywhere ready, i have type it up an...

visual studio 2010 Character encoding

After creating a batch file in visual studio, I get an error when I run it about invalid characters. Does anyone know the default character encoding for txt files? ...

How I can Integrate my Compiler in VS2008?

I make a compiler of Tiger and I want integrate with VS2008, but I read a lot of stuff and don't say very well how I can made that. What is the type of the project that I need to make? How I register my Language/compiler in VS2008, I know that I need install the SDK, I know little thing that I need to do but the steps more important, lik...

Maintaining .dsw and .dsp files in Source control

Is it advisable to maintain .dsw or .dsp files under source control with periodic check ins and check outs depending on the projects. ...

VSDBCMD deployment for additions to third party databases

We have some custom objects (stored procedures etc) in an SQL Server 2005 database belonging to an ERP system. The custom objects are in different schemas to the ERP objects. We're using Database Edition .dbproj projects and vsdbcmd deployment for all our custom application databases and would like to similarly manage our custom objects ...

Destroy process-less console windows left by Visual Studio debug sessions

A known bug with a Windows XP security update KB978037 can occur with Visual Studio 2005 (and 2008) where sometimes if you restart a debugging session on a console app then the console window doesn't get closed even though the owner process no longer exists. The problem is discussed further here: http://stackoverflow.com/questions/24028...

DLL with the same reference name in visual studio

Hi, I am using Visual Studio for a project and Drools.NET and Proxem Antelope both use a DLL IKVM.Runtime but they're both different versions. Thus I do not know what I'm supposed to do to accommodate both of these. Any help will be appreciated. Thanks! Error: Exception has been thrown by the target of an invocation. The proble...

/analyze flag in Visual Studio 2010 Professional

Running Visual Studio 2008 Professional it is possible to enable static code analysis using the /analyze flag (even though this is not supported for the Professional version according to the documentation). In Visual Studio 2010 Professional this no longer works. Instead there is a default /analyze- flag added (one I can't find a GUI se...

tsql source control help please

Hi All, According to the following section of BOL: How to: Use Source Control with SQL Server Management Studio If you have a source control client installed you should be able to choose it in the plug-in selection. I have both source control clients for Visual Studio 2005 and 2008 (tfs2005) installed and there's no plug-in to choose ...

Shortcut to get all private field names combined with && operator as a generated line of code?

Hi, Is it possible to use reflection when we write a code-template? I was just thinking if it is possible to write a piece of code-template that will return me a list of all private field in the class separated by && operator in Visual Stuudio? Let's say, I will enter "getAllPrivates&&" (or press a shortcut key) in the VS editor and i...

Can I get rid of SqlCommand.Parameters.Add(...) (and other depreciated members) from VS's IntelliSense?

I almost always initially select the depreciated SqlCommand.Parameters.Add instead of the recommended SqlCommand.Parameters.AddWithValue from the IntelliSence menu when I get into a mad typing frenzy...and this annoys the heck out of me. Is there anyway to remove the depreciated items from IntelliSence in VS 2010 so I don't use them at ...

Accessing the selected element inside a templated textblock bound to a wpf listbox

Hello good people , i'm trying to achieve a functionality but i'm don't know how to start it. I'm using vs 2008 sp1 and i'm consuming a webservice which returns a collection (is contactInfo[]) that i bind to a ListBox with little datatemplate on it. <ListBox Margin="-146,-124,-143,-118.808" Name="contactListBox" MaxHeight="240" MaxWidth...