visual-studio

Tool or code for Cache and Memory Bus performances

I am facing a performance issue on a multi-core (8+) architecture with software written in C++ / VistualStudio / WindowsXP. Suddenly I realized that I have no idea of the performances of my L1 and L2 cache and CPU->to->Memory bandwidth. I have tested several tools (including VTune, Glowcode, etc, etc) but all of them fails when tested ...

C# structural highlighting in Visual Studio 2008

Hi, I'm looking for an add-in to VS2008 that can enable structural highlighting (vertical lines in blocks of code) in the C# code editor. I tried out CodeRush, but while the structural highlighting was great, I was annoyed with all the other stuff in CodeRush. No matter how much I disabled in the options, I couldn't quite get rid of i...

How can I clone a .NET solution?

Starting new .NET projects always involves a bit of work. You have to create the solution, add projects for different tiers (Domain, DAL, Web, Test), set up references, solution structure, copy javascript files, css templates and master pages etc etc. What I'd like is an easy way of cloning any given solution. If you use copy/paste, t...

What is Microsoft's official stance on using WCF with Visual Studio 2005?

I noticed last night that the WCF extensions for Visual Studio 2005 aren't available on their site any longer. I've read that they want people to use Visual Studio 2008 for WCF/WF/WPF. Have they made an official statement regarding this? edit: I already have the CTP3 for VS2005. I want to know what Microsoft's official stance is. Y...

msbuild: set a specific preprocessor #define in the command line

In a C++ file, I have a code like this: #if ACTIVATE # pragma message( "Activated" ) #else # pragma message( "Not Activated") #endif I want to set this ACTIVE define to 1 with the msbuild command line. It tried this but it doesn't work: msbuild /p:DefineConstants="ACTIVATE=1" Any idea? ...

How do you manage .vcproj files in souce control which are changed by multiple developers?

We use Subversion as our source control system and store the VisualStudio project files (vcproj) in the source control system as is normal I think. With Subversion we don't use any form of file locking, so if two developers are working on the same project at the same time and both add files to the project, or change settings, the second ...

Windows Form Designer: Could not load file or assembly...

Hi all, Has anyone ever had the issue where trying to "View Designer" on a windows form in Visual Studio .NET causes the error: "Could not load file or assembly…" ? In this case, the assembly in question was XYZ.dll. I managed to fix this by adding XYZ.dll and all its references to my project's references (even though my project doesn'...

How did you choose your Visual Studio productivity addon?

I'm evaluating Visual Studio productivity addons for my development team, which includes some folks who are very new to C# and some folks who are very experienced. We don't use VB.NET. I personally like ReSharper, but before I suggest something that I personally like, I would like some opinions for and reasoning behind using a different ...

Any clever way to launch a makefile in Visual Studio only if build succeeded?

We have a makefile that is built last in our build process using Visual Studio to launch our unit tests. Unfortunately if the build fails the makefile is still processed and we have extra (annoying) errors. Any way to prevent that? Example Project A : build dummy.exe Project B (makefile) : build command is : run dummy.exe /unittest We ...

Visual Studio database project designers

I have this huge legacy database that I'm trying to get under source control. I looked around here on stackoverflow and decided to use the Visual Studio 2008 database project, then committing stuff on svn. I successfully imported the schema into the project, but I can't find any way to use the user-friendly table designers with this kind...

Hiding a function.

I have a class holding complex scientific computations. It is set up to only allow a user to create a properly instantiated case. To properly test the code, however, requires setting internal state variables directly, since the reference documents supply this data in their test cases. Done improperly, however, it can invalidate the st...

Very slow response for Visual Studio 2005 Web Site Administration Tool

I am working on an ASP.NET application and am trying to add user authentication. As a first step, I am using the Web Site Administration tool (Website | ASP.NET Configuration) to manage users and permissions. Accessing this website is incredibly slow. To load the main page takes 30 seconds. When navigating to the Security page (also ...

Eclipse's Ctrl+click in Visual Studio?

After working for a few days with Eclipse Java I totally got addicted to pressing Ctrl and clicking on an identifier to go to its definition. Since then I've been looking for a way to achieve this in Visual Studio as well. I realize VS has right click, Go to definition, and that F12 does the same. I also realize that Visual Assist does ...

Visual Studio Memory Usage

I find that quite often Visual studio memory usage will average ~150-300 Mb of RAM. As a developer who very often needs to run with multiple instances of Visual studio open. Are there any performance tricks to optimize the ammount of memory that VS uses. I am running VS 2005 with one add-in (TFS) ...

Is there a way to change something in Tool->Options via a macro?

I'd like to be able to toggle easily between two values for "maximum number of parallel project builds" in Visual Studio 2008 (in Tools->Options->Projects and Solutions->Build and Run). (When I'm planning on doing concurrent work I'd like to reduce it from 4 to 3.) I'm not too well versed in writing macros for the IDE. When I try recordi...

How do I disable the "smart insert" function that is bound to the Tab key in the Visual Studio emacs mode?

In both the Visual Studio emacs mode and the default mode the tab key is bound to Edit.InsertTab. However, in the emacs mode the tab button jumps to where it expects the next line to start instead of inserting a tab. Is there a way to disable this "smart insert" while keeping the emacs key bindings? ...

ReSharper-- Unstable for anybody else?

I have seen Jetbrain's ReSharper tool on many "must-have" tool lists. I've installed it on a few occasions over the last few years and it's turned my Visual Studio sluggish and erratic. I generally uninstall it after a week or two because it make VS flaky, I want to like it, but I can't get past the instability. So what's the deal? Am ...

Understanding dlls and how they work in Visual Studio

Does anyone have a good resource on dlls and how they are used / generated in Visual Studio? A few questions I'm rather hazy on specifically are: How refresh files work How dll version numbers are generated The difference between adding a reference by project vs browsing for the specific dll Any other tips are welcome as well. ...

Is using resharper a time saver?

I have installed ReSharper and "played" with it twice now. I have always found it annoying and that it got in the way of the hotkeys I was already using in Visual Studio. The people that use it tend to swear by it. For those of you that do use it, where do you find it saves you the most time or what do you think its best feature is? Pl...

Why isn't my custom WCF behavior extension element type being found?

I have a solution that contains two projects. One project is an ASP.NET Web Application Project, and one is a class library. The web application has a project reference to the class library. Neither of these is strongly-named. In the class library, which I'll call "Framework," I have an endpoint behavior (an IEndpointBehavior implementa...