在visual studio 2008中为Silverlight 3打破了XAML设计视图? [英] XAML design view broken in visual studio 2008 for silverlight 3?

查看:182
本文介绍了在visual studio 2008中为Silverlight 3打破了XAML设计视图?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我最近在我的VS 2008 SP1环境中安装了silverlight 3工具,现在当我打开xaml文件时,设计器无法加载说(如果我向上拖动面板):



< blockquote>加载已取消视觉设计器的加载已取消。继续加载设计器


如果单击简历加载链接,设计器将加载,但XAML和设计选项卡不会出现在拆分窗口连接处。我可以看到交换窗格按钮,但如果我点击它就不起作用。




VS显示此错误:

无法加载元数据程序集System.Windows.Controls.Data.Design,Version = 2.0.5.0,Culture = neutral,PublicKeyToken = 31bf3856ad364e35。异常消息:无法加载一个或多个请求的类型。检索LoaderExceptions属性以获取更多信息.Stack Trace:at System.Reflection.Module._GetTypesInternal(StackCrawlMark&stackMark)
at System.Reflection.Assembly.GetTypes()
at MS.Internal.Package.MetadataLoader .RegisterDesignTimeMetadata(程序集程序集,LogCallback记录程序)无法加载元数据程序集System.Windows.Controls.Data.Input.Design,Version = 2.0.5.0,Culture = neutral,PublicKeyToken = 31bf3856ad364e35。异常消息:无法加载一个或多个请求的类型。检索LoaderExceptions属性以获取更多信息.Stack Trace:at System.Reflection.Module._GetTypesInternal(StackCrawlMark&stackMark)
at System.Reflection.Assembly.GetTypes()
at MS.Internal.Package.MetadataLoader .RegisterDesignTimeMetadata(程序集程序集,LogCallback记录程序)在类型System.Windows.Controls.Data.Input.VisualStudio.Design.MetadataRegistration上调用IRegisterMetadata时捕获了ArgumentNullException类型的异常。异常消息:值不能为null。
参数名称:type。堆栈跟踪:在Microsoft.Windows.Design.Metadata.AttributeTableBuilder.AddCallback(类型类型,AttributeCallback回调)
在System.Windows.Controls.Data.Input.VisualStudio.Design.MetadataRegistration.AddAttributes(AttributeTableBuilder builder)
at System.Windows.Controls.Design.Common.MetadataRegistrationBase.BuildAttributeTable()
at System.Windows.Controls.Data.Input.VisualStudio.Design.MetadataRegistration.Register()
at MS.Internal .Package.MetadataLoader.RegisterDesignTimeMetadata(汇编汇编,LogCallback记录器)



有没有人遇到这个?


是否有解决方法?我已经尝试从我的机​​器上删除所有与silverlight相关的程序并重新安装,但结果是一样的吗?






以下是一些vs已安装的组件/版本,如果有帮助:



  • Microsoft Visual Studio 2008
    版本9.0.30729.4108 QFE
    Microsoft .NET Framework
    版本3.5 SP1


  • 已安装的版本:Enterprise


  • Microsoft Silverlight Projects 2008 91899-270-9195657-60457
    Microsoft Silverlight Projects 2008
    版本9.0.30730.126

  • ...
  • Microsoft Visual Studio Team System 2008数据库版GDR 91899-270-9195657-60457
    Microsoft Visual Studio Team System 2008数据库版GDR版本9.1.31124.01


解决方案

这已被设计删除。引用 Tim Heuer


我的设计视图去了哪里?!你可以
立刻注意到VS工具没有
更长的时间在Silverlight项目中有
XAML的预览模式。这是
的设计。我们听到了一些非常有声的
反馈,预测通常是
因大多数开发
而被关闭,因为它不会变成
,因为应用程序获得了更多
复杂。该团队决定投入
资源投资,以
VS2010创建
极佳的可编辑设计界面,而不是延迟Silverlight 3的
发布。


如果你想要一个更可视化的设计师,Blend仍然有效,我相信VS2010的beta版本内置了设计视图。


I recently installed silverlight 3 tools to my VS 2008 SP1 environment, now when I open xaml files the designer fails to load saying (if I drag the panel up):

Load Cancelled Loading of the visual designer was cancelled. Resume loading the designer

If I click on the resume loading link the designer will load, however the XAML and Design tabs do not appear at the split window junction. I can see the swap panes button, but it does not function if I click it.

VS shows this error:

Failed to load metadata assembly System.Windows.Controls.Data.Design, Version=2.0.5.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35. Exception message: Unable to load one or more of the requested types. Retrieve the LoaderExceptions property for more information.. Stack Trace: at System.Reflection.Module._GetTypesInternal(StackCrawlMark& stackMark) at System.Reflection.Assembly.GetTypes() at MS.Internal.Package.MetadataLoader.RegisterDesignTimeMetadata(Assembly assembly, LogCallback logger)Failed to load metadata assembly System.Windows.Controls.Data.Input.Design, Version=2.0.5.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35. Exception message: Unable to load one or more of the requested types. Retrieve the LoaderExceptions property for more information.. Stack Trace: at System.Reflection.Module._GetTypesInternal(StackCrawlMark& stackMark) at System.Reflection.Assembly.GetTypes() at MS.Internal.Package.MetadataLoader.RegisterDesignTimeMetadata(Assembly assembly, LogCallback logger)An exception of type ArgumentNullException was caught when calling IRegisterMetadata on type System.Windows.Controls.Data.Input.VisualStudio.Design.MetadataRegistration. Exception Message: Value cannot be null. Parameter name: type. Stack Trace: at Microsoft.Windows.Design.Metadata.AttributeTableBuilder.AddCallback(Type type, AttributeCallback callback) at System.Windows.Controls.Data.Input.VisualStudio.Design.MetadataRegistration.AddAttributes(AttributeTableBuilder builder) at System.Windows.Controls.Design.Common.MetadataRegistrationBase.BuildAttributeTable() at System.Windows.Controls.Data.Input.VisualStudio.Design.MetadataRegistration.Register() at MS.Internal.Package.MetadataLoader.RegisterDesignTimeMetadata(Assembly assembly, LogCallback logger)


Has anyone experienced this?

Is there a work around or fix? I have tried removing all silverlight related programs from my machine and re-installed, but the result has been the same?


Here's some vs installed components/versions if that helps:

  • Microsoft Visual Studio 2008 Version 9.0.30729.4108 QFE Microsoft .NET Framework Version 3.5 SP1
  • Installed Edition: Enterprise
  • Microsoft Silverlight Projects 2008 91899-270-9195657-60457 Microsoft Silverlight Projects 2008 Version 9.0.30730.126
  • ...
  • Microsoft Visual Studio Team System 2008 Database Edition GDR 91899-270-9195657-60457 Microsoft Visual Studio Team System 2008 Database Edition GDR Version 9.1.31124.01

解决方案

This has been removed by design. To quote Tim Heuer:

Where did my design view go?! You may notice right away that the VS tools no longer have the preview mode for your XAML in Silverlight projects. This is by design. We heard some pretty vocal feedback that the preview was usually turned off for most development because it was not turning out to be helpful as the applications got more complex. The team decided put the resource investment into creating a great editable design surface in VS2010 instead and not delay the release of Silverlight 3.

Blend still works if you want a more visual designer, and I believe that the beta build of VS2010 has the design view built into it.

这篇关于在visual studio 2008中为Silverlight 3打破了XAML设计视图?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆