visual-studio-2008

Why are user created namespaces not being recognized by Visual Studio 2008?

For some reason when I create a new namespace in Visual Studio 2008 its not being recognized. I'm using asp.net mvc, I don't know if that has anything to do with it. Has anyone come across this before?...and how do you fix it? Also is there a way to force Visual Studio to maybe re-examine new namespaces? Answer: I figured out the prob...

Automatically adding specified text at beginning of files in VS 2008

Is there a way to have Visual Studio 2008 automatically add heading information to files? For example, "Copyright 2008" or something along those lines. I've been digging through the options, but nothing seems to be jumping out at me. ...

Can you recommend a .cvsignore file for a Visual C#.NET solution?

Hi all, I've developed a Visual C#.NET 2008 Express Edition solution containing three projects. I am cleaning it up to commit it into a CVS repository. There are several files that are created during the build process that are not necessary to be placed in the repository since they will be regenerated automatically. The question: Can ...

Can you create collapsible #Region like scopes in C++ within VS 2008?

I miss it so much (used it a lot in C#). can you do it in C++? ...

Strange MFC / VC++ Linker Error (std::list<CRect> already defined)

I've got a really odd error message that only occurs when I add the following line to my project: std::list<CRect> myVar; It's worth noting that it doesn't have to be a std::list, it can be std::vector or any other STL container I assume. Here is the error message: Error 1 error LNK2005: "public: __thiscall std::list ...

Run macro in visual studio when solution is closed

Is it possible to run a macro in Visual Studio 2008 the moment a solution is closed? I would like to delete the .suo-files of that solution, so that the current user settings are not presented to me the next time I open the solution. ...

How to find unused attributes/methods in Visual C++ 2008

Is there a way to identify unused attributes/methods in Visual C++ 2008 Professional? If it's not possible by default, recommendations of 3rd-party tools are also much appreciated. Thanks, Florian Edit: nDepend only works for .NET assemblies. I'm looking for something that can be used with native C++ applications. ...

Visual Studio Keyboard Shortcut to automatically add the needed Using statement

What is the keyboard shortcut to expand the little red line that gives you the menu where you can choose to have the necessary Using statement added to the top of the file? My Googling skills have not proved fruitful. ...

Request.UrlReferrer null!?

In an aspx C#.NET page (I am running framework v3.5), I need to know where the user came from since they cannot view pages without logging in. If I have page 'A' (the page the user wants to view) redirect to page 'B' (the login page), the Request.UrlReferrer object is null. Background: If a user isn't logged in, I redirect to the Log...

Is there a way to update VS' CSS validation to 3.0?

I'm getting warnings about CSS3.0 properties like text-overflow. Is there a way to validate against 3.0? ...

Getting the GUID of a VS 2008 tool window

Does anybody have a short code sample that can be run in the VS macro editor on how to enumerate the tool windows in VS 2008 and show the GUID for each one? Or do you know another way to find this out? ...

What do you like about Visual Studio 08?

It seems that many of the developers on SO are really satisfied with Visual Studio 08. This make me curious, what features separate VS08 from the other IDEs that you have used? Are there features within VS that can't be found elsewhere? Is it ease-of-use? Speed of development? Anything else? ...

What is Native Code?

The Project's Web section (under project properties in VS2008) has a list of debuggers: ASP.NET, Native Code, SQL Server. What is Native Code? ...

No Symbols loaded when remote debugging

Hi there, I hope someone can help me with my problem. I want to use remote debugging. The Program, that I want to debug runs on machine b. Visual Studio runs on machine a. On machine b I have a folder with the following files msvcr72.dll msvsmon.exe NatDbgDE.dll NatDbgDEUI.dll NatDbgEE.dll NatDbgEEUI.dll If you think, there are file...

What causes Visual Studio 2008 SP1 to crash when switch to Design View of a WPF application

After developing a WPF application without Source Control, I decided to add the solution to TFS. After doing so whenever I opened the main window.xaml file in Design View Visual Studio would disappear and the following event would be logged in the Application Event log: .NET Runtime version 2.0.50727.3053 - Fatal Execution Engine Er...

Visual Studio 2008: is there any way to turn on the Class Name/Method Name drop downs in C#? (like VB.Net has)

I'm working in .Net 3.5sp1 in C# for an ASP.Net solution and I'm wondering if there's any way to turn on the Class Name and Method Name drop-downs in the text editor that VB.Net has at the top. It's one of the few things from VB that I actually miss. Edit: Also, is there any way to get the drop downs to be populated with the possible ev...

Compile error in VS.NET 2008 (VB.NET) that I can't get rid of!!

I can't shake this error when compiling my Visual Studio.NET 2008 solution. The project that's generating the error is a VB.NET Web Application in a 12 project solution (mixed types and languages). I've tried all the tricks I can find on google, and the obvious of removing the directoy and folder manually. I'm running Vista Business 3...

How to remove TFS source control bindings for a solution from the command line

Is there a command-line approach for having VS 2008 remove TFS source control bindings from a solution file and the constituent project files? I need something that I can run from a batch file so that I don't have to open the solution and click the 2 prompts to permanently remove the bindings. Edit: After deleting the *.vspscc and *.vs...

Crystal Reports data source in a different project in my solution?

I would like to create a Crystal Reports report using pre-existing LINQ classes that live in a different project than where the report lives. I can't find a way to do this. I'm using VS2008. Whenever I expand the "Project Data" tree, I see only classes in my current project. The "History" tree shows me the last 5 class in the OTHER p...

How can I tell if SP1 has been installed on VS2008?

How can I tell if SP1 has been installed on VS2008? e.g. If I'm working on a co-worker's machine - how can I tell if he/she has installed SP1 for VS2008? ...