visual-studio-2010

Can a project contain other projects with Visual Studio?

I have a software project that has the following structure. - Library A - Library B - Main program - Test for Main I have four project files (csproj) for each one, but it would be good if I can debugging/compile those projects in a single solution explorer. Does Visual Studio (especially for 2010) support this feature? ...

Show shortcut keys in ScreenTips in Visual Studio 2010

In Visual Studio 2005 and 2008 you used to be able to mouse over the toolbar and a tooltip would pop up showing the associated shortcut key if you turned on the feature. This feature seems to be missing in VS 2010. Method to configure this feature in 2005 and 2008: http://stackoverflow.com/questions/2151899/display-keyboard-shortcuts-in...

DEV burn: enable line numbers for all Visual Studio users?

We're creating the DEV burn that will be put on every incoming developer machine. We've installed VS2010, but I want VS to show line numbers for all file types for every user that eventually logs into the workstation. Is there something I can do to this DEV burn install of VS to facilitate that? To be clear, I'm trying to change the e...

Visual Studio 2010: Unit test results with "jump to file at line/col" links

I'm unit testing a compiler and would like to provide a unit test result that can be clicked and will bring visual studio to a specified test input file with the cursor at a specified line/col. Is this possible? I've tried the format outlined at http://blogs.msdn.com/b/msbuild/archive/2006/11/03/msbuild-visual-studio-aware-error-message...

Possible to deactivate parts of Visual Studio 2010 Ultimate without reinstall?

I have Visual Studio 2010 Ultimate installed. It includes a lot of features that I rarely use, mostly around Team Explorer and Architecture and Modeling Tools. These things have a ton of commands and menus and context menu items that really clutter my display and probably slow down VS launching etc. Is it possible to deactivate these co...

When does the defered execution occur?

I've got a situation which I want to fetch data from a database, and assign it to the tooltips of each row in a ListView control in WPF. (I'm using C# 4.0.) Since I've not done this sort of thing before, I've started a smaller, simpler app to get the ideas down before I attempt to use them in my main WPF app. One of my concerns is the...

[VS 2010] How to delete all comments in a selected code section?

Every once in a while, my code gets littered with many useless comments, most of them are obsolete lines of code, and some are obsolete "memos to self". So I was wondering if there's a way to just select a code section, and with some magic key combination or macro, delete all of those. Thanks. ...

Visual Studio 2010 crashes upon editing a C# string literal

My VS2010 Premium RTM installation has developed a nasty habit of crashing when I edit a string literal. It 'feels' like the Intellisense bug and I have an unreasonable and unsupported hunch that this has something to do with ReSharper, because the ReSharper integrations get slower and slower until finally the crash happens when I edit a...

Where are logs for witadmin actions in TFS 2010?

When running the witadmin command from the Visual Studio 2010 Command Line, where is this action logged in TFS 2010? An example command would be: C:>witadmin exportwitd -collection:http://server:8080/tfs/projectcollection -p:TeamProject -n:Bug -f:c:\Bug.xml ...

Referencing an object using a variable string in Visual Basic 2010

I have several sets of similar objects (labels, progress bars) on a form in Visual Basic 2010 on Windows. In my code, I have collections that contain data, which needs to be pushed into the value/text property of each. I would like to get a solution similar to PHP in that I can assign values somewhat like: For ID as Integer from 0 ...

I want to debug an ASP.NET MVC app in IIS using a custom URL defined in HOSTS

I am having trouble setting up VS2010 so I can debug in IIS: I have added some custom URL's to HOSTS I have edited the application properties to use local IIS I have created a virtual directory in IIS Any good resources fro setting this up? ...

How to add a jscript or html item template via an add-in in visual studio

I'm currenlty working on an add-in and require the functionality to add custom item templates to a project programatically. I'm currently installing the templates (which are of a .zip format) in ..\Visual Studio 2010\Templates\ItemTemplates\. From within the add-in I then call the following code: string templateLocation = (solution as...

Programmatic way of refreshing VS Item Template cache from within Visual Studio Add-In

Is there a way from within a Visual Studio Add-in to get visual studio to rebuild its cache in a similar way to calling DevEnv.exe with the /InstallVSTemplates command? ...

Can a VS2010 VSPackage project be installed to VS2008?

I am wondering whether the result VSIX artifact of a VSPackage project created and written in Visual Studio 2010 can be deployed to Visual Studio 2008 - provided, of course, that the package does not use/rely on any .NET 4 assemblies? Alternatively, what other paths may exist, that allow me to create an installable extension targetting ...

How to conditionally generate additional projects from a ProjectItem template?

I have a situation where I'm generating a single project via a Project Item template in Visual Studio. I pop up a dialog which offers the options to create additional test and setup projects, too. My question is: how do I instrument this using the existing infrastructure? ...

When I add a new Form in the Ide, it gets default properties, but I always use a different font and a different background color

Adding a new Form in the project creates a default form with default properties. I have to change them manually, but in all my project I have the same properties (font, background color, etc.). Is there a way I can change the default Ide template for Forms? ...

Debugging WCF NetTCP Services with UAC

I have a set of NetTCP services configured that run under a Windows service for production but I use a console app to spin them up for debugging purposes. With Windows Vista I disabled UAC outright because it was annoying, however I'm trying to leave it enabled with 7 because it does everything I want while being very quiet and not naggy...

Changing applicationSettings key in app.config file and still allowing VS2010 to manage settings.

I have a C# WPF application that use several library assemblies. I was wondring if there was a way to change the key 'applicationSettings' in the app.config file and still allowing VisualStudio 2010 to manage the settings in the project tab. These library assemblies that the default settings in the project tab of VisualStudio. They al...

Disable Visual Studio (ReSharper?) editor tooltips?

When I mouseover a method in my line of code, VS2010 shows a tooltip that tells me information about the signature and documentation of the method. How can I disable these tooltips (maybe ReSharper is showing them?)? ...

Using RockScroll v1 with Visual Studio 2010 problem.

I knew about RockScroll at this blog, I downloaded it to run on Visual Studio 2010, but it doesn't seem to work with VS 2010. What might be the problem? Doesn't RockScroll v1 work with VS 2010? If so, what would be an alternative? If not, what might be wrong? ...