开发者

Is this a bug or something I am doing wrong?

开发者 https://www.devze.com 2022-12-08 04:08 出处:网络
I cannot imagine how this is anything other than a bug, but since I do not currently have a login for the MS Connect website I will ask here first.

I cannot imagine how this is anything other than a bug, but since I do not currently have a login for the MS Connect website I will ask here first.

I have Visual Studio 2008 SP 1 with all post SP1 hotfixes I could find relating to the crash installed. Can you reproduce the following crash?

  • Create a new "WPF Application" project using VB as the language (though I suspect it will happen in C# as well).

  • Enter the following code in the Window1.xaml.vb file.

Friend MustInherit Class A

End Class

Friend MustInherit Class A(Of T)
    Inherits A

End Class
<Window x:Class="Window1"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:local="clr-namespace:WpfApplication1"
    Title="Window1" Height="300" Width="300">
    <Grid>
    </Grid>
</Window>
  • Now attempt to edit the xaml file by opening a new xml tag via the < character.

  • CRASH!

Edit: Microsoft has confirmed this bug. The issue still exists in VS2010 beta 2, but will be fixed in the next release.


I was able to reproduce this by following your instructions, so I'd say a bug exists.

More information on my setup:

  • Windows 7 Ultimate
  • Visual Studio Team System 2008 (Version 9.0.30729.1 SP)

I wasn't able to reproduce this using C#, only VB.NET.

0

精彩评论

暂无评论...
验证码 换一张
取 消