如何在没有 Blend 的情况下在 Visual Studio 2010 中打开 Blend 4 项目

发布于 2024-09-26 15:35:45 字数 516 浏览 0 评论 0原文

我刚刚发现了 Expression Blend 4,并对它提供的可能性感到惊讶。

在 Blend 中创建了一个 HMI 原型后,我尝试将其发送给一位没有 Blend 的同事,但他无法构建它。

我用谷歌搜索了一下,发现了一个 Blend 4 SDK,他安装了它。

不幸的是,他仍然无法构建该项目...

这是他收到的错误消息:

错误 1 ​​未知构建错误,“无法 解决对程序集的依赖 '系统.Windows,版本=2.0.5.0, 文化=中立, PublicKeyToken=7cec85d7bea7798e' 因为它还没有被预加载。 使用 ReflectionOnly API 时, 依赖程序集必须是 通过预加载或按需加载 ReflectionOnlyAssembly解析 事件。'

您知道如何从 Visual Studio 2010 轻松打开 Blend 4 项目吗?

谢谢你的帮助,

安托万

I just discovered Expression Blend 4 and was amazed by the possibilities it supplies.

After having created an HMI prototype in blend, I tried to send it to a colleague who doesn't have Blend, but he couldn't build it.

I googled around and found a Blend 4 SDK, which he installed.

Unfortunately, he still cannot build the project...

Here's the error message he gets :

Error 1 Unknown build error, 'Cannot
resolve dependency to assembly
'System.Windows, Version=2.0.5.0,
Culture=neutral,
PublicKeyToken=7cec85d7bea7798e'
because it has not been preloaded.
When using the ReflectionOnly APIs,
dependent assemblies must be
pre-loaded or loaded on demand through
the ReflectionOnlyAssemblyResolve
event.'

Do you know a way to easily open a blend 4 project from Visual Studio 2010?

Thank you for your help,

Antoine

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

驱逐舰岛风号 2024-10-03 15:35:45

无论如何,我在 VS2010 SP1 和 .NET 4.0 下编译 Silverlight/WPF 解决方案时遇到了类似的问题,我相信它发生在 XAML 代码生成中。谷歌搜索显示此错误消息非常普遍。

就我而言,我推断问题在于,Windows 7 上安装的 Blend 4 和 Windows XP 上安装的 Blend 4 会产生两个稍微不同的 System.Windows.Interactivity.Dll 文件:XP 文件是 Assembly版本 4.0.5.0,日期为 5/20/2010,而 Windows 7 文件是程序集版本 4.0.0.0,文件日期为 5/25/2010(似乎有点反因果,不是吗?)。当我从 XP 盒子中卸载 Blend 4 并只保留 4.0.0.0 版本时,问题就消失了。

正如我所提到的,这似乎是一个非常普遍的错误,可以由多种条件触发,但请仔细查看所涉及的 DLL 的程序集版本。

For what it's worth, I had a similar problem compiling a Silverlight/WPF solution under VS2010 SP1 and .NET 4.0, and I believe it was occurring within XAML code generation. Google search revealed this error message to be very generic.

In my case, I infer the problem to be that Blend 4 installed on Windows 7 and Blend 4 installed on Windows XP results in two slightly different System.Windows.Interactivity.Dll files: the XP file is Assembly Version 4.0.5.0, and dated 5/20/2010, while the Windows 7 file is Assembly Version 4.0.0.0, file date 5/25/2010 (seems a bit anti-causal, no?). When I uninstalled Blend 4 from my XP box and kept only the 4.0.0.0 version, the problem went away.

As I mentioned, this seems to be a very generic error that can be triggered by a number of conditions, but take a close look at the assembly versions of the DLLs involved.

两个我 2024-10-03 15:35:45

我把我拥有的图书馆给了我的同事

C:\Program Files\Microsoft SDKs\Expression\Blend.NETFramework\v4.0\Libraries

并覆盖了他使用 Blend SDK 安装的库。

它起作用了:-)

我不明白为什么没有一个简单的方法来做到这一点......
我错过了什么吗?

I gave to my colleague the libraries I have in

C:\Program Files\Microsoft SDKs\Expression\Blend.NETFramework\v4.0\Libraries

and he overwrote the one he had installed with the Blend SDK.

And it worked :-)

I don't understand why there isn't a simple way to do it...
Have i missed something?

染柒℉ 2024-10-03 15:35:45

事实上,任何想要使用 Visual Studio 打开 Blend 解决方案(无需安装 Blend)的人都应该下载并安装 Blend SDK:

Silverlight:

http://www.microsoft.com/downloads/en/details.aspx?FamilyID=d197f51a-de07- 4edf-9cba-1f1b4a22110d&displaylang=en

.Net/WPF:

http://www.microsoft.com/downloads/en/details.aspx?FamilyID=75e13d71-7c53-4382-9592-6c07c6a00207&displaylang=en

至于重新分发,您还可以在安装目录中找到 EULA 和重新分发规则,例如:

C:\Program Files (x86)\Microsoft SDKs\Expression\Blend.NETFramework\v4.0

C:\Program Files (x86) )\Microsoft SDKs\Expression\Blend\Silverlight\v4.0

PS:感谢 Chuck Hays 提供此信息。

In fact, anyone who wants to open a Blend Solution with Visual Studio (without having Blend installed) should just download and install the Blend SDK:

Silverlight:

http://www.microsoft.com/downloads/en/details.aspx?FamilyID=d197f51a-de07-4edf-9cba-1f1b4a22110d&displaylang=en

.Net/WPF:

http://www.microsoft.com/downloads/en/details.aspx?FamilyID=75e13d71-7c53-4382-9592-6c07c6a00207&displaylang=en

As for redistribution, you may also find a EULA and redistribution rules in the installed directory, such as:

C:\Program Files (x86)\Microsoft SDKs\Expression\Blend.NETFramework\v4.0

and

C:\Program Files (x86)\Microsoft SDKs\Expression\Blend\Silverlight\v4.0

PS : thanks to Chuck Hays for this information.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文