visual-studio-2008

Compiling all code parts in Visual Studio

Hi there, I am currently working on a platform indepedent project and we have frenquently come across the following problem: When the Windows guys work on code that is not called by any other part of the code base it will not be compiled and will therefore not trigger compile errors. Once this code is uploaded to a svn server and Linux ...

Visual studio interpret breakpoints in JavaScript files.

What I am trying to do is insert debugger statements in place of breakpoints (Those little red dots on the left of a file) in a JS file that that is part of a VS Solution. Then when a build is run the debug symbols are converted to the javascript 'debugger' which will cause the execution to break. Let me know if more info is required. ...

Add VS 2008 menu item

When I open a WPF project and right click in the solution explorer there is a sub menu item where you can add WPF specific items (Add UserControl, Window, Page, ResourceDictionary, etc.) How can I add a template that I created to that menu? Is it possible or simply a waste of time. I can simply click "New Item" and then find it. Just w...

File format or parsing guidence for Visual Studio SUO files.

Where can I find a file format spec, or guidence for parsing, .suo files? I'd like to extract breakpoint information from them. The MSDN topic Solution User Options (.Suo) File briefly describes how storage streams are read from and written to this structure storage file, but this information is very scant, especially for someone of ...

Need help creating a file reference in a Visual Studio 2008 project

If I remember correctly, in past versions of Visual Studio (6, 2003, 2005), if you add an existing file to a project / solution, the file will be left where it is, rather than copied into the current solution. Regardless, this is what I need in VS2008. For example, I have two projects that, for 3rd party DLL reasons, need to link to di...

Warning - Targets a different processor than the application

My .NET 3.5 WPF application has started showing a bunch (14) of the the following warning (with different dlls): Referenced assembly 'C:\WINDOWS\assembly\GAC_32\Microsoft.TeamFoundation \9.0.0.0__b03f5f7f11d50a3a\Microsoft.TeamFoundation.dll' targets a different processor than the application. I am running on a 32 bit machine. The ...

VS 2008 Bootstrapper. Download Some Prerequisites and Package Some Prerequisites?

I have an install that uses the bootstrapper that requires a few different packages. One is the .Net 3.5 installer, and the others are important but not as large. I'd like the .Net 3.5 installer to be downloaded when needed, but I want the other packages to be included. Is there a way to do this? I want some to download from the vend...

Why can't I reference my class library?

I have a solution that contains a website and a class library in Visual Studio 2008. I then have another web site project outside of the solution that needs to reference the class library. I right click the Bin folder or Project and select Add Reference, then select my Class Library Project, it adds the 15 or so DLLs that the class lib...

Possible to make Visual Studio only show a list of files which didn't compile?

A low-level code change I've made means lots of files no longer compile. It's easy to fix each such file, but each generates a whole stack of compile errors which makes it a bit hard to see which files are affected. Can I easily generate from within VC++ 2008 a list only of the names of each file which failed to compile, without the err...

Is there a Keyboard Shortcut to HIDE properties pane?

Is there a Keyboard Shortcut to HIDE properties pane? ...

LINQ to SQL: Create a dettached entity object

I have generated few classes using to LINQ to SQL one of them being "Customer" Now I want to create a Customer object that is disconnected. i.e. I can create the object keep it in session and then attach it back only if I want to. Not automatically. Hence only if I attach it - it should affect my context's SubmitChange() otherwise no...

Visual Studio not colour coding .cs text correctly

Hi Everyone, this may be a little difficult to explain, but I'll try. I'm creating a DotNetNuke module in C#. The text in the .cs files are not colour coded for some reason. Comments are black, key words are black, all text is black. As if Visual Studio is just reading the file as plain text. Now when I create a VB module, everythin...

Trouble deploying ASP.NET MVC project to a hosting provider. 404 errors

I published my VS2008 ASP.NET MVC 1.0 project to a local folder, then FTPed it to a virtual directory on my host (GoDaddy). I attempted to run and it complained that System.Web.Mvc.dll is missing, so I copied that. After that I get a 404. Now I know that it gets to my HomeController.Index method, because it does a RedirectToAction. T...

Why is my Debug.Write broken?

Can somebody explain why my Debug.Write stops working for no apparent reason - no output is visible? This has happened to me many times in Visual Studio 2008 (never on 2005), on both Windows XP, Windows 2003 Server and Windows 7. It is per project and at the same time (on Windows 2003 server), I have projects where Debug.Write works an...

Show Previous Statement while debugging with Visual Studio 2008

Is it possible to the show the previous statement in the method that I'm debugging with Visual Studio 2008? What I'm currently doing is dragging the yellow arrowhead to the previous statement location or scrolling there and then pressing Ctrl+Shift+F10 But with some large methods the current statement might be quite a few lines upwards...

VS2008 XAML code formatter

In my team, the code style in .xaml files are currently not very consistent. We looked over the Visual Studio auto formatter to make it format the code into something we like. However, for one option we lack an extra condition. The options Im talking about are found under Tools -> Options -> Text Editor -> XAML -> Formatting. We want ea...

Progress of Build in Visual Studio

I was thinking about writing a plugin for Visual Studio and I want to know whether it is possible to know the time left (May not be prefect but atleast approximate) for the build process to complete? ...

How can I copy the embedded resource into output directory as well ?

I have a rules file for workflow within my solution and its properties are Build Action = Embedded Resource, Copy to Output Directory = Copy always I can't change the build action to Content, otherwise the workflow compilation won't work. However, I need the file to be deployed to the output folder and it seems not to work. I...

How do I configure VS2008 to stop compiling when it hits X errors?

Maybe I'm remembering Borland's compiler? But I seem to recall having the ability to set "stop compiling if X errors are encountered" - or some such. VS2008 already stops on 100 errors. But I'm already fixing the first couple, and hitting save, which causes the compiler to warn me about saving while compiling - which its being retar...

Unit Tests Execute Really Slowly in Visual Studio 2008

I downloaded the MVC Storefront source code from Codeplex (http://mvcsamples.codeplex.com/) (the "Recommended Download", not from the most recent source code). If I click the "Run all tests in solution" button in VS 2008, the tests start to run, but they take about 3 seconds EACH, and there are 194 tests which would take about 10 minut...