visual-studio-2008

How do you make configuration-specific C# build events in VS2008

In vs2008, C# build events are configuration-specific. Looking for ideas on how to make my build event run only when doing a Release build. Ideas? ...

IE8 and VS2008: How do I disable script debugging?

IE8 is out and apparently it automatically turns on script (JavaScript) debugging whenever you launch your project in debugging mode. Does anyone know how to turn this ofF? I scoured the IE8/VS2008 settings but didn't see anything. Edit: You can't just go into Internet Options and disable debugging: http://blogs.msdn.com/webdevtools/arc...

How to use XML documentation files

When using an external assembly which comes with an XML documentation file, how do I get visual studio to find it? When having an XML documentation file, is there a program or xml transform file or something I can use to look at it in a nice way? Not necessarily as complex as the msdn documentation viewer thingy, but at least something ...

Disabling the VB background compiler in VS2008

Does anyone know how to disable the background compiler for VB in VS2008? For my sins I have to work on a large VB.NET project and it often locks up for 20 seconds at a time whilst doing the very helpful background compilation which is extremely frustrating. I'd rather work blind between compiles and be able to do some work. ...

What is the purpose of the Build Configuration Manager in VS2008?

I am struggling with the purpose of the build configuration manager in Visual Studio 2008. Specifically I am interested in knowing what it does when developing a console application and also a web application (web application project). Does setting it to Debug or Release mode make any difference when you are developing and runni...

TFS, VS2008: How to deal with external assemblies

We have various solutions with various numbers of projects in them. All checked in to a Team Foundation Server source control thing. Most of them builds as Class Libraries. Anyways, we now want to use some 3rd party external assemblies in our project. And I am wondering how to best do that. Cause we of course want to have those assembl...

ASP.NET MVC - Missing "Convert to Web Application" option

I created a new MVC project and added some webforms pages to it in an effort to start adding new pages to my app using MVC and eventually port the old pages over as well. Everything is building and working correctly but I did notice that I don't have the "Convert to Web Application" option when right clicking an aspx file. And I think i...

Project Dependencies in Visual Studio

I have a three projects in the solution WinSync. I have WinSyncGui, WinSyncLib and Setup. WinSyncGui requires files from WinSyncLib. How can I get it to include WinSyncLib in WinSyncGui? VS complains The type or namespace name 'WinSyncLib' could not be found (are you missing a using directive or an assembly reference?) I've set the dep...

Best Practices: Option Infer

What do you feel are best practices for the use of Option Infer in your projects? In Visual Studio 2008, Option Infer is a directive that allows the compiler to infer the datatype of a declared variable by looking at what is assigned to it. This is a key feature in VS2008 and is used extensively with LINQ statements and queries. Howev...

Best way to update in Linq To SQL

Hello All, I have several entity classes that I use for parsing fixed width text files as well as utilizing Linq to SQL. I use these classes to parse data from said text files, and compare to data in the database. One of these entities has a lot of properties, and I don't want to waste time setting each individual property on the Linq r...

Problem Extending Python(Linking Error )?

I have installed Python 3k(C:\Python30) and Visual Studio Professional Edition 2008. I'm studying this. Here is a problem: C:\hello>dir Volume in drive C has no label. Volume Serial Number is 309E-14FB Directory of C:\hello 03/21/2009 01:15 AM <DIR> . 03/21/2009 01:15 AM <DIR> .. 03/21/2009 01:14 AM ...

COM method call returns Catastrophic Failure

Note: Pass BSTR variable to COM method, HRESULT return is 8000FFFF Previous calls with interface pointer, was successful: HRESULT is 0 Execution, inside Visual Studio succeeds, outside fails - release and debug Illustration: const char *simFile; simFile = new char; //omitted _bstr_t simFileToOpen(simFile); BSTR raw_sim_Open = simFil...

WPF UserControl Designer Problem with Strech

I have a WPF UserControl (Foo.xaml) that should be displayed streched (VerticalAlignment="Stretch" HorizontalAlignment="Stretch") on a window. If I don't specify Width/Height on the UserControl it will be displayed as intended at runtime. Unfortunately the VS WPF designer will not show the control correctly if I open Foo.xaml (size may...

COM method call returns Catastrophic Failure when BSTR is passed

Revised from previous question Note: Pass BSTR variable to COM method, HRESULT return is 8000FFFF Previous calls with interface pointer, was successful: HRESULT is 0 Execution, inside Visual Studio succeeds, outside fails - release and debug Illustration: BSTR raw_sim_Open = SysAllocString (L"c:\\example.S8"); hresult = pis8->raw_...

windows 7 asp.net mvc RC

i have a problem with asp.net mvc on windows 7... asp.net mvc RC was previously installed and i installed MVC rtm... it says “the project type is not supported by this installation”... is there anyway to register this project type in to visual studio or unregister the rc version? ...

Switching from VS 2005 to VS 2008 but sticking with .Net 2.0, should I?

Hi all, I'm currently using VS 2005 as most of the programs I maintain are written for .Net 2.0, I have one new program that requires .Net 3.5, should I switch to VS 2008 and can I do so without any problems with my .Net 2.0 programs? What should I watch out for? PS I mainly work with Winform apps if that makes any difference. Thanks ...

How to publish an application in Visual Studio?

I'm working on a small console application in Visual Studio C++ 2008 and would like to make an installer that I can distribute to a few friends to test the application. I recall a publish option being under the build menu, but it is not there now. Could I somehow have turned this feature off? Is there a simple way to publish such that...

ASP.NET Development server inaccessible

I've been working on a home project using VS2008. It involves WCF and Silverlight. Until recently, ASP.NET development server worked just fine and was accessible from the browsers (I use both FF and IE). Now, it seems the browsers are no longer able to access the asp.net dev server. Initially, I believed it to be certain installations I ...

Visual Studio 2008 - show heap

Hi Is it possible to view the heap and stack during debugging? ...

How do I get a code window to split vertically in Visual Studio 2008? (not HTML mode)

In Visual Studio 2008, it seems that Window -> Split only gives me a horizontal split, and Window -> New horizontal tab group does not allow me to edit the same file in both panes. Note that I am talking about C# code windows, not HTML editing mode. I want to edit the same file in two horizontally arranged panes. Is this possible? Fre...