visual-studio-2008

How do I get VS2008 to paste code without reformatting it (changing whitespace)?

I did some code alignment in the way I preferred, using vim--then tried to paste it into VS2008. Voila, 2008 decides to reformat it, removing all the whitespace I added to make some declarations beautifully aligned. Is there a way to have VS2008 either (A) paste without changing whitespace or (B) align the code as shown below? public ...

Team Build vs MSBuild?

can some one explain the difference between Team Build + MSBuild ? also how do they differ in relation to VS2008 and VS2010? ...

With Visual C++ Express 2008, the LIB environment variable is being ignored.

We are using LDRA to unit test our source code. In our case LDRA is using cl.exe and link.exe from VC++ express 2008, on several machines setting the LIB environment variable allows link.exe to find the libraries we specify, some machines ignore the LIB environment variable. Does anyone know what would cause the LIB environment variable ...

vs2008 can I get value of line number @ *?

Scenario: I've recently learned about Mark Russinovich's useful DebugView* utility. With DebugView, even with vs2008 closed, I can use statements like this: System.Diagnostics.Debug.WriteLine("some text =. " + some_variable); I would like to modify the above, at compile time, to include the source code line number: System.Di...

SSIS "Save Copy of ..." missing in my Visual Studio 2008

When trying to save my SSIS packages from my vs 2008 to my sql 2008 server. I've lost the option to "Save Copy of Package.dtsx". I have to do some crazy work around that I can't remember ever! Please help me. ...

"Model already has an element" errors (TSD04105) when using Visual Studio 2008 Database Project GDR2

I am using Visual Studio 2008 Database Project GDR2 to manage multiple databases and I am getting a number of errors related to synonyms. Project-A has a reference to Project-B because Project-A has a number of synonyms to tables in Project-B. The full error I'm getting is "TSD04105: The model already has an element that has the same...

How can I change the entry point or perform a custom action first in a Windows Setup project?

I have a bit of a noob question about Windows Setup projects here. I've searched vigorously, but haven't yet found any answer. Basically, I'm building a Windows Setup project in Visual Studio 2008. As part of the project, I have custom actions for Install, BeforeInstall, etc. For this, I use a C# class library that contains a class that...

AJAX Control Toolkit TabPanel on an ASP.NET MVC View gives an HttpException "OutputStream is not available when a custom TextWriter is used."

I have installed the AJAX Control Toolkit following the included instructions and I'm trying to add a TabContainer with a couple of TabPanels to a view in an ASP.NET MVC application. Is this possible? I can get the TabContainer and TabPanel controls to work in a Webforms application but not in MVC. In one of my views I have the followi...

How to build a query by passing the columname and columnvalue as parameter using LINQ

Hi All, We tried using the below code snippet but showing the syntax error. var query = (from def in entity.Defect.Where("Owner == @0", "rochs") select def).ToList(); Thanks in Advance ...

How do I change the language (specifically from french to english) in Visual Studio 2008's compiler output.

At first I had the french version of VS, then I installed the English version on top of it; so now I have the menus in English, but the compiler still outputs in French. Changing the language in 'Tools > Options > Environment > International Settings' doesn't help. ...

How to make a comment summary in VS2008

Hi guys, just a small query. I am working in VS 2008 and often i need to write a note in code like a reminder type. This note is in comment but is of multiple lines. i know VS used to provide summary option but now i am unable to find it . a+b; // this is my note // note continuing on next line // but dont want to writ...

short cut to view function list in VS2008 which is right under Document tabs

is there a short cut key to view function list in VS2008 which is right under Document tabs ...

Compiling x64 dll from x86 using Visual Studio 2008

Hello gurus, I am compiling some external C++ code into a dll using Visual Studio 2008. The code is wrapped in extern "C". Since I am cross compiling, creating a 64 bit dll on my 32 bit machine; I am using x64 as "Active solution platform" in the "Configuration Manager". My dll compiles and links successfully. However when I open it ...

Visual Studio problem with deploying all files of .NET Compact Framework application

My application consist of an executable project and a dll library. My executable project has added the reference to the library project. The library project contains some "content" files like .ini .bmp. The problem is that these files are not copied to the device when I deploy the executable project. Only dll file is copied. The curiou...

Can not generate a class diagram from a project referencing a web service in Visual Studio 2008

Hi, I have a question concerning the class generation in Visual Studio 2008. I use a web service which is added using Add Web Reference. It works great and all the classes seem to have been generated successfully. When I try to generate a class diagram using View Class Diagram for the project which uses the web service, I get: Some...

Associations in Visual Studio 2008 class diagrams

Hi, When I generate class diagram in Visual Studio 2008 using View Class Diagram I always get a bunch of class boxes without methods. The only lines in the diagram are inheritance. Is it possible, and if so how do I get associations (aggregation and composition might not be possible, but at least an association line indicating they are...

Using "Throw" in a catchblock (and nothing else!)

Possible Duplicate: difference between throw and throw new Exception() I'm a programmer working on adding new functionality to legacy code. While debugging, I parsed over this Catch block, which got an angry "object not set to reference of object" notice from Visual Studio: catch(Exception ex) { Sp...

Autogenerated files and VC++ 2008 projects

Hello, all. I was wondering if there's a way to add Autogenerated files to a VC++ 2008 build. It seems like it's a fairly trivial thing to do if you write your own makefile, but I'd prefer to let visual studio construct a makefile from the project (like it does normally), but also tell it to say "include all .cpp's and .h's that are in ...

Deploying a Solution with Visual Studio 2008

My current solution has a Windows form Application as well as a Service Host. My question is the current process for building and deploying both. The Service Host will be hosted on the machine on which it is built. The Windows Form Application should be deployed to a windows share location. If I right click the Windows Form applicati...

Visual Studio Version Selector Doesn't open

Hi, I have Visual Studio 2008 and 2010 installed side by side, but trying to open either a 2008 or 2010 sln file results in nothing. The hour glass comes on for about a second and then it goes away and nothing is opened. I read somewhere to relate sln file to VS directly, but I can't go that route because I don't want 2008 solutions to ...