visual-studio

how can I get intellisense in a T4 template?

When trying out these tutorials (T4 Tutorial: Creating reusable code generation templates) I noticed that although I was using plain c# I didn't get any intellisense, probably because of the file extension (.tt) Isn't there anyway to say to Visual Studio to consider those .tt files as .cs files and thus get the correct intellisense help...

Visual Studio to Make

While I love the Unix toolset family(including its black sheep Make) the project I'm working on currently is cross platform. That means having a Visual studio project ready for build. So my question is, is there a tool/plugin for importing a Make file into VS or conversely is there a way to export a visual studio project into Make? Or a...

Using up arrow in Visual Studio IntelliSense to select the last item

Anyone knows if this is possible? I tried it in vs 2005 and 2008 and it doesn't do that. IMO this would be a very useful feature when I know I want to select the last item or an item that's closer to the end of the IntelliSense list. ...

Convert asp.net project pages from Windows-1251 to Utf-8

I can do that file-by-file with Save As Encoding in Visual Studio, but I'd like to make this in one click. Is it possible? ...

Does Visual studio Team Foundation Server really need to be on it's own machine?

So we decided to go with visual studio team foundation server for version control, etc. Getting ready to deploy today and read in installation guide: "You cannot install Team Foundation Server on a domain controller or a computer that is running other server products such as Exchange Server or Host Integration Server." That and other ...

How to keep the installer's version number in sync with the installed assemblies' version numbers?

In my current project, I'm producing weekly releases. I've been using the technique described in this post to keep the version numbers of all of the assemblies in my project in sync. (I don't presently have any good reason to track the assemblies' version numbers separately, though I'm sure that day will eventually come.) When I push ...

Visual Studio _CrtDumpMemoryLeaks always skipping object dump.

Hi, I'm trying to use the CRT memory leak detection but I keep getting the following message in Microsoft Visual Studio: "Detected memory leaks - skipping object dump." I can never get the it to actually do and object dump. I followed the directions in the Microsoft article on Memory Leak Detection (http://msdn.microsoft.com/en-us/libra...

Attaching to a child process automatically in Visual Studio during Debugging

When writing plugins for media center your plugin is hosted in ehexthost.exe this exe gets launched from ehshell.exe and you have no way of launching it directly, instead you pass a special param to ehshell.exe which will launch the plugin in a seperate process. When we are debugging media browser I find the process of attaching to a se...

Which plugin do you use for SVN in Visual Studio?

I'm considering using SVN for my .net projects, and I'd like to know what plugins are available for integrating the source control capabilities directly into the IDE. I already know about : Visual SVN, which seems great but is not free. Is anyone using it? AnkhSVN, which is free but I've heard it's a bit buggy. Is anyone using it? are...

What flags do you recommend for release configuration in MSVC project

I am reviewing the flags we have for our MSVC projects, and I can't get enough documentation on the following features: Use Link Time Code Generation (/ltcg) enable function level linking (/Gy) Eliminate Unreferenced Data (/OPT:REF) Remove Redundant COMDATs (/OPT:ICF) optimize for windows98 No (/OPT:NOWIN98) Enable string pooling (/GF)...

Collapsible member events in Visual Studio designer

How can I get my control members to show their events on the Visual Studio event grid? Visual Studio does this for certain things like the "(DataBindings)" member by putting them in a collapsible section, like so: I'd like to do this for some of my own components, since their events are usually handled on the form, and having to creat...

Debugging w/ Attach to Process Starts ASP.NET Dev Server

I'm developing an ASP.NET site off of my Windows XP IIS Installation, and whenever I tell visual studio to attach-to-process to the aspnet_wp.exe it starts a new instance of asp.net development server. Is there a way to make it not start asp.net development server since I don't need it to launch anything? ...

Why doesn't intellisense show the appropriate methods according to what I am passing in?

Like there are 3 methods like: Modify ( int arg ) Modify ( double arg ) Modify ( string arg ) And if I am passing in a double variable, it should automatically navigate to method #2, instead of me scrolling down to see if there is a method that gets a double, right? ...

Navigating backward and forward with the mouse in Visual Studio 2008

My install of Visual Studio 2008 does not support IE style back and forward navigation withe the mouse in the C# code editor. Searches show that multiple people have run into this problem but I have yet to find a correct solution. There's even a VS add-in hack just to work around the "bug". Any idea why this functionality fails for some...

How do I customize the auto commenting text in Visual Studio?

When I type the trigger the auto comment feature in Visual Studio (by typing "'''" or "///"), most of the XML commenting details show up that I like. However, I typically add the history tag to the documentation so I can track and changes that are made to the method over time. Is there any way I can customize the auto commenting feature...

How do I add common C# code to a Visual C# 2008 Express project/solution?

(I still feel like a complete newbie in MS Visual environments... so please bear with!) I'm using Microsoft Visual C# 2008 Express Edition. I have a project and in that project are two different forms. The .cs file for each form starts out: using System; using System.Collections.Generic; using System.ComponentModel; using System.Data...

Visual Studio Shortcut for Automatically Creating Constructors from an Inherited Class

Say I am inheriting from a class with several "overloaded" constructors. By any chance is there a short cut in Visual Studio which writes the constructors in the derived class with the same signatures as in the default class for me, with boilerplate code which calls MyBase.New(...) and plugs in the arguments for me? EDIT: As far as I ...

How to Share App.config ?

How can I share/link App.config or Web.config between multiple projects in a visual studio solution ? ...

project publishing to windows web server 2008

I am working with a Visual Studio 2008 (C#) project on Windows XP Pro. I am trying to publish that application using "Publish Web" wizard to a remote server which is Windows Web Server 2008 OS. But the publishing fails every time with following error: Connecting to http://XX.XXX.XXX.XX/... Unable to create the Web site 'http://XX.X...

Programatically enforce capitalization in Visual Studio 2008?

What is the easiest way to programatically force capitalization of keywords in Visual Studio 2008? We work with a proprietary command delimited language (like HTML). We are attempting to migrate from an older editor to Visual Studio 2008. Our coding standards are to capitalize the commands. The old editor is customized to recognize t...