visual-studio-2008

Replace block of text in vs2008

Hi All, is there any way how to replace block of text (multi-line) in VS2008(VS2005)? So far I know VS2008 supports only single line replacing. Any tips welcome, cheers X. EDIT: thanks for tips guys. I was rather looking for some simplier option: like select multiline text, click Ctrl+H, Ctrl+V (copy text from memory) and hit Repla...

Can I create a visual studio 2008 starter kit that is based on a solution file with multiple projects

I have successfully managed to create Visual Studio starter kits in the past, however as far as I am aware they can only be made at the project level. I have a solution that contains multiple projects that I want to distribute throughout an organisation for several software projects. The starter kit that I want to make is at the soluti...

Is there an add-in for VS2008 to manage favourite solutions/projects?

The "Recent Projects" section on the startup page in VS2008 feels pretty useless to me. I'm used to checking out multiple repositories to work on different features. Our repository structure is pretty deep. The File->"Recent Projects" menu does not show enough of the path for me to figure out which project it is going to open. The clos...

Why does F10 (step over) in Visual Studio not work?

I'm debugging a (web) project in Visual Studio 2008. I'm hitting a breakpoint. F10 continues to the next line, as expected, but the next F10 just stops debugging and the code continues without any more debugging (like pressing F5). Why is this happening? I have tried 'clean solution'. Other breakpoints sometimes(!) skipped, even in the...

SubCommander and VS2008 - DAL not found

I have VS2005 and VS2008 Side by side (I just installed VS2008). When I run SubCommander in VS2005, everything works perfectly. However, when I run it in VS2008, my generated classes are not found in the IDE. Is there a configuration change, or something I'm missing? Thanks, ...

How to use integrated unit testing in VS2008 to test abstract class

I can't find any info on whether it can do this. I have a couple of protected methods inside the abstract class and want to test these. I don't want to inherit from the class and test its implementation (besides thats technically not strictly unit testing, also VS2008 won't let you test inherited methods). I would like to solve this p...

How do you define a Makefile-style variable in a solution to be used in multiple projects (VS 2008)?

I am working in a Visual Studio 2008 solution with multiple C# projects and some C++ projects and want to use post-build events to execute some 3rd party vendor command line tools. These post-build events are needed in several projects. I can hard code the path names and other files needed on the command line, but I really would prefer...

MSTest: Problems with DeploymentItem attribute

Hi, I'm currently maintaining an "old" system written in C#.net, removing some obsolete features and doing some refactoring. Thanks god, the previous guy wrote some unit tests (MSTests). I quite comfortable with JUnit tests, but didn't do yet much with MSTests. The test methods have a DeploymentItem attribute, specifying a text file wh...

Change Default Install Directory of Visual Studio 2008

I would like to install Visual Studio 2008 on a PC with an existing VS2005 install. Due to the lack of space on my C: drive, I would like to install VS2008 on my D: drive. Is this possible? Note: I have reinstalled all trivial applications on my D: drive, and have cleared as much space as possible on the C: drive. Due to the fact t...

How do we properly configure local dev boxes using Visual Studio 2008 to deploy onto a server running Crystal Reports XI Release 2 .Net 2005 Server?

In our scenario, a developer builds the web app locally and then we place it out on the application server. Recently, projects have been upgraded to Visual Studio 2008. We have been having issues (such as the print control not functioning properly) and I want to see if they are related to the merge modules (or whatever else). My first ...

Visual Studio - automatically implement all inherited methods from an interface

Let's say we have a class called MyClass. public class MyClass We also have an interface like so: public interface MyInterface{ public string SomeFunction(int foo, string bar, short baz){} } We want this class to inherit from MyInterface. public class MyClass: MyInterface MyInterface has n properties, and i methods. How can I g...

VIsual Studio Copy Project

I would like to make a copy of my project. I would rather not start doing it from scratch by adding files and references, etc. Please note that I don't mean copy for deployment. Just plain copy. Is there a tool in VS to do this? I am using VS 2008 ...

Multi targeting in vs2008 with crystal reports

Is there a way to make VS2008 work with the old (vs2005 crystal reports) assemblies and not require any updates to be installed in the client machines? We have upgraded a Visual Studio 2005 .net 2.0 solution to Visual Studio 2008. The purpose is to take advantage of the IDE improvements and because it supports multi targeting. The sol...

Where is the Wrapper Assembly Key File setting in VS 2008?

I'm trying to build an application that is strongly named. It is referencing a COM interop library that I add via the Add References dialog. It's been a while, but I seem to recall that in older versions of visual studio, there was a project setting for Wrapper Assembly Key File. I can't seem to find it in Visual Studio 2008? ...

SQL Server 2008 Express Edition Connection Problem

...

Move a list of source files with classes inside to another folder and automatically change namespace

Hello, Let's say I have 100 winforms in folder Forms. All form classes belong to ProjectName.Forms namespace. I want to move all those forms to folder WinForms and I want their namespace to change to ProjectName.WinForms. Is there a way to do this automatically without manually changing each form's namespace? I have a Resharper, but di...

How do I disable plugins from command line on visual studio?

Resharper is killing me for some reason on startup, I just need to get in, is there a command line switch for load without addins? ...

Writing naked functions with custom prolog and epilog code in Visual Studio

I'm writing some plugin code in a dll that is called by a host over which I have no control. The host assumes that the plugins are exported as __stdcall functions. The host is told the name of the function and the details of the arguments that it expects and dynamically crufts up a call to it via LoadLibrary, GetProcAddress and manually...

Use Orca to edit msi from command line?

I'm using Visual Studio 2008 and have created a setup project for my application. The application has a high-resolution icon (for Vista). There's a bug in Visual Studio, and the installer creates a desktop shortcut with a low resolution icon. I logged this bug in Microsoft Connect (https://connect.microsoft.com/VisualStudio/feedback/Vie...

Problems with the form designer in VS 2008?

We're experiencing several cases where on loading up a project that was otherwise OK, gives an error in the Winforms designer along the lines of: Could not load file or assembly 'MyLibrary, Version=1.4.3419.14461, Culture=neutral, PublicKeyToken=null' or one of its dependencies. The system cannot find the file specified. And Visual Stu...