如何在 Visual Studio 中编译表达式混合解决方案

发布于 2024-09-12 10:55:26 字数 397 浏览 3 评论 0原文

在我们的开发环境中,我们的计算机上安装了 VS2010 以及 Expresison Blend 和 silverlight4 工具。我们有一个单独的构建框,可以在其中编译和构建整个项目。运行预编译时,我收到错误,无法找到对表达式混合命名空间的引用。我认为这是因为构建箱上未安装表达混合。

防止将来发生这种情况的最佳做法是什么?提出的一种解决方案是仅在构建箱上安装表达式混合,但对我来说这似乎没有必要。

我还考虑过在我的项目/解决方案文件中创建一个 lib direcotry,然后在其中添加所有程序集。然后在引用目录中添加它们,但指向项目中的 lib 目录。我没有这样做只是因为感觉好像有点像黑客,因为我基本上是在创建重复的 dll,所以没有版本控制或控制 dll 何时更新等,这可能会导致未来出现问题。

任何意见或建议将不胜感激。

weWithin our development environment we have VS2010 installed on my computer along with Expresison blend and silverlight4 tools. We have a separate build box where we compile and build the entire project. When running through the precompile I am receiving errors that references to the expression blend namespaces cannot be found. I assume this is due to the fact that expresison blend is not installed on the build box.

What is the best practice to prevent this from happening in the future? One solution presented was to just install expression blend on the build box but to me that seems unnecessary.

I have also thought of creating a lib direcotry within my project/solutions files and then add all assemblies there. Then within the references directory add them, but point to the lib directory within the project. I haven't done this only becuase if feels as if it is somewhat of a hack as I am basically creating duplicate dll's so there is no versioning or control over when a dll becomes updated etc that could potentially lead to problems down the road.

Any advice or suggestions would be greatly appreciated.

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

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

发布评论

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

评论(2

三月梨花 2024-09-19 10:55:26

经过更多研究后,我发现微软提供了两个 SDK,您可以将它们安装在构建盒上,而无需安装 Expression Blend。

它们是:

Microsoft Silverlight 4 Tools for Visual Studio 2010

http://www.microsoft.com/downloads/details.aspx?familyid=40EF0F31-CB95-426D-9CE0-00DCFABF3DF5&displaylang=en

Microsoft® Silverlight™ 4 SDK
http://www.microsoft.com/downloads/details.aspx microsoft.com/downloads/details.aspx?familyid=55B44DA3-E5DE-4D2A-8EAF-1155CA6B3207&displaylang=en

根据您的输出桌面应用程序与 silverlight,您可以安装表达式库,这将允许您的解决方案成功编译。

我确实避免创建 lib 目录,您将失去以任何理智的方式对程序集进行版本控制的所有能力。

After a little more research I found that microsoft offers two SDK's that you can install on the build-box and not be required to install Expression blend.

They are:

Microsoft Silverlight 4 Tools for Visual Studio 2010

http://www.microsoft.com/downloads/details.aspx?familyid=40EF0F31-CB95-426D-9CE0-00DCFABF3DF5&displaylang=en

Microsoft® Silverlight™ 4 SDK
http://www.microsoft.com/downloads/details.aspx?familyid=55B44DA3-E5DE-4D2A-8EAF-1155CA6B3207&displaylang=en

Depending upon your output desktop app vs. silverlight you have the ability to install the expression libraries which will allow your solution to successfully compile.

I did refrain from the creation of the lib directory you loose all ability to version the assemblies in any sane manner.

属性 2024-09-19 10:55:26

Microsoft 为这些 Blend 程序集提供了可再发行的安装程序,作为 Blend SDK。安装它后,您将不需要 Blend 本身来构建解决方案。

Microsoft provides a redistributable installer for those Blend assemblies as part of Blend SDK. Install it and you will not need Blend itself to build the solution.

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