visual-studio-2008

Unit test summary incorrect in Visual Studio for mbunit tests

When I run my mbunit tests in Visual Studio test runner (VS 2008) my tests pass but the test summary does not include the passed tests. For a test, I created a test project with a single test and this is the test summary VS returns when I run it: Run Result: 0/1 tests passed, 0 failed, 1 skipped But the test is shown as passed in the T...

Copy to Output Directory copies folder structure but only want to copy files

I have a VS2008 I want to copy certain files from a directory into my /bin/ folder. I have set the files (located in /common/browserhawk/) to "Copy to Output Directory". However, it copies the folder structure as well: the files are copied to /bin/common/browserhawk/ How do I get these files to copy to just /bin/? I do not want to s...

Threaded debugging in C# and vs2008

Hi all, I have a pretty serious multithreaded debugging problem. I have some kind of timing issue when interacting with a serial device, and I need to track it down. I have three threads: The main thread for UI updates. The user can either change one parameter of the device, or many all at once by choosing a preset. The status chec...

grouping and counting objects based on property

I need to iterate a collection of objects. Based on a property value of the object, I need to group objects together. I also need a total count of each discrete property value. I do not know how many groups there will be and there could be 1 to n objects in each group. How do I do this? Are there algortihms that could help me out with t...

How do I break a loop at a certain point when debugging?

Env: Visual Studio 2008 - C# I have a for which runs for 1000+ times over a string array. I want to have my app break when one of the strings matches a certain term so I can walk through at that point in my code. Now I know I can add a piece of code that looks for this and a break point when it hits, but is there not a way to do this ...

How do I distribute a service that uses the Team Foundation Server API?

There are tons of great examples of creating work items using the TFS API, which is all packaged as part of the VS 2008 SDK. So, imagine I've created a simple web service that takes a few bits of information, then creates a work item. Everything works wonderfully locally, but what if I want to deploy that web service somewhere else? L...

How can I stop my Visual Studio from launching IE8 TWICE when I click "Start Without Debugging" (Ctrl-F5)?

I use Visual Studio 2008 primarily for web development, and there's one annoying behaviour which seems to have occurred ever since I upgraded to IE8 on my work PC: When I set a start page for a web site or web application project, and then either click the "Start Without Debugging" icon in the toolbar or use the keyboard shortcut CTRL-F...

Is there any tool that improves intellisense in vc++ (vs2008)?

Is there any free tool that improves Intellisense and provides code snippet in vc++ 2008? Please don't post commercial tools ...

how can i check who has a specific file checked out in tfs?

how can i check who has a specific file checked out in tfs? in VS2008 a file in the project is marked as checked out ...

Visual Studio 2008 Unit Test: How to execute one by one?

When doing Unit Testing, is there a way to tell the [TestClass()] to execute one [TestMethod()] by one? (Instead of Visual Studio to start multiple thread). This would be required for only one or two of my testing classes. ...

Visual Studio Unit Testing Accessor, how to re-generate them without closing VS?

Sometime, when the Unit Test of a class has been done and method use _Accessor while the code has changed. What ever you compile many time it still doesn't "synchronize" the _Accessor file. The only thing that work is closing VS2008 and reopend it. Any trick to "regenerate" the Testing Accessor? ...

Attempted to read or write protected memory VB2008 Express & SQL CE

...

How to add custom 'project item nodes' to Visual Studio Flavoured Project

I have written a simple flavoured project for Visual Studio 2008, and I want to add a custom 'folder' item to the solution explorer, similar to the 'references' folder. This folder will contain more 'custom' nodes, which dont actually represent files, but in-memory objects. How do I hook into what is displayed in the solution explorer? I...

How do I deploy database with my project?

I have a Windows mobile project an have added a small sqlite database to it. I have set the "Copy to Output Directory" on the db file to "Copy Always". But how do I get the database to be deployed with the project? ...

Is there anyway to disable Visual Studio auto complete for object keyword

Short version- is there a way to turn off Visual Studio Intellisense for the object keyword. Long version- I'm using Visual Studio 2008 and I'm basically using anonymous types. I begin typing something like: Assert.AreEqual("/SomePath/Stuff", GetOutboundUrl( I type in new { Then I see that Visual Studio has recognised that the metho...

Enable drag and drop into Visual Studio 2008 from Windows Explorer

Is there some way to enable Visual Studio 2008 to accept dropped files from Windows explorer? I can't count the number of times I've instinctively dragged a file into VS just to be reminded of this obvious feature than seems to be missing. Surely there has to be some way to do this. EDIT I did find the VS Explorer addin while searc...

How to make a vs 2008 template out of the current project ?

Is there a way to turn the current project which I've setted up nicely (project settings, additional libraries, and so on) into a project template in vs 2008 ? How would one go about that ? ...

How to stop Visual Studio from auto formatting certain parts of code?

This seems like it should be really simple to do but I just can't figure it out. I want to allow Visual Studio to keep auto formatting my code as it is, except for this part: public SomeClass : BaseClass { public SomeClass() : base() { } } Why can't I have it look like this instead: public SomeClass : BaseClass ...

Validator not displaying after deployment

I have a asp.net website which having text boxes having required field validation. when i rebuild the application and runs it i could see the validations in the website. But after deploying the website(Publishing) in IIS, i could NOT see the validators in the website. Please help me! ...

How to add prebuilt library to a VC++ solution?

It's pretty easy to use a library in VC++ 2008 if you create a project for it and build it alongside the other projects in your solution, but what if the library has too complex of a build process and must be compiled separately via makefile? My library is like that, and while I've had no problem compiling it on the command line, I have...