Skip to main content

Microsoft Silverlight

BUG: VS 2008 IDE + Silverlight 2 Beta 1 addon; Generation of incorrect class file code in VB projectRSS Feed

(0)

ghostinak
ghostinak

Member

Member

2 points

2 Posts

BUG: VS 2008 IDE + Silverlight 2 Beta 1 addon; Generation of incorrect class file code in VB project

VS 2008 Pro + SL 2 beta 1 addon

Create new VB Silverlight project

Right-click project node in solution explorer; choose New > Class

Name the class whatever you like (I chose TestData)

Following (obviously incorrect) code was generated:

Public TestData [TestData]

#Region " .ctor "

Public Sub New()

End Sub

#End Region

#Region " Heavy Lifting "

#End Region

#Region " Properties "

#End Region

End TestData

swildermuth
swildermuth

Star

Star

8320 points

1,546 Posts

Re: BUG: VS 2008 IDE + Silverlight 2 Beta 1 addon; Generation of incorrect class file code in VB project

This doesn't happen for me.  Are you sure you don't have custom templates deployed?

(If this has answered your question, "Mark as Answer")

Shawn Wildermuth
C# MVP, MCSD, Speaker and Author

Silverlight 3 Workshop
Miami, FL: Oct 12-14th
Portlant, OR: Dec 2-4th
Atlanta, GA: Dec 7-9th
http://silverlight-tour.com

ghostinak
ghostinak

Member

Member

2 points

2 Posts

Re: Re: BUG: VS 2008 IDE + Silverlight 2 Beta 1 addon; Generation of incorrect class file code in VB project

Well I do have a custom template installed.. I modified the existing VB class template to add 3 regions.  Works perfectly for ASP.NET, VB WinForms, and VB Console apps.

  • Unanswered Question
  • Answered Question
  • Announcement
Microsoft Communities