visual-studio

How do I convince my team to drop sourcesafe and move to SVN?

My development team uses source safe at a very basic level. We're moving into some more advanced and extended development cycles and I can't help but think that not using branching and merging in order to manage changes is going to be biting us very soon. What arguments did you find most useful in order to convince your team to move to...

How do you do code reviews?

I've recently moved from a company with 30 or so developers all based on the same site, to a smaller company with a total of 6 developers working all over the country. Previously when I was conducting code reviews I'd have the person sitting next to me, or I'd go round to his/her Pc and go over the code with them. At my new company thi...

ASP.NET Framework effects of moving from 2.0 to 3.5?

I've started using Visual Studio 2008 and it keeps asking me to upgrade my 2.0 website project to 3.5 every time it opens. What effectively happens when I "upgrade" a website project from 2.0 to 3.5 in Visual Studio? Does it update my web.config? How exactly does it change my project/website/code? Is there a potential for any 2.0 met...

What's the best way to set up data access for an ASP.NET MVC project?

I am starting a new ASP.NET MVC project to learn with, and am wondering what's the optimal way to set up the project(s) to connect to a SQL server for the data. For example lets pretend we have a Product table and a product object I want to use to populate data in my view. I know somewhere in here I should have an interface that gets i...

Visual Studio: How to break on handled exceptions?

i would like Visual Studio to break when a handled exception happens (i.e. i don't just want to see a "First chance" message, i want to debug the actual exception). e.g. i want the debugger to break at the exception: try { System.IO.File.Delete(someFilename); } catch (Exception) { //we really don't care at runtime if the file cou...

Book recommendations to update from VS2003 to VS2005/2008

I'm stuck in the world of VS2005 and .net framework 1.1. I'm only really interested in Winforms so never felt the need to move on. I am however now interested in seeing what is available now (latest .net framework and VS) and what has changed. Any good book recommendations? I don't need the VS / .net from scratch, I'm specifically lookin...

Difference between Visual C++ 2008 and 2005

I couldn't find any useful information on Microsoft's site, so here is the question: has the compiler in Visual C++ 2008 been improved significantly since the 2005 version? I'm especially looking for better optimization. ...

Disabling Warnings generated via _CRT_SECURE_NO_DEPRECATE

What is the best way to disable the warnings generated via _CRT_SECURE_NO_DEPRECATE that allows them to be reinstated with ease and will work across Visual Studio versions? ...

How to export fonts and colors from VS2008 to VS2005?

I have been forced to work in Visual Studio 2005 and would like to export my fonts and colors from Visual Studio 2008. However, VS2005 complains about wrong export document version. Is there any good way to do this besides manually changing each color and font? ...

why would an application acts differently after VS debugger is attached?

There is a desktop application written in c# trying to manage a socket connection and failing but being successful after same application is attached to visual studio. how can it be debugged? ...

Can I add custom version strings to a .net DLL?

I can add custom version strings to a C++ DLL in Visual Studio by editing the .rc file by hand. For example, if I add to the VersionInfo section of the .rc file VALUE "BuildDate", "2008/09/19 15:42:52" Then that date is visible in the file explorer, in the DLL's properties, under the Version tab. Can I do the same for a C# DLL? Not...

VS2005 "Add New Item..." dialog - default item

After installing a third-party SDK, it very discourteously makes one if its templates the default item in "Add New Item..." dialog in Visual Studio 2005. This is also the case for all other similar dialogs - "Add Class...", "Add User Control..." etc. Is there a way to change this behavior? ...

ASP.Net Web Site Won't Compile, But Works Anyway?!

I have an ASP.Net 2.0 web site, using the DotNetNuke framework (4.09), and it will not compile, but when I hit the site in a browser, it works. Even the parts that don't compile will work. How is IIS able to compile and run this site, when Visual Studio can't? Everything is the same in both places... I copied the entire web site from the...

Is there anyway to remove Design (and Split) views from Visual Studio 2005/2008?

I am trying to find a way to disable Design / Split views from appearing in Visual Studio. I figure there's no way to completely disable it, but I still can't seem to find a way to remove the shortcut (F7), or remove the buttons from the bottom bar. ...

Capture console output for debugging in VS?

Under VS's external tools settings there is a "Use Output Window" check box that captures the tools command line output and dumps it to a VS tab. The question is: can I get the same processing for my program when I hit F5? Edit: FWIW I'm in C# but if that makes a difference to your answer then it's unlikely that your answer is what I'm...

Visual Studio window Manager

Hi, I was wondering if anyone knows of a window manager for visual studio 2008 like this one. I really liked it, thats all i used in vs2005, and saw somewhere it supposed to work in vs2008 but it doesnt. I have tried it on many installations of vs2008 and it doesnt remember any settings. I really liked being able to easily change window ...

VSTS Code Coverage bug?

Has anyone experienced this VSTS Code Coverage "bug?" Do you have any suggestions? I am doing code coverage analysis with Visual Studio, which is generally an easy task now with the tools that are included. However, I have an issue that I can't overcome. Let's say I have assemblies A, B, C, and D and have marked them all for coverage a...

Any way to do Visual Studio "project only" build from command line?

devenv mysolution.sln /build "Release|Win32" /project myproject When building from the command line, it seems I have the option of doing a /build or /rebuild, but no way of saying I want to do "project only" (i.e. not build or rebuild the specified project's dependencies as well). Does anyone know of a way? ...

Visual Studio Freezing/TFS Window Might be off screen

I am using Visual Studio 2005 with Team Foundation Server. When I right click a file under the source control and choose "compare" VS appears to freeze until I hit escape. My guess is that the window that is supposed to be popping up is somewhere I can't get to. I tried minimizing all the windows that I can and it is nowhere to be fou...

Plugins wont work with vb.net express.

What won't plugins wont work with vb c# studio express? ...