在DEV210的课程中使用的例子使用的都是基于刚刚发布的WinFx之September CTP。以下为在您的机器上安装这一版本的步骤。
- 假定您已经安装了Visual Studio 2005 Beta;
- 下载并安装Microsoft? Pre-Release Software WinFX Runtime Components - September CTP;
- 下载并安装Microsoft WinFX? Software Development Kit for the WinFX Runtime Components September 2005 CTP(其中包含了最新的XamlPad,是学习Xaml的有力工具。相关Blog)
- 下载并安装Microsoft Visual Studio Extensions for WinFX September CTP
至此您可以使用VS2005进行WPF的开发。
打印 | 张贴于 2005-09-16 01:06:00 | Tag:Tech•Ed WPF/SilverLight
留言反馈
E:\Program Files\Microsoft SDKs\Windows\v6.0\Bin>mdbg xamlpad.exe
MDbg (Managed debugger) v2.0.50727.312 (rtmLHS.050727-3100) started.
Copyright (C) Microsoft Corporation. All rights reserved.
For information about commands type "help";
to exit program type "quit".
run xamlpad.exe
STOP: Unhandled Exception thrown
Exception=System.IO.FileNotFoundException
_fileName="PresentationFramework, Version=3.0.0.0, Culture=neutral, Publ
icKeyToken=31bf3856ad364e35"
_fusionLog="=== 预绑定状态信息 ===
日志: 用户 = CSST\zmsx
日志: DisplayName = PresentationFramework, Version=3.0.0.0, Culture=neutral, Pub
licKeyToken=31bf3856ad364e35
(Fully-specified)
日志: Appbase = file:///E:/Program Files/Microsoft SDKs/Windows/v6.0/Bin/
日志: 初始 PrivatePath = NULL
调用程序集: XamlPad, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad
364e35。
===
日志: 此绑定从 default 加载上下文开始。
日志: 未找到应用程序配置文件。
日志: 使用 C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\config\machine.config
的计算机配置文件。
日志: 策略后引用: PresentationFramework, Version=3.0.0.0, Culture=neutral, Publi
cKeyToken=31bf3856ad364e35
日志: 试图下载新的 URL file:///E:/Program Files/Microsoft SDKs/Windows/v6.0/Bin/
PresentationFramework.DLL。
日志: 试图下载新的 URL file:///E:/Program Files/Microsoft SDKs/Windows/v6.0/Bin/
PresentationFramework/PresentationFramework.DLL。
日志: 试图下载新的 URL file:///E:/Program Files/Microsoft SDKs/Windows/v6.0/Bin/
PresentationFramework.EXE。
日志: 试图下载新的 URL file:///E:/Program Files/Microsoft SDKs/Windows/v6.0/Bin/
PresentationFramework/PresentationFramework.EXE。
"
_maybeFullPath=<null>
_className=<null>
_exceptionMethod=<null>
_exceptionMethodString=<null>
_message="未能加载文件或程序集“PresentationFramework, Version=3.0.0.0,
Culture=neutral, PublicKeyToken=31bf3856ad364e35”或它的某一个依赖项。系统找不到
指定的文件。"
_data=<null>
_innerException=<null>
_helpURL=<null>
_stackTrace=array [48]
_stackTraceString=<null>
_remoteStackTraceString=<null>
_remoteStackIndex=0
_dynamicMethods=<null>
_HResult=-2147024894
_source=<null>
_xptrs=0
_xcode=-532459699
This is unhandled exception, continuing will end the process
IP: 10 @ XamlPad.XamlPadMain.Main - MAPPING_EXACT
[p#:0, t#:0] mdbg>
"Version mismatch. BAML stream has version number '0.96' but parser can read only version '0.94'."
是不是和上面的朋友一样得错呀?怎么回事哦
运行 CMD
然后运行这个.自己修改一下路径:
C:\Program Files\Microsoft SDKs\WinFX\bin>mdbg xamlpad.exe
不知道这样输出的出错信息是否可以多一点.
记得当时可以看到详细的信息的.不过不知道是不是用这个工具了.忘了.唉...
你试试吧.
还有.我又看了一下 DASM 和那个 XAML 文件没有关系的.代码里面都做 TRY..CATCH 了.不会有那个问题.
估计是其他地方.最好你能得到出错的具体位置.
你可以用反编译器看看,记得当时看得时候的意思是,在创建那个 C:\Program Files\Microsoft SDKs\WinFX\bin\XamlPad_Saved.xaml 文件的时候,如果失败就会报那个错误.
你可以检查一下是否是安装问题.或者权限问题.你的用户权限不够?
昨天装完都没有看过那.哇塞.界面已经比以前改进了许多.呵呵.
谢谢展波写的安装步骤说明.
睡觉咯.
祝愿展波北京 TECH2005 也一切顺利.