visual-studio

Highlight Indentation in Visual Studio IDE 2005

I want to HighLight Indentation in Visual Studio IDE 2005. I want to replace space with periods(.) for e.g:- This is what I want main .{ ..Print("hello World"); .} ...

How to bulid the exe that behaves same in all machines.

Hi I am facing a variety problem is explained below. I have created a c# class library(Test.dll) using which i can enumerate the list of instances and databases of sqlserver. I have 2 Machines 1 dev machine and 2 one is test machine. Now when i testing the Application in my dev machine it is properly behaving. But when i copy the app...

Why does my VC 2005 x64 Debug session allways fail on first trial (but not on second trial)?

I have a large C++ application running in a Win32 and a x64 Version (using Windows XP x64). When debugging the x64 Version, after each code change the first debug session i start stops with Unhandled exception at 0x77ee5f3c in myapp.exe: 0xC0000005: Access violation writing location 0x0000000000030c90. The callstack shows endless rec...

Can I add a WCF DataContract to a complex type?

Hi, I have a complex data type, including a number of functions, as well as the usual get and get methods. My life would be considerably easier if I could use WCF so my client can also use this data type. Do I Ignore all the operations, putting [DataMemeber] only where needed. Put the class in question in a shared library assembly fo...

Source control for Visual Studio that doesn't require a server?

Can anyone recommend a source control solution for Visual Studio? I am going to be the only person using it, I just need something to back up my data every so often or before I undertake a big change in the software. I tried AnkhSVN, but this requires an SVN server. Is there anything that can be used locally that takes the pain out of co...

How to add a .NET C# project to a web site?

I just finished my first C# project in VS 2008 and it is working well now. But now I need to publish this project on my website. This project interacts with my SQL Server 2008 Adventureworks database on this same computer. I will use this same computer to host the website and house this database. I know HTML but not how to add a .N...

Visual Studio - How to disable autoformat/correct while running macro?

When running a macro that changes the selected text, tags are automatically closed and the text formatted. How can I prevent that from happening? For example, wrapping text in a tag: DTE.ActiveDocument.Selection.Text = String.Format("<tag>{0}</tag>", DTE.ActiveDocument.Selection.Text) Ends up with two closing tags: <tag>Text</tag></...

How can I make all of the IDisposable classes colored differently in the Visual Studio IDE?

Title covers it all. I'd like classes which implement IDisposable to show up in a specific color so I can know if I should wrap them in a using block. Is there a setting or a process by which you can extend the IDE? ...

T4 Code Generation missing in Visual Studio 2008?

So I decided to roll up my sleeves and try out the T4 code generation built into VS2008. I was going to work off of this article: http://www.olegsych.com/2008/09/t4-tutorial-creatating-your-first-code-generator/ So, I get to this part: "Click Project->Add New Item in the main menu and select Code Generation->File template in the dialo...

What's the C++ GUI building option with the easiest learning curve - VS/Qt/wxWidgets/etc.?

I'm looking to be able to build GUI applications quickly and painlessly as possible. I'm competent (though not expert, and have no formal training) in C++, but have never used a GUI building toolkit or framework or anything. I am not a professional programmer and am totally inexperienced and ignorant when it comes to building GUI apps. H...

Basic SVN Usage

Preface Let me start off by saying that I'm a relatively new programmer and I have no prior experience with source control -- although after some reading, the concepts and general lingo are not alien to me. Background I'm about to start my first professional project (I'll be the only one committing) and I'd like to take this opportu...

Passing an operator along with other parameters

I have some VERY inefficient code in which many lines appear 4 times as I go through permutations with "<" and ">" operations and a variety of variables and constants. It would seem that there is a way to write the function once and pass in the operators along with the necessarily changing values and"ref" variables. What technique do I...

Visual Studio 2008 & Override LanguageService for Existing File Extension

Hi, I write simple LanguageService for JavaScript language. Target IDE is Visual Studio 2008. I want to run my LanguageService for .js extension file(default extension for JavaScript language). But for this extension my LanguageService don't working. When I run my LanguageService for extension .jsp(could be any extension don't supportin...

Is there a way to ignore Visual Studio errors thrown by XAML?

I know you can do it in CodeBehind with something like this... #pragma warning disable 67 ... #pragma warning restore 67 But is there a way to do this type of thing in XAML? For example, I have the following in my App.xaml... <FontFamily x:Key="ExtendedFontFamily">Verdana</FontFamily> And it keeps throwing me these VS errors (even...

Add C# project to a web site using IIS 6.0

I just finished my first C# project in VS 2008 and it is working well now. But now I need to publish this project on my new website. This project interacts with my SQL Server 2008 Adventureworks database on this same computer. I am running IIS 6.0, but I am a newbie to both IIS 6.0 and VS 2008. I will use this same computer to host the...

When I tell VS to debug, and it says "Validating Web Site" for 10 minutes, what is it doing exactly?

This drives me nuts. I have one third-party product in particular that has about 11,000 files in one of the directories. On sites using this system, from the time when I press the "Play" button to the time when it gets done "Validating Web Site" and recursing through the directory tree, it can often be 10 full minutes. What is VS doin...

Visual Studio (with TFS) history other than solution explorer?

Has anyone ever found other ways to get a file's commit history outside of solution explorer? It's really annoying that history is so stagnant because it is a really helpful view. I just wish it would show the current file. Here is the use case. I build my gigantic solution, find random errors in files I have never heard of and want to...

In Visual Studio, how to correctly build an application for 64-bit machines?

I need to build an application for 64-bit platform to utilizes some DLL's built for 64-bit machines. I know how to you can build each project separately to target for 64-bit platform. But when you have many projects in one Visual Studio solution, and some DLL's are dependent of the others. How do you decide what projects to build as x64,...

How to handle stdafx.h in cross-platform code?

I have a Visual Studio C++ based program that uses pre-compiled headers (stdafx.h). Now we are porting the application to Linux using gcc 4.x. The question is how to handle pre-compiled header in both environments. I've googled but can not come to a conclusion. Obviously I want leave stdafx.h in Visual Studio since the code base is p...

How to force VS to use appSettings value instead of My.Settings for WebService Reference

In visual studio 2008 when you add a web service reference, and set the Url behavior to dynamic it will create a My.Settings.Namespace.Webservice setting in a special My.Settings section in the web.config i do not like this style, i want to keep using the appSettings>value for this. how can i tell visual studio to use appSettings instead...