visual-studio-2008

Reference to Library Binary - Debug or Release version?

I asked a question earlier today (Methods of Managing Source Code) as I've been unhappy with the way I manage my shared libraries' source code. As a result of the answers posted, I have found a better method. I'm now working through my repository tidying up all my source code, however as a result I now have another question... Whilst I...

visual studio 2008 can't open project from svn

I am using ankhsvn with my visual studio 2008 and when I tried to open the .sln file I get the following error: The project file "blah blah blah" cannot be opened The project type is not supported by this installation Why is this??? ...

one-click deploy - how do I ensure the sqlite database file only gets copied if it doesn't already exist?

Hi, Background - I'm starting to use click-once deploy for a WinForms application that has a sqlite database file, which holds the blank database structure ready to go. Question - How do I set things up so that the click-once deploy (via Publish, in VS2008) will ensure that when the user downloads it will: a) If does not already ex...

Variadic Macros : how to solve "too many actual parameters for macro.."

Ive been working on getting some of my code originally built on the mac to run under Visual Studio 2008 Express and have run into a weird problem with the variadic macros i use for my assert code : The macro is defined as : #define SH_ASSERT( assertID, exp, description, ... ) shAssertBasic( int(exp), assertID, description, __LINE__, _...

Visual Studio 2008 profiler analysis - missing time

I ran the Visual Studio 2008 profiler against my ASP.NET application and came up with the following result set. CURRENT FUNCTION TIME (msec) ---------------------------------------------------|-------------- Data.GetItem(params) | 10,158.12 ----------------------------...

How to make Visual Studio to automatically include curly brackets in C# code?

After namespace, class, struct, enum, for, foreach, while, switch, do, using, unchecked and at the beginning of methods, shouldn't Visual Studio automatically include curly brackets? How to activate this feature? ...

(nested) user controls within a mvp pattern causing sporadic problems

hi everyone, I have a serious problem with nested user controls (UCs) in WinForms while trying to implement the mvp pattern (passive view). The project consists of one model (designed as a singleton) and a set of different presenters with corresponding view interfaces. To avoid one huge view interface and therefore an overloaded main UI,...

Is there a plugin for visual studio 2008 that will allow you to use Linq in a watch window?

I am working in Visual studio 2008 and would like to be able to use Linq in a watch window. Is there a tool that will allow me to do that? ...

Can't to connect Visual Studio 2008 to TFS 2010

I am trying to connect to my TFS 2010 RC server. When I try to connect I get a error message. Here is a screen shot: This is the path I am using to connect: http://tfs2010test:8080/tfs/DefaultCollection I have Team Explorer 2008 SP 1 installed. I have read this question: http://stackoverflow.com/questions/1925512/visual-studio-200...

Visual Studio: find and replace ALL CAPS with Title Case

Consider the need to replace window titles that are currently in all caps i.e. "ADD PRESCRIPTION", "ADD PATIENT", to the form "Add Prescription" and "Add Patient". I am using the Visual Studio search dialog to find all of the strings that are all caps using the regex "([A-Z]|[ ])*". That works great. Is it possible to find and replac...

Project References DLL version hell

We're having problems getting visual studio to pick up the latest version of a DLL from one of our projects. We have multiple class library projects (e.g. BusinessLogic, ReportData) and a number of web services, each has a reference to a Connectivity DLL we've written (this ref to the connectivity DLL is the problem). We always point ...

Difference between ASP.NET and .NET framework version

I realize this is probably a hopelessly newbie question, but what is the difference between the ASP.NET version and the .NET framework version? I am making an asp.net site using the .net 3.5 framework, but when I echo this; System.Environment.Version.ToString() I get "2.0.50727.4927". Is this then an ASP.NET 2.0 site? This seems odd...

C# WPF Drag to Reorder Listview

How would I drag to reorder a ListView in WPF? ...

Same source, multiple targets with different resources (Visual Studio .Net 2008)

A set of software products differ only by their resource strings, binary resources, and by the strings / graphics / product keys used by their Visual Studio Setup projects. What is the best way to create, organize, and maintain them? i.e. All the products essentially consist of the same core functionality customized by graphics, strings...

Regex in Visual Studio: How to comment out all lines that contain "xyz"?

In Visual Studio 2008, using Regex, how do I comment out all lines containing the text "xyz"? ...

How to check if label in VB.net (VS2008) has multiple lines?

Hi, I have a method that saves form controls data to a text file, including its text. IF a label has multiple lines, this breaks the text file writing multiple lines to it. I was instructed to simply ignore multiple-line labels and don't include it in the file, but I don't know how to check whether or not a label has can multiple line...

unable to obtain public key for StrongNameKeyPair

I have visual studio 2008 running on a Windows 2008 virtual PC. I decided to try out the Microsoft Test Tools built into the IDE (as opposed to NUnit, which I typically use). Using the Unit Testing wizard, VS adds a new test project to the source tree, creates a bunch of unit tests. When I try and compile, I get this "Unable to obtain...

How to get all forms in a VB.net (VS08) project in an array?

Alright, so I need a method that traverses all the forms inside a VB.net project under Visual Studio 2008, and create an array of type form with references to all the forms inside it, so that the array looks like this (pseudocode) FormsArray() = [Form1, Form2, Form3, Form4] However, I don't have a clue as to how to begin. Any help? T...

How do I upgrade my Crystal Report libraries in a .NET 3.5 project to CR XI R2?

Our project currently uses Crystal Reports for Visual Studio 2008. We need to upgrade to XI R2, but I'm having problems doing so. Here are the steps I followed: Install Crystal Reports XI R2. Collect updated assemblies from the GAC. I did this because I couldn't find version XI libraries in the "Add References..." dialog. I verifie...

Visual Studio 2008 SP1 - How to stop debugging in other browsers than IE?

Visual Studio has integrated debugging in IE, when you close IE, it stops debugging, and if you stop debugging, VS closes IE. I want it to do the same thing with firefox/chrome! (mainly this 2, if is it possible with others, it'll be appreciated!) Is there a way to do this? Thanks in advance! ...