visual-studio-2008

Disabled breakpoints disappear, no more red dot?

In previous versions of VS, if you right-clicked a breakpoint's red dot and selected Disable Breakpoint, the dot would become 'hollow', and clicking it again would re-enable it. But in VS2008, disabling the breakpoint removes the red dot entirely and you need to go to the Breakpoints window to re-enable. Anyone know how to get the previ...

Configuring Visual Studio 2008 to edit legacy JScript ASP files.

I'm working on a project that combines .NET with some legacy ASP code via COM interop. The legacy ASP is written in JScript - files look like this helloworld.asp example. <%@Language="JScript"%> <html> <head> <title>Jscript ASP Page</title> </head> <body> <h1>JScript ASP</h1> <p>This is JScript ASP at <%=new Date()%></p> <% va...

VSTestHost.exe has stopped working - can't run unit tests

The Microsoft unit testing framework has suddenly gone on strike. When I try to run tests in VS2008, I get a dialog with the message "VSTestHost.exe has stopped working". I have Visual Studio Team System 2008 (version 9.0.30729.1 SP) running on Vista with all updates applied. The "Problem reports and solutions" suggests that I "Upgra...

How do you save outline toggles between restarts of VS2008?

Does anyone know a trick in Visual Studio 2008 to make it remember the outline toggles you have in place on aspx files between restarts? (the little plus or minus symbol on the left for code blocks) In the code behind cs file it remembers the toggle on the #region tags... hoping for something like that I can do on the aspx HTML side. S...

Visual Studio 2008 Syntax Coloring Problem

In a VB.NET Web Site, the User Types syntax coloring doesn't work. What are potential causes of this? Note: C# works as expected. Update: It seems to not understand the difference between a "User Type" and an "Identifier." ...

Syntax coloring a file with a non-standard extension in Visual Studio 2008

I'm probably missing something very obvious here. I have files with the extension .st that contain (mostly) C++ code. I want the C++ in there to be highlighted when I open it with Visual Studio. I go to Tools->Options->Text Editor->File Extension. I type 'st' in the 'extension' box and select 'Microsoft Visual C++' as the editor (I also ...

How can I make Visual Studio wrap lines at 80 characters?

Is there any way to make Visual Studio word-wrap at 80 characters? I'm using VS2008. This post is loosely related. ...

How to add a SqlMetal build step in VS2008?

I've created a one-line batch file to run SqlMetal to regenerate a LINQ to SQL DataContext for my database; this works great. *Refresh_DataContext.bat*: "C:\Program Files\Microsoft SDKs\Windows\v6.0A\Bin\sqlmetal.exe" /server:.\sqlexpress /database:MyDatabaseName /code:"%~dp0\DataContext.vb" /context:DataContext /vie...

How to get BIDS for Visual Studio 2008 SP1?

I currently use Visual Studio 2008 SP1 and have been migrating older projects into VS2008 but existing SSIS and SSRS (2005) projects have not been compatible with VS2008. It has been a pain to maintain those BIDS projects as a separate solution. I have been considering upgrading to SQL2008 but because our dev, test and production platf...

Accessing members of the other half of a partial class

I'm just learning to work with partial classes in VB.NET and VS2008. Specifically, I'm trying to extend a LINQ to SQL class that was automatically created by SqlMetal. The automatically generated class looks like this: Partial Public Class DataContext Inherits System.Data.Linq.DataContext ... <Table(Name:="dbo.Concessions")> ...

.NET Microframework SDK with VS 2008

I am trying to get started developing using the .NET Micro Framework but appear to have hit a road block. I am using Visual Studio 2008 and it will not let me install the SDK because I do not have Visual Studio 2005. I downloaded the SDK from this link. I know this is not truly a programming question but it is definitely holding me bac...

Customizing the Places Bar in Visual Studio 2008

Has anybody succeeded in customizing the Places Bar for VS 2008? My customizations from VS 2005 did not transfer to 2008 (obviously), and no matter what I do with the registry, I cannot make my custom places appear on the Open dialogs. I have read and applied the relevant MS KB article, to no avail. This used to work fine with VS 2005, ...

Implementing a SQL Server 2008 User-defined function in managed code for geocoding

The goal: To create a .NET dll i can reference from inside SQL Server where i can pass in an address & get back a geocode string that i can stick into a geography data type as a POINT using STPointFromText() in t-SQL. I'm using Virtual Earth, I signed up for a developer account which gave me access to virtual earth staging servers. I'...

Visual Studio opens Development Servers for all websites in my project

I currently have a Visual Studio solution with 8 web applications. When I try run one of these applications, 8 instances of the Casini Web Development Servers are launched. Is there anyway to specify that only the web application I have set as startup project will be launched and not all 8. I am using Visual Studio 2008 Thanks ...

Can I force subclasses to override a method without making it abstract?

I have a class with some abstract methods, but I want to be able to edit a subclass of that class in the designer. However, the designer can't edit the subclass unless it can create an instance of the parent class. So my plan is to replace the abstract methods with stubs and mark them as virtual - but then if I make another subclass, I...

How to register a .NET CCW with regasm from a Visual Studio 2008 Setup project

I have a setup project for a .NET Service Application which uses a .NET component wich exposes a COM interface (COM callable wrapper / CCW). To get the component working on a target machine, it has to be registered with regasm.exe /tlb /codebase component.dll The /tlb switch to generate the typelib is mandatory in this case, other...

Can you configure VS2008 Code Analysis to use a British English Dictionary?

VS2008 Code Analysis will flag a spelling mistake in an identifier using the IdentifiersShouldBeSpelledCorrectly warning type. This process is using an American dictionary by default because words are being flagged that are correctly spelt using the British spelling. For example, words like "Organisation" and "Customisation", etc... I ...

Does Visual Studio 2008 support classic ASP development?

Hi Does visual studio 2008 support classic asp development? It's been years since I created a classic ASP website and I was wondering if I can use my current toolset or if I have to resign myself to notepad. Thanks Matt ...

Visual Studio Team System 2008 Test Edition books or online training?

Our testers are in the process of evaluating Visual Studio Team System 2008 Test Edition. As they are unfamiliar with the use of Visual Studio, I would like to give them as much help as I can. I have had a look on Amazon for books on the Test edition of VS.Net, but there is only one VS.Net 2005 test edition book. Does anyone know of an...

Developing for Sharepoint 2003 using Visual Studio 2008?

Does anyone have experience with developing for Sharepoint 2003 using Visual Studio 2008? I need to upgrade to VS2008 because of Vista issues but need to support Sharepoint 2003 webparts. The webparts are all pretty simple. Will I be able to support those webparts using VS2008? ...