visual-studio-2008

Unit test sequence when running all tests in solution

In a complex VS2008 solution I have three unit test projects. As they operate on the same test database it is important that the test projects are executed one after the other. It is not important which project first, just that one is finished before the other starts. If I want to execute them all, there are several ways to do that, wh...

In Visual Studio I keep getting two copies of FormMain.cs and one contains old edits, why?

Hi All, In Visual Studio 2008 I keep getting two copies of my FormMain.cs file, one contains old edits, I've rebuilt the project and the solution but this doesn't fix it, what is the problem? Thanks ...

Simultaneous connections, excel

Hi everyone, I have a list of session start and stop times, in format like so: 23/11/09 15:18:32, 23/11/09 15:18:40 23/11/09 15:20:02, 23/11/09 15:20:32 23/11/09 15:20:10, 23/11/09 15:20:40 This is in excel at the moment, start datetime in one column end datetime in the other. Basically what I want to do is some post processing on t...

Is there a way in VS2008 to search through a watch or a quickwatch for a particular value?

Hi Guys Suppose I am watching something in VS2008 and I want to search the object I'm watching for an instance of a particular value. For example, say I'm watching this and I want to search for a control called mycontrol inside it or I want to search for a string that currently has the value of "Hello World". I know it's kind of a bru...

Visual studio 2008 - Referenced project dll

I got a project named MyProject.Views and in this project I reference another project named MyProject.Models. The MyProject.Models have a reference to Mysql.Data.dll. In the references option, the copy local is set to true. My problem is I have to manually add a reference to MySql.Data.dll in the project MyProject.Views. Which I think ...

Where's the draggable fixcomponent in Visual Studio 2008?

If you have errors in VS2008, is there a FixComponent you can drag on the stage that solves the problems? ...

Visual Studio merging DLL into console application

OK I'm getting desperate here so please I really need some help if anyone could be so kind. It must be a really simple thing but I am absolutely confused still how to fix this problem. I have very simple program to simplify things as shown below... #include <openssl/evp.h> int main (int argc, char *argv[]) { EVP_CIPHER_CTX ctx; ...

ASP.NET MVC debugging following VS2010 uninstall

OK this is an odd one. I wanted to install ASP.NET MVC 2 Beta 2, so I uninstalled VS2010 Beta 2 (which I wasn't using anyway) and installed MVC 2. I then upgraded one of my projects to MVC 2 but noticed that if I try to set a breakpoint on any of my view models (classes in the Models folder) I get an error message about debug symbols. ...

Debug tt templates in VS2008

Is there a way to debug tt files? I have installed SubSonic3 and all the templates do their job except the StoredProcedures.tt. It remains empty after 'Run Custom Tool'. ...

Clearcase Remote Client in Visual Studio 2008 on a 64-bit client?

I've been trying to get the CCRC 7.0.1 client working inside Visual Studio 2008 SP1 on a Windows Server 2008 R2 x64 client. Right now, it works inside VS2005 on the same client. I've been following the instructions on this support page from IBM, but haven't had any luck. Has anyone gotten VS2008 working with the CCRC 7.0.1 on a 64-bit...

What is the .NET equivalent of java's System.getProperty("user.dir") ?

I am trying to get the full path of a file in my unit test which is in a folder in my project. i tried using Directory.GetCurrentDirectory(); but that returns the directory which my tests are running in. I want the directory of the project (or solution) without having to hard-code it in there. Then I can append the last part of the f...

How do I disable warnings from Aspx files (HTML,CSS)

All my aspx files give all kinds of annoying warnings like "The CSS Value is not defined" because I'm referencing CSS files from other projects relative to where they will be published in IIS. And other things I ignore like "Zoom is not a valid css property" even though I need it to fix crappy IE 6 rendering bugs. I tried adding Warnin...

Change right-click context menu options in VS2008

When I right-click in my class library, I get some quick options to create things, like an Item from the popup list (New Item...), a User Control, etc. E.g. Now in my web app project, I'd like to be able to get the User Control listed in the right-click menu just like Component and Class, so I don't have to click New Item... then choo...

Highlight text from Visual Studio 2008 add-in

Hi, guys! I'm writing another code coverage tool for .NET with Visual Studio 2008 integration. Everything goes well except one thing: I can't find a way to highlight some code chunks. I need it to inform user about covered and not covered blocks. You can see example of the feature I want on the next screenshot (from native VS code cove...

Corrupt files when debugging into .NET framework

When debugging into the .NET framework using Visual Studio 2008 Professional, the source files appear corrupted somehow, and the yellow debug line doens't hit the correct lines in the source. For example, a source file might start like this: // Copyright (c) Microsoft Corporation. All rights reserved. namespace System.Web.Mvc { ...

Have a Form opened multiple times with different Localizations in Visual Studio

Hello, I'm developing a localizable product and Forms have the Localizable property set to True but it is difficult to me to work at the different versions of the Forms if I have to switch from on Language to another one. Is there a way to have the form opened twice (or more) with different localizations? (as they are really different f...

How do I avoid popping up an error dialog when my MSVS C++ app crashes

When my Visual Studio 2008 C++ command-line application crashes, it sometimes produces this dialog. CommandProcessor.exe has encountered a problem and needs to close. We are sorry for the inconvenience. If you were in the middle of something, the information you were working on might be lost. For more informaiton about this error, clic...

Importing Excel data to a already established SQL DB visual basic

I have developed a program in which all data is entered into a SQL DB. the program has been designed in Visual Studio using Visual Basic. I am now getting external data supplied in an excel format and need to know how to import the excel data into the SQL DB and ensure the data goes into the appropriate columns. I have set a template up ...

Variable inspection in Visual Studio 2008 in asp.net IronPython inside a class

I need to inspect the value of a variable inside a class in asp.net IronPython in Visual Studio 2008. Visual Studio 2008 inspector doesnt work for IronPython (if the inspector works in VS 2008 for asp.net IronPython and it isnt working for me plz tell me) and you can't use Response.write - Response.end inside a class. What can I do to kn...

Visual Studio is not recognizing new classes

Hi, I'm using visual studio 2008 SP1, I'm working with a web project in VB.NET. the problem when I add new class file (of-course in App_Code) it doesn't recognize it. all the old class files are working fine, but the new ones aren't. I restarted my computer and still the same problem. Any Ideas ...